Hello All,
I still shaking out my last few bugs in my tile matching game:
I am now down to one stumper for me:
1) when I initialize wxPython
2) from an exe that I have created with py2exe
3) when the executable is located on the desktop as opposed to
somewhere on C or D directly
4) when My De
Hello All,
I am trying to clean up some polish bugs with the Shanghai game I am
working on and I am currently stuck on trying to get the right event
for detecting when the user has changed the desktop resolution.
I have tried trapping the following events:
1) SDL_ACTIVEEVENT
2) SDL_VIDEOEXPOSE
Hello All,
I am trying to clean up some polish bugs with the Shanghai game I am
working on and I am currently stuck on trying to get the right event
for detecting when the user has changed the desktop resolution.
I have tried trapping the following events:
1) SDL_ACTIVEEVENT
2) SDL_VIDEOEXPOSE
3
At least I thought this was funny and cool! -Erik
--
http://mail.python.org/mailman/listinfo/python-list
Wow, even more information. When I set my default browser to IE, it
launches fine... so it is something about FireFox being more picky than
IE...
Where would I hunt down this sort of problem? Sounds rare, should I
contact Mozilla, or can you guys spot something silly I am doing?
Thank you,
-Eri
Ah and PS, again this is only for paths that are non-aschii or at least
have Korean in them...
The broswer bit launches successfully in other locations.
-Erik
--
http://mail.python.org/mailman/listinfo/python-list
Hello All,
sorry for all the posts... I am *almost* there now...
okay I have this code:
import sys, os
encoding = locale.getpreferredencoding()
htmlpath = os.getcwd()
htmlpath = htmlpath.decode( encoding )
. write to the file .
. file is written fine, and can be
Thank you Vincent, I will try this...
I did get over my troubles with this new code snippet:
encoding = locale.getpreferredencoding()
htmlpath = os.getcwd()
htmlpath = htmlpath.decode( encoding )
That seems to be working well too. I can write to these files and I
can open the
Hello All,
Well as usual, after I post I keep on digging and I found the answer...
http://cjkpython.i18n.org/
Has the encodings for Chinese, Korean and Japanese... and I took the
hint that I found from the foundationstore and tried cp949 and wa-la!
it works...
Now, the question remains, how do
Hello All,
I have found much help in the google archives but I am still stuck...
here is my code snippet:
path = os.getcwd()
path = path.decode('UTF8')
Now the trouble is I am getting that darn UnicodeDecodeError, where it
is tripping up on the Korean hangul for My Desktop. Now
Awesome!
Great thank you both, fixed!
-Erik
--
http://mail.python.org/mailman/listinfo/python-list
Hello All,
So I have been using Effbot's XML stuff a lot! And I have been using
py2exe, pygame and wxPython all mixed together...
I am getting this strange error log when writing XML files with his XML
writer. It appears to be fouling up on the encoding, ONLY in the exe
version. Runs fine and
Damn,
I am dumb...
self.Iconize( True )
Sorry.
But a helpful tip is that the demo code *surrounding* the wxPython demo
is VERY useful, I never looked at that before!
--
http://mail.python.org/mailman/listinfo/python-list
Hello All,
I now have a wx.NO_BORDER frame that I have written dragging code
for... I like my window this way as it looks sleeker and I am now
installing some image buttons.
Now I would like to create a new minimize button from an image, and
then capture that mouse down and cause it to minimize t
Woo-hoo! Everything is working now!
Thank you everyone!
The TWO problems I had:
1) I needed to save my XML file in the first place with this code:
f = codecs.open(paths[0], 'w', 'utf8')
2) I needed to download the UNICODE version of wxPython, duh.
So why are there non-UNICODE versions of wxPyt
That was a great clue. I am an idiot and tapped on the wrong download
link... now I can read and parse the xml file fine - as long as I
create it in XML spy - if I create it by this method:
d=wxFileDialog( self, message="Choose a file",
defaultDir=os.getcwd(), defaultFile="", wildcard="*.xml", st
There is something wrong with the physical file... I d/l a trial
version of XML Spy home edition and built an equivalent of the korean
test file, and tried it and it got past the element tree error and now
I am stuck with the wxEditCtrl error.
To build the xml file in the first place I had code th
Hello Fredrik,
1) The exact error is in line 1160 of self._parser.Parse(data, 0 ):
xml.parsers.expat.ExpatError: not well-formed (invalid token): line 3,
column 16
2) You are right in that the print of the file read works just fine.
3) You are also right in that the digitally encoded unicode als
Hello All,
I am getting an error of not well-formed at the beginning of the Korean
text in the second example. I am doing something wrong with how I am
encoding my Korean? Do I need more of a wrapper about it than simple
quotes? Is there some sort of XML syntax for indicating a Unicode
string,
After a touch more of exploration... actually from the wxPython demo's
startup tips lead me over to the wxPython Wiki
Here I found this gem:
http://wiki.wxpython.org./index.cgi/IntegratingPyGame
Awesome. There is in fact some very tricky timing of the import
statement for pygame
-Erik
--
Thank you,
My apologies to all for insufficient googling
-Erik
--
http://mail.python.org/mailman/listinfo/python-list
Hello All,
I am having a great time with python and pygame, and last night I took
a long look at the wxPython demo. I think that rocks as well.
So now, my question is do wxPython and PyGame work together?
How is the windows event loop managed? How is the display window
managed?
Is it possible
n the
normal py2exe process. See the end of the setup script.
#!/usr/bin/env python
from distutils.core import setup
import py2exe, pygame
import glob, shutil
setup(windows=["mahjong.py"],
name='GoPets Mahjong',
version='0.3.1',
description='Mahjong for Go
somehow lost my j's:
www.erikbethke.com/Python/screenshot02.jpg
www.erikbethke.com/Python/screenshot03.jpg
www.erikbethke.com/Python/screenshot04.jpg
www.erikbethke.com/Python/screenshot05.jpg
--
http://mail.python.org/mailman/listinfo/python-list
Oh yeah, and farmer, no I didn't yet get back to making an exe by
fixing the problem with pygame2exe i just got disctracted getting other
things done so fast!
-Erik
www.gopetslive.com
--
http://mail.python.org/mailman/listinfo/python-list
Hello Everyone,
I have to say:
Python! Is! Truly! Amazing!
So I started with python about a month ago and put in 24 hours across
three weekends.
My first project was to recreate a simple maze-let thingie that I
remember as my first program way back on the Vic-20. That was a quick
snap and a pl
M.E.Farmer wrote:
> Hello Erik,
> Have you ever seen pygame2exe.py?
> It is a py2exe script for pygame.
Hello M.E. Farmer,
Thank you for your response. I looked into it and I discovered this
speedbump:
http://aspn.activestate.com/ASPN/Mail/Message/pygame-users/2244073
"pygame-users
Re: [pygame
'other files' - which are???
I have also included the full output of py2exe below:
I would really, really appreciate someone setting me on the right track
to whatever is the current method for producing windows exe's for
python 2.3.4 and pygame!! Please. This has to be a stra
28 matches
Mail list logo