Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 19th, 2008, 8:52 PM   #1
Adam.K
Newbie
 
Join Date: Apr 2008
Posts: 11
Rep Power: 0 Adam.K is on a distinguished road
I am looking to do (concerning Tkinter)

I have made a simple text editor, now when i hit the "about -> release notes" in the menu I would like a seperate (i think its a top level) window to open and work the same way as a text edito but be read only and display the contents of a .txt, if any one knows how to do this that would be epic.

thanks adam

or even if you could point me in the right direction that would be better
Adam.K is offline   Reply With Quote
Old Apr 20th, 2008, 8:44 AM   #2
OpenLoop
Expert Programmer
 
OpenLoop's Avatar
 
Join Date: May 2005
Location: East Lansing, MI
Posts: 663
Rep Power: 4 OpenLoop is on a distinguished road
Re: I am looking to do (concerning Tkinter)

You could use a MessageBox. It is what most applications use to display the about screen.
I found this code online, you might want to tweak it to show an OK messagebox instead.

python Syntax (Toggle Plain Text)
  1. tkMessageBox._show("About","text content",icon=tkmessageBox.QUESTION,type=tkMessageBox.YESNOCANCEL)
OpenLoop is offline   Reply With Quote
Old Apr 20th, 2008, 3:50 PM   #3
Adam.K
Newbie
 
Join Date: Apr 2008
Posts: 11
Rep Power: 0 Adam.K is on a distinguished road
Re: I am looking to do (concerning Tkinter)

Thankyou.

My last question was this:

according to this code click me

I want to know why the scroll bar (see very bottom of code) dose not work the same was as (see line 59 - 72) in the release section.

Also is there a section on the web that will help me with the cut, copy, paste and select all sections?

I have every thing (please see code) but i keep getting:

Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Python25\lib\lib-tk\Tkinter.py", line 1403, in __call__
return self.func(*args)
File "C:\Documents and Settings\****\Desktop\My project\Text.py", line 124, in on_cut
self.update_cursor()
File "C:\Documents and Settings\****\Desktop\My project\Text.py", line 40, in update_cursor
self.old_linenum = self.linenum
AttributeError: 'App' object has no attribute 'linenum'
Adam.K is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Downloading Tkinter and Wxpython Swan Python 6 Feb 21st, 2008 9:34 PM
rockopter : a helicopter game in Python / Tkinter free-zombie Show Off Your Open Source Projects 1 May 28th, 2006 5:31 PM
YEY!! My First GUI To share with the world!! SaturN Python 8 Jul 16th, 2005 4:55 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:46 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC