Search found 51 matches

by ianar
Fri Feb 08, 2008 2:44 am
Forum: General Development
Topic: stop events
Replies: 4
Views: 2103

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...
by ianar
Thu Feb 07, 2008 8:08 am
Forum: General Development
Topic: stop events
Replies: 4
Views: 2103

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...
by ianar
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...
by ianar
Tue May 22, 2007 5:47 pm
Forum: General Development
Topic: Standalone Programs
Replies: 6
Views: 2075

However, I do not want to start up an epic discussion about this here.
Ya not the right place. However, I will add that if I remember correctly, the main reason that firefox and OOo distribute in such a way is because they use their own GUI libraries.
by ianar
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...
by ianar
Mon May 21, 2007 7:27 pm
Forum: General Development
Topic: disable without actually disabling
Replies: 8
Views: 5206

I got it almost there using the code you showed me, until I got pulled to another project. Such is the life of commercial devs... *sigh*

in any case, thanks for the answer!
by ianar
Tue May 15, 2007 9:05 pm
Forum: General Development
Topic: disable without actually disabling
Replies: 8
Views: 5206

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 ...
by ianar
Tue May 15, 2007 7:40 pm
Forum: General Development
Topic: disable without actually disabling
Replies: 8
Views: 5206

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 ...
by ianar
Tue May 15, 2007 3:22 pm
Forum: General Development
Topic: disable without actually disabling
Replies: 8
Views: 5206

yes I tried that button but...
a) it takes twice as long to draw
b) the toggled state is more ambiguous than the disabled state

I tried creating my own button class but I don't know which command to set the grayed out look. Any leads?

thanks
by ianar
Mon May 14, 2007 10:12 pm
Forum: General Development
Topic: disable without actually disabling
Replies: 8
Views: 5206

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...
by ianar
Mon May 14, 2007 10:03 pm
Forum: General Development
Topic: Custom Interface
Replies: 11
Views: 3156

Skins are cool, I like that VLC has them. They are often abused to create absolutely hideous and unworkable interfaces for the sake of 'art', but hey, that's the skin designer's fault, not the tool itself.
As long as there is a good and workable default, then more choice can only be a good thing.
by ianar
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...
by ianar
Wed Mar 28, 2007 2:44 am
Forum: Open Discussion
Topic: icon editor/creator ?
Replies: 7
Views: 4026

I use paintexpress myself. Good support of png -> ico transparencies.
http://www.slavasoft.com/paintexpress
by ianar
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...
by ianar
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()
Did this and it worked great, thank you!