![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Newbie
Join Date: Apr 2008
Posts: 11
Rep Power: 0
![]() |
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 |
|
|
|
|
|
#2 |
|
Expert Programmer
Join Date: May 2005
Location: East Lansing, MI
Posts: 663
Rep Power: 4
![]() |
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)
|
|
|
|
|
|
#3 |
|
Newbie
Join Date: Apr 2008
Posts: 11
Rep Power: 0
![]() |
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' |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |