Re: [tkinter] trouble running imported modules in main program

2013-08-08 Thread David
On 9 August 2013 14:28, snakeinmyboot wrote: > On Thursday, August 8, 2013 1:13:48 AM UTC-4, David wrote: >> On 8 August 2013 14:06, snakeinmyboot wrote: >> >> Did you try at all to find the answer to this yourself? >> >> I ask because it took me only a few seconds to go to wikipedia and >> searc

Re: [tkinter] trouble running imported modules in main program

2013-08-08 Thread snakeinmyboot
On Thursday, August 8, 2013 1:13:48 AM UTC-4, David wrote: > On 8 August 2013 14:06, snakeinmyboot wrote: > > > > > > for REAL you guys...wtf does this even mean lol. what is a boilerplate test > > code? > > > > Did you try at all to find the answer to this yourself? > > > > I ask because

Re: [tkinter] trouble running imported modules in main program

2013-08-07 Thread David
On 8 August 2013 14:06, snakeinmyboot wrote: > > for REAL you guys...wtf does this even mean lol. what is a boilerplate test > code? Did you try at all to find the answer to this yourself? I ask because it took me only a few seconds to go to wikipedia and search for "boilerplate" find this for

Re: [tkinter] trouble running imported modules in main program

2013-08-07 Thread snakeinmyboot
>if __name__ == '__main__': > root = tkinter.Tk() > app = MainClass(root) # 'MainClass' depends on the module. > root.mainloop > root.destroy for REAL you guys...wtf does this even mean lol. what is a boilerplate test code? -- http://mail.python.org/mailman/listinfo/python-list

Re: [tkinter] trouble running imported modules in main program

2013-08-07 Thread Cousin Stanley
Terry Reedy wrote: > Code comments : > > double and triple spacing code > make it painful to read, Not for everyone :-) I prefer mostly double-spaced code in any language > especially in a 10 line box. Agree, but the 10 line box would not be used for routin

Re: [tkinter] trouble running imported modules in main program

2013-08-06 Thread snakeinmyboot
> Make the boilerplate test code conditional, something like > > > > if __name__ == '__main__': > > root = tkinter.Tk() > > app = MainClass(root) # 'MainClass' depends on the module. > > root.mainloop > > root.destroy > > > Could you elaborate on this a little bit? Never even

Re: [tkinter] trouble running imported modules in main program

2013-08-06 Thread snakeinmyboot
On Tuesday, August 6, 2013 7:38:55 PM UTC-4, Terry Reedy wrote: > On 8/6/2013 6:28 PM, snakeinmyboot wrote: > > > Hello, > > > > > > I am currently just starting to learn the basics of the tkinter module and > > ive run into a problem. To teach myself I am messing around by creating > > separa

Re: [tkinter] trouble running imported modules in main program

2013-08-06 Thread Terry Reedy
On 8/6/2013 6:28 PM, snakeinmyboot wrote: Hello, I am currently just starting to learn the basics of the tkinter module and ive run into a problem. To teach myself I am messing around by creating separate modules containing basic GUI apps like a tip calculator and kilometer converter, then cr

[tkinter] trouble running imported modules in main program

2013-08-06 Thread snakeinmyboot
Hello, I am currently just starting to learn the basics of the tkinter module and ive run into a problem. To teach myself I am messing around by creating separate modules containing basic GUI apps like a tip calculator and kilometer converter, then creating a main program that displays buttons