Re: wxPython pop--up ("could not retrieve information...")

2008-08-07 Thread Frank Niessink
Hi, 2008/8/7 mistersulu <[EMAIL PROTECTED]>: > Is there a setting somewhere in wxPython to either disable these pop- > up messages or a semaphore or event locking method to enable cross- > thread access to a listview object? Maybe this helps: http://wiki.wxpython.org/LongRunningTasks ? Cheers, F

Re: Problem with custom events in wxpython

2008-05-12 Thread Frank Niessink
Hi Jimmy, 2008/5/12 Jimmy <[EMAIL PROTECTED]>: > On May 11, 11:27 pm, "Frank Niessink" <[EMAIL PROTECTED]> wrote: > > 2008/5/11 Jimmy <[EMAIL PROTECTED]>: > > > I have a class A handling some data processing work and another class > > >

Re: Problem with custom events in wxpython

2008-05-11 Thread Frank Niessink
Hi Jimmy, 2008/5/11 Jimmy <[EMAIL PROTECTED]>: > hi, all > > I'm having a problem with creating custom events in wxpython. > > I have a class A handling some data processing work and another class > B of GUI matter. I need GUI to display information when data in A is > updated. > I know cutom even

Re: Problems with wxPython

2008-03-24 Thread Frank Niessink
Hi David, 2008/3/24, David Anderson <[EMAIL PROTECTED]>: > Hi, If ther's anyone who knows pretty much about wxPython can e-mail me? I'm > having some trouble in dealing with some guis here, I would thank u very > much if you could help me You should subscribe to the wxPython users mailinglist and

Re: Topographical sorting

2008-02-11 Thread Frank Niessink
Hi John, 2008/2/11, John <[EMAIL PROTECTED]>: > Now, on to my problem. Topographical sorting essentially involves removing > the minimal element in a set (1), and then arbitrarily choosing the next > minimal element and removing it as well. So, after removing 1, one could > remove 5, then 2, then

Re: Seeking list of Python applications on OS X

2007-04-11 Thread Frank Niessink
Hi Kevin, 2007/4/11, Kevin Walzer <[EMAIL PROTECTED]>: > Hello, > > I am seeking to update this wiki page, which lists Mac OS X applications > using Python in a significant way: Task Coach is developed with python and wxPython and is distributed as dmg. See http://www.taskcoach.org Cheers, Frank

Re: wxPython StatusBar Help

2007-01-29 Thread Frank Niessink
2007/1/29, herve <[EMAIL PROTECTED]>: Does anybody know how to change the foreground colors in a wx.StatusBar wx.StatusBar is a subclass of wx.Window so SetForegroundColour should work... Cheers, Frank PS: In general, wxPython related questions are best asked on the wxPython-users mailing

Re: Has comparison of instancemethods changed between python 2.5 and 2.4?

2006-12-16 Thread Frank Niessink
Ziga Seilnacht: > This method was changed in Python 2.5. Previously, two instancemethods > compared equal if their im_self attributes were *identical* and their > im_func attributes were equal. Now, they compare equal if their im_self > attributes are *equal* and their im_func attributes are equal.

Re: Has comparison of instancemethods changed between python 2.5 and 2.4?

2006-12-16 Thread Frank Niessink
Frank Niessink: > OK, so that explains why the id of (two references to the same) > instancemethod(s) may differ. But I'm still confused why two > instancemethods of two different instances can compare as equal. I tried to lookup the python source code where the actual comparis

Re: Has comparison of instancemethods changed between python 2.5 and 2.4?

2006-12-15 Thread Frank Niessink
Fredrik Lundh: > Frank Niessink wrote: > > > However, the instance the two methods belong to are different, i.e. > > id(callback) returns different values for the two methods. > > are you using the *object* as the callback? otherwise, that sentence > doesn't

Has comparison of instancemethods changed between python 2.5 and 2.4?

2006-12-15 Thread Frank Niessink
Hi, I'm trying to get an application working with Python 2.5 that works fine with Python 2.4. This issue occurs both on Windows XP as well as on Mac OSX. Some context: I use the publisher/subscribe pattern. Observers can register a callback with a central 'Publisher' like this: def registerObs

Re: wxpython - wxtoolbar font size

2006-11-14 Thread Frank Niessink
Ghido: Hi all i want to set wx.toolbar font size and i use this code: self.tb1 = wx.ToolBar(self, -1, style=wx.TB_HORIZONTAL| wx.TB_TEXT) self.tb1.SetFont(wx.Font(9, wx.DEFAULT, wx.NORMAL,0)) self.SetToolBar(self.tb1) but i obtain nothing. Is possibile? where

Re: wxpython: how do i write this without the id parameter?

2006-06-17 Thread Frank Niessink
Scott David Daniels: > John Salerno wrote: >> I was reading in the wxPython wiki that most of the time you don't have >> to include the id parameter at all, and you can just use keyword >> arguments for other parameters. But I'm having trouble converting this >> code into that method (i.e., with

Re: TreeCtrl to TreeListCtrl

2006-06-05 Thread Frank Niessink
sendhil kumar: > Hi all, > whwn working with xml connectvity to python, i have a > sash window, in which first window has a Tree Control > that has 'n' parent fields preceded by + sign and on > leftdown all the childs got from external xml file. > > when the particular parent field is selected an

Re: How to test wxPython by unittest

2006-03-24 Thread Frank Niessink
sillyemperor: > I was a new guy of Python,when i want to test my wxPython app by > unittest,it couldn`t work.I fund a stubmaker.py but it only for > wxDialog but all widgets.Can someone can tell me how test wxPython by > unittest?Thanks > Here's a small example to get you started: import unitte

Re: minimize a program into an icon on the taskbar.

2006-02-28 Thread Frank Niessink
Larry Bates: > Its called the system tray and here is a link to some sample code > for Windows I found via Google: But, but, but, ... the OP was talking about a wxPython app. wx.TaskBarIcon is the wxPython builtin support for making an icon in the system tray. Nothing else is needed. Cheers, Fr

Re: minimize a program into an icon on the taskbar.

2006-02-28 Thread Frank Niessink
Rajesh Sathyamoorthy: > Hi, > > I would know how to minimize a program (wxpython app) into an icon on > the taskbar on windows (the one at the side near the clock, i can't > remember what is it called.) > > Is it easy to be done? Is there a way to do the same thing on Linux? Did you look into

ConfigParser and unicode: a simple solution?

2006-02-22 Thread Frank Niessink
Dear list members, I'm using ConfigParser to read and write simple configuration files. One of the items written is the file the user is currently working on, so that the application can load that same file when the user starts the application for a new session. However, filenames may not be s

Re: project ideas

2006-01-19 Thread Frank Niessink
Stephen Aichele schreef: > I'm looking for ideas for an intermediate-level python project that > would allow me to touch on the following: > > (a) use of oo design patterns in python > (b) threading > (c) socket programming > (d) wxPython gui interface > (e) possibly integrate with MySQL >

Re: Failing unittest Test cases

2006-01-10 Thread Frank Niessink
Scott David Daniels wrote: > There has been a bit of discussion about a way of providing test cases > in a test suite that _should_ work but don't. One of the rules has been > the test suite should be runnable and silent at every checkin. Recently > there was a checkin of a test that _should_ wor

Re: decorator question

2006-01-08 Thread Frank Niessink
Schüle Daniel wrote: > > (1) fails to compile > is it possible to pass parameters to a decorator function? Yes, I think this does what you want: import time, sys def timelogger(logfile=sys.stdout): def actual_timelogger(function): def wrapper(*a,**kw): logfile.write("

Re: MVC programming with python (newbie) - please help

2006-01-06 Thread Frank Niessink
bwaha wrote: > > At some level this seems to me like the class ListDataModel above. I just > need to make a MyTreeControl class. However here GS(et) routines are > implemented in the ProjectFileDecoder class (data model?) whereas in the > earlier advice they are in class MyCoolListControl. So I'm

Re: Preventing control characters from entering an XML file

2006-01-05 Thread Frank Niessink
Scott David Daniels wrote: > Frank Niessink wrote: > >>- What is the easiest/most pythonic (preferably build-in) way of >>checking a unicode string for control characters and weeding those >>characters out? > > > drop_controls = [Non

Preventing control characters from entering an XML file

2006-01-01 Thread Frank Niessink
Hi list, First of all, I wish you all a happy 2006. I have a small question that googling didn't turn up an answer for. So hopefully you'll be kind enough to send me in the right direction. I'm developing a desktop application, called Task Coach, that saves its domain objects (tasks, mostly :-