Re: [Tkinter-discuss] Taking a Text() widget and saving it to a .txt file

2008-07-03 Thread Cameron Laird
On Fri, Jul 04, 2008 at 12:42:51PM +1000, John McMonagle wrote: . . . > As for keeping it in the same format as the textbox, that does not make > any sense. Plain text files don't really have formatting, apart from > spaces, t

Re: [Tkinter-discuss] Taking a Text() widget and saving it to a .txt file

2008-07-03 Thread John McMonagle
Alexnb wrote: > I don't really know if this is possible, but it seems like there should be an > easy way. If I have a text widget: > > text = Text(parent) > > and I want to take what is in there and save it has a text file. How would I > go about doing this. Also, if it matters, I would like to k

Re: [Tkinter-discuss] Is this introspective?

2008-07-03 Thread Bob Greschke
On 2008-07-03, at 19:54, Cameron Laird wrote: On Thu, Jul 03, 2008 at 07:42:17PM -0600, Bob Greschke wrote: . . . #! /usr/bin/env python def doSomething(): return def doSomethingElse(): return def canWeDoSomethin

Re: [Tkinter-discuss] Is this introspective?

2008-07-03 Thread Cameron Laird
On Thu, Jul 03, 2008 at 07:42:17PM -0600, Bob Greschke wrote: . . . > #! /usr/bin/env python > > def doSomething(): > return > > def doSomethingElse(): > return > > def canWeDoSomethingPopup(): > if 'doSomething(

[Tkinter-discuss] Is this introspective?

2008-07-03 Thread Bob Greschke
#! /usr/bin/env python def doSomething(): return def doSomethingElse(): return def canWeDoSomethingPopup(): if 'doSomething() exists': Add-doSomething-call-to-the-popup() if 'doSomethingElse() exists': Add-doSomethingElse()-call-to-the-popup() return mainloo

Re: [Tkinter-discuss] Taking a Text() widget and saving it to a .txt file

2008-07-03 Thread Cameron Laird
On Thu, Jul 03, 2008 at 04:16:23PM -0700, Alexnb wrote: . . . > I don't really know if this is possible, but it seems like there should be an > easy way. If I have a text widget: > > text = Text(parent) > > and I want to take

[Tkinter-discuss] Text() scrolling, but Canvas() not on OSX

2008-07-03 Thread Bob Greschke
My Text() widgets with scrollbars (all Tkinter, not PMW widgets) scroll using the two-finger scroll method on my MacBook trackpad, but my Canvas()'s with scrollbars don't. Is there some bind I should be doing, or is this just another OSX X11 "feature"? Typical Text(): Sub = Frame(LFrm)

[Tkinter-discuss] Taking a Text() widget and saving it to a .txt file

2008-07-03 Thread Alexnb
I don't really know if this is possible, but it seems like there should be an easy way. If I have a text widget: text = Text(parent) and I want to take what is in there and save it has a text file. How would I go about doing this. Also, if it matters, I would like to keep it in the same format a

Re: [Tkinter-discuss] Issue with the layout of a frame

2008-07-03 Thread John McMonagle
Alexnb wrote: > > there is a button towards the bottom called the defineIt button. this is the > button in the red frame. If you look right above the big comment called > constants for buttons, that frame called definebuttonF is the red frame. I > need the parent to be the mainContainer frame. Ho

Re: [Tkinter-discuss] Issue with the layout of a frame

2008-07-03 Thread Guilherme Polo
On Thu, Jul 3, 2008 at 2:33 AM, Alexnb <[EMAIL PROTECTED]> wrote: > > I am in the middle of writing my first big app. I am having trouble with the > layout of the frames and buttons. In particular, just one frame. I'll post > the code and you can compile it and see what I am talking about. But, whe