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

2013-08-06 Thread Joshua Landau
On 7 August 2013 04:38, wrote: > import random > > > > def room (): No need for the space after "room". > hp = 10 > while hp != 0: "while hp:" would be idiomatic, but you probably want "while hp > 0" if you allow negatives. > random_Number = random.randint(1, 2) You meant "ra

Re: new to While statements

2013-08-06 Thread Vito De Tullio
Joshua Landau wrote: > while "asking for reponse": > while "adventuring": that's a funny way to say `while True:`... -- By ZeD -- http://mail.python.org/mailman/listinfo/python-list

Re: new to While statements

2013-08-06 Thread Dan Sommers
On Wed, 07 Aug 2013 07:20:28 +0200, Vito De Tullio wrote: > Joshua Landau wrote: > > >> while "asking for reponse": > >> while "adventuring": > > that's a funny way to say `while True:`... Funny, perhaps, the first time you see it, but way more informative than the other way t

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

2013-08-06 Thread Dan Sommers
On Tue, 06 Aug 2013 22:42:42 -0700, snakeinmyboot wrote: > I wish I understood half of what you posted Dan. Time to hit the books So think about the "while" statement: it takes an expression (the part before the colon) and a suite (the part after the colon and before the next statement at the sa

Re: Working with XML/XSD

2013-08-06 Thread dieter
David Barroso writes: > I was wondering if someone could point me in the right direction. I would > like to develop some scripts to manage Cisco routers and switches using > XML. However, I am not sure where to start. Does someone have some > experience working with XML, Schemas and things like t

Re: Reg secure python environment with web terminal emulator

2013-08-06 Thread dieter
"Lakshmipathi.G" writes: > We have a server running a web-based terminal emulator (based on shellinabox > for screen-casting check www.webminal.org) that allows users to learn > simple bash commands. This Linux environment secured by things like quota, > selinux,ulimit etc > > Now some users ar

Re: new to While statements

2013-08-06 Thread krismesenbrink
wow everyone thanks for the feed back! i'll have to rewrite this with everything you guys taught me. this makes ALOT more sense. :D -- http://mail.python.org/mailman/listinfo/python-list

Re: Using Pool map with a method of a class and a list

2013-08-06 Thread Joshua Landau
On 6 August 2013 20:42, Luca Cerone wrote: > Hi Chris, thanks > >> Do you ever instantiate any A() objects? You're attempting to call an >> >> unbound method without passing it a 'self'. > > I have tried a lot of variations, instantiating the object, creating lambda > functions that use the unbou

<    1   2