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 an

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: new to While statements

2013-08-06 Thread snakeinmyboot
I wish I understood half of what you posted Dan. Time to hit the books -- http://mail.python.org/mailman/listinfo/python-list

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 my

Re: new to While statements

2013-08-06 Thread snakeinmyboot
yea no problem. heres a little tip though so you atleast get something out of the post. monster_hp = monster_hp - damage_done can be simplified by writing monster_hp -= damage_done the -= means equal to whatever is on the left, minus whatevers on the right. this can be done with addition, mul

Re: new to While statements

2013-08-06 Thread snakeinmyboot
Hey there, cool idea you've got going on here! As far as I can tell though...what you want to happen, is indeed actually happening. Did you mean something else? Everytime I run the script and defeat a monster, it asks me if I want to roll the dice again. -- http://mail.python.org/mailman/listi

[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