Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Python (http://www.programmingforums.org/forum43.html)
-   -   I am looking to do (concerning Tkinter) (http://www.programmingforums.org/showthread.php?t=15662)

Adam.K Apr 19th, 2008 8:52 PM

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

OpenLoop Apr 20th, 2008 8:44 AM

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.

:

  1. tkMessageBox._show("About","text content",icon=tkmessageBox.QUESTION,type=tkMessageBox.YESNOCANCEL)


Adam.K Apr 20th, 2008 3:50 PM

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'


All times are GMT -5. The time now is 1:18 AM.

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