[wxPython-users] ANN: GUI2Exe for wxPython :-D
Andrea Gavana
andrea.gavana at gmail.com
Wed Apr 4 05:35:23 PDT 2007
Hi Roee,
On 4/4/07, roee shlomo wrote:
> Andrea:
> in CheckForDatabase please encode configDb only when you return it.
> os.path.isdir(configDir) won't work well otherwise.
Thank you for the bug reports :-D
> btw,
> Adding data files via GUI is not implemented yet, right?
Yes, it is implemented. In the scrolled panel, scroll down and you
will see a list control labelled as "Data Files". Click on the list
and hit Ctrl+A, then choose all the files yuo need in one shot. Then,
GUI2exe will ask you to which folder these files should be added in
the py2exe final distribution. Example:
# matplotlib example
1) I select all the data files that lives inside matplotlib/mpl-data;
2) GUI2Exe propose as default folder name "mpl-data";
3) I want them to go inside "matplotlibdata" and I input that in the
wx.TextExtryDialog that appears right after I selected the files I
need.
> And removed
> wx.SetDefaultPyEncoding("utf-8")
No, don't do that. If you encode everything using UTF-8, I can enter a
project name like this:
MyProject (some kind of french/german/russian/whatever non-ascii
non-cp1252 letter)
And, while the database will recognize them (because you are encoding
them as UTF-8), the tree control on the left will not display the
project names correctly, as wxPython will use
wx.GetDefaultPyEncoding(), which returns the string encoding
for the system at the moment. That means, if you send me your
database, my tree control will probably display a bunch of squares
instead of the names you have used (if you used hebrew letters, for
example). I may be wrong here, so please everyone enlight me if I am
saying stupid things.
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.virgilio.it/infinity77/
More information about the wxpython-users
mailing list