Hello,
I'm sorry, please change all those implicits to explicit
I am wondering if there is a way to make the window and app more
explicit in pyglet? Something like:
import pyglet
my_app = pyglet.app() #is the window, just under the name of app
my_app.run()
or:
import pyglet
window = pyglet.window.Window()
pyglet.app.window = window
pyglet.app.run()
As it is right now, it is not pythonic at all and I am wondering if
there was a good reason for this? If not, I can create a wrapper class
over it to make it more pythonic, but I would rather not...
This is what I get with writing emails at 1 AM...
Thanks,
Brandon Keith Biggs <http://www.brandonkeithbiggs.com/>
On 3/10/2015 9:09 AM, Adam Bark wrote:
That would seem to be unpythonic as it contradicts the zen of python
"explicit is better than implicit"
On 10 Mar 2015 08:05, "Brandon Keith Biggs"
<[email protected] <mailto:[email protected]>> wrote:
Hello,
I am wondering if there is a way to make the window and app more
implicit in pyglet? Something like:
import pyglet
my_app = pyglet.app() #is the window, just under the name of app
my_app.run()
or:
import pyglet
window = pyglet.window.Window()
pyglet.app.window = window
pyglet.app.run()
As it is right now, it is not pythonic at all and I am wondering
if there was a good reason for this? Also, is there a way to make
it more implicit?
If not, I can create a wrapper class over it to make it more
pythonic, but I would rather not...
thanks,
--
Brandon Keith Biggs <http://www.brandonkeithbiggs.com/>
--
You received this message because you are subscribed to the Google
Groups "pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to [email protected]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
Visit this group at http://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google
Groups "pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
Visit this group at http://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.