Search found 51 matches
- Fri Feb 08, 2008 2:44 am
- Forum: General Development
- Topic: stop events
- Replies: 4
- Views: 2107
Sorry about that, it was one of those 'late night' moments. I had forgotten I was already checking a checkbox to see if the app should process those events. I simply set the value of the checkbox to false during config load. Thank you nonetheless for the help, I couldn't find much documentation on t...
- Thu Feb 07, 2008 8:08 am
- Forum: General Development
- Topic: stop events
- Replies: 4
- Views: 2107
stop events
Hello all, Is there a way to stop all event processing during execution of a function? Here's what's going on: a) creating panels based on a config file b) loading values from the config file into respective controls Now, almost all my textctrl fields have wx.EVT_TXT set, so when the config loader g...
- Thu Feb 07, 2008 7:44 am
- Forum: General Development
- Topic: What is the best way to save & load text files?
- Replies: 4
- Views: 1973
Unless there is a requirement not to (i.e. support for some legacy applications), save in utf-8, and . As for the input, one project I made had the problem of not being able to tell what encoding was used due to many different possibilities. My solution was to allow the user to select the correct en...
- Tue May 22, 2007 5:47 pm
- Forum: General Development
- Topic: Standalone Programs
- Replies: 6
- Views: 2075
- Mon May 21, 2007 7:49 pm
- Forum: General Development
- Topic: Standalone Programs
- Replies: 6
- Views: 2075
Not to be a drag, but this is not the preferred Linux way, this is the windows way of doing things. The main reason for this is simple: Linux can be run on almost any architecture (vs only x86 for win) so you should really distribute the source and let people compile it for their platform. (closed s...
- Mon May 21, 2007 7:27 pm
- Forum: General Development
- Topic: disable without actually disabling
- Replies: 8
- Views: 5210
- Tue May 15, 2007 9:05 pm
- Forum: General Development
- Topic: disable without actually disabling
- Replies: 8
- Views: 5210
How big are your images on buttons? 800x800 pixels? 30720x4048 px JPG, and I'm loading 5 at a time through a SMB connection :twisted: I am generating 512x70 px (roughly) thumbnails on the fly with PIL. I could very easily generate another set of thumbnails with PIL for the deactivated state, but I ...
- Tue May 15, 2007 7:40 pm
- Forum: General Development
- Topic: disable without actually disabling
- Replies: 8
- Views: 5210
I'm using the border color method right now, but in order for it to work I had to set flag=wx.BORDER_NONE and make the button bigger than the image. It works, but when you click on the button it doesn't 'click' since the 3d effect is lost. The disabled look is better in my opinion, it makes it very ...
- Tue May 15, 2007 3:22 pm
- Forum: General Development
- Topic: disable without actually disabling
- Replies: 8
- Views: 5210
- Mon May 14, 2007 10:12 pm
- Forum: General Development
- Topic: disable without actually disabling
- Replies: 8
- Views: 5210
disable without actually disabling
I'm writing an application where the user has to select images, I'm loading them into BitmapButtons to make it real easy for them. I would like to get some visual feedback on which images have been selected. The nicest and easiest way I saw was to use Enable(False) to quickly gray out the images. Th...
- Mon May 14, 2007 10:03 pm
- Forum: General Development
- Topic: Custom Interface
- Replies: 11
- Views: 3158
- Mon May 14, 2007 9:47 pm
- Forum: General Development
- Topic: How to set language of my apps to Chinese?
- Replies: 2
- Views: 1297
something like this (python code follows): mylocale = wx.Locale(wx.LANGUAGE_CHINESE_SIMPLIFIED, wx.LOCALE_LOAD_DEFAULT) unixPlatforms = ('Linux', 'FreeBSD') if platform.system() in unixPlatforms: try: # to get some language settings to display properly: os.environ['LANG'] = 'zh_CN.UTF-8' except (Val...
- Wed Mar 28, 2007 2:44 am
- Forum: Open Discussion
- Topic: icon editor/creator ?
- Replies: 7
- Views: 4029
I use paintexpress myself. Good support of png -> ico transparencies.
http://www.slavasoft.com/paintexpress
http://www.slavasoft.com/paintexpress
- Wed Mar 28, 2007 2:31 am
- Forum: General Development
- Topic: wx.GenericDirCtrl.CollapseTree() causes attribute error
- Replies: 1
- Views: 754
wx.GenericDirCtrl.CollapseTree() causes attribute error
i'm looking at the documentation: http://wxwidgets.org/manuals/stable/wx_wxgenericdirctrl.html#wxgenericdirctrlcollapsetree and when I do: MyGenericDirCtrl.CollapseTree() I get : AttributeError: 'DirControl' object has no attribute 'CollapseTree' Any ideas? The other functions for GenericDirCtrl wor...
- Wed Feb 21, 2007 6:02 am
- Forum: General Development
- Topic: restart wxPython app
- Replies: 2
- Views: 1762
Code: Select all
def realPath(self, file):
return os.path.join(sys.path[0].decode(sys.getfilesystemencoding()),file)
if wx.Process.Open(self.realPath(sys.argv[0])):
self.Close()