Even its from one or two external libraries like Tkinter and pygame? I
prefer to load what I need, not to constantly have to call it by its library
dot its_name. It makes easier coding for me. I try to keep my code as simply
as possible. Wonder if its possible to use a Tkinter question to make
On 16/11/05, Nathan Pinno [EMAIL PROTECTED] wrote:
It worked, but unfornately I can't use this line as it brings up errors:
from Tkinter (or pygame) import *
Anyway around this little bug?
What's the error?
--
Cheers,
Simon B,
[EMAIL PROTECTED],
http://www.brunningonline.net/simon/blog/
--
It's a warning that says:
Can only use * in top level or something like that.
It's kind of annoying, but the program still ran after I made the import *
lines top level, and removed the def's.
Nathan Pinno.
--
For great sites go to: http://www.the-web-surfers-store.com
MSN Messenger: [EMAIL
Nathan Pinno wrote:
It's a warning that says:
Can only use * in top level or something like that.
It's kind of annoying
why? importing tons of unknown stuff into a local namespace is
rather silly, and makes it impossible for the compiler to properly
analyze your code -- which means that
Hi,
Can anyone tell me if pygame and Tkinter can work together in the same
application? I thought I'd better ask before trying it, since both use
widgets.
Thanks,
Nathan Pinno
--
For great sites go to: http://www.the-web-surfers-store.com
MSN Messenger: [EMAIL PROTECTED],com
Yahoo! Messenger
It's likely to be a challenge; each one has its own event loop, and
the exact pitfalls of trying to use both at the same time probably
depend on the operating system too. For instance, on X, Tk and SDL
probably both expect full control of the handlers registered with
XSetErrorHandler and
Subject: Re: Can anyone tell me if pygame and Tkinter can work together?
It's likely to be a challenge; each one has its own event loop, and the
exact pitfalls of trying to use both at the same time probably depend on the
operating system too. For instance, on X, Tk and SDL probably both expect
full
On Tue, Nov 15, 2005 at 06:33:40PM -0700, Nathan Pinno wrote:
Thanks. I was going to use TKInter to pop up a message box, then use pygame
to run the game and display the score on the playing surface. Is this still
possible (I'm using Python 2.4.1 and Pygame 1.7.0 on WinXP with Service Pack
2)?
Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: November 15, 2005 8:47 PM
To: Nathan Pinno
Cc: python-list@python.org
Subject: Re: Can anyone tell me if pygame and Tkinter can work together?
On Tue, Nov 15, 2005 at 06:33:40PM -0700, Nathan Pinno wrote:
Thanks. I was going
PROTECTED]
Yahoo! Messenger: spam_swatter31
AIM: f3mighty
ICQ: 199020705
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: November 15, 2005 8:47 PM
To: Nathan Pinno
Cc: python-list@python.org
Subject: Re: Can anyone tell me if pygame and Tkinter can work together
10 matches
Mail list logo