You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(116) |
Sep
(146) |
Oct
(78) |
Nov
(69) |
Dec
(70) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(188) |
Feb
(142) |
Mar
(143) |
Apr
(131) |
May
(97) |
Jun
(221) |
Jul
(127) |
Aug
(89) |
Sep
(83) |
Oct
(66) |
Nov
(47) |
Dec
(70) |
2003 |
Jan
(77) |
Feb
(91) |
Mar
(103) |
Apr
(98) |
May
(134) |
Jun
(47) |
Jul
(74) |
Aug
(71) |
Sep
(48) |
Oct
(23) |
Nov
(37) |
Dec
(13) |
2004 |
Jan
(24) |
Feb
(15) |
Mar
(52) |
Apr
(119) |
May
(49) |
Jun
(41) |
Jul
(34) |
Aug
(91) |
Sep
(169) |
Oct
(38) |
Nov
(32) |
Dec
(47) |
2005 |
Jan
(61) |
Feb
(47) |
Mar
(101) |
Apr
(130) |
May
(51) |
Jun
(65) |
Jul
(71) |
Aug
(96) |
Sep
(28) |
Oct
(20) |
Nov
(39) |
Dec
(62) |
2006 |
Jan
(13) |
Feb
(19) |
Mar
(18) |
Apr
(34) |
May
(39) |
Jun
(50) |
Jul
(63) |
Aug
(18) |
Sep
(37) |
Oct
(14) |
Nov
(56) |
Dec
(32) |
2007 |
Jan
(30) |
Feb
(13) |
Mar
(25) |
Apr
(3) |
May
(15) |
Jun
(42) |
Jul
(5) |
Aug
(17) |
Sep
(6) |
Oct
(25) |
Nov
(49) |
Dec
(10) |
2008 |
Jan
(12) |
Feb
|
Mar
(17) |
Apr
(18) |
May
(12) |
Jun
(2) |
Jul
(2) |
Aug
(6) |
Sep
(4) |
Oct
(15) |
Nov
(45) |
Dec
(9) |
2009 |
Jan
(1) |
Feb
(3) |
Mar
(18) |
Apr
(8) |
May
(3) |
Jun
|
Jul
(13) |
Aug
(2) |
Sep
(1) |
Oct
(9) |
Nov
(13) |
Dec
|
2010 |
Jan
(2) |
Feb
(3) |
Mar
(9) |
Apr
(10) |
May
|
Jun
(1) |
Jul
|
Aug
(3) |
Sep
|
Oct
|
Nov
(1) |
Dec
(4) |
2011 |
Jan
|
Feb
|
Mar
(10) |
Apr
(44) |
May
(9) |
Jun
(22) |
Jul
(2) |
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2012 |
Jan
|
Feb
(1) |
Mar
(2) |
Apr
(2) |
May
|
Jun
(5) |
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2013 |
Jan
|
Feb
|
Mar
(2) |
Apr
(1) |
May
(1) |
Jun
|
Jul
(3) |
Aug
(8) |
Sep
(3) |
Oct
|
Nov
|
Dec
|
2014 |
Jan
|
Feb
(4) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Alex T. <al...@tw...> - 2004-09-03 19:03:28
|
At 14:42 03/09/2004 -0400, Gregory Pi=F1ero wrote: >Hi, > >I'm looking at the dbrowser sample. On my computer this is the file:=20 >C:\Python23\Lib\site-packages\PythonCard\samples\dbBrowser\dbBrowser.py > >So this thing when running seems to know the number of columns in any=20 >table I connect to and then (creates?) that many text boxes to show the=20 >values of each column. Does anyone know how this would work? How are the= =20 >text boxes created on the fly like that? > >I was unable to locate any documentation on this this and I can't see how= =20 >it does it from the code. It does it in on_btnBrowse_mouseClick, in dbBrowser.py It's the "not for the faint-hearted" code around lines 114-128 that do the= =20 actual creation on the fly .... but I am living proof that you can=20 copy/cut/paste this and do similar things in your own code without=20 understanding them :-) -- Alex. >Thanks, > >Greg > > > >------------------------------------------------------- >This SF.Net email is sponsored by BEA Weblogic Workshop >FREE Java Enterprise J2EE developer tools! >Get your free copy of BEA WebLogic Workshop 8.1 today. >http://ads.osdn.com/?ad_id=3D5047&alloc_id=3D10808&op=3Dclick >_______________________________________________ >Pythoncard-users mailing list >Pyt...@li... >https://lists.sourceforge.net/lists/listinfo/pythoncard-users > > > > >--- >Incoming mail is certified Virus Free. >Checked by AVG anti-virus system (http://www.grisoft.com). >Version: 6.0.742 / Virus Database: 495 - Release Date: 19/08/2004 |
From: <gre...@co...> - 2004-09-03 18:40:37
|
Hi, I'm looking at the dbrowser sample. On my computer this is the file: C:\Python23\Lib\site-packages\PythonCard\samples\dbBrowser\dbBrowser.py So this thing when running seems to know the number of columns in any table I connect to and then (creates?) that many text boxes to show the values of each column. Does anyone know how this would work? How are the text boxes created on the fly like that? I was unable to locate any documentation on this this and I can't see how it does it from the code. Thanks, Greg |
From: Steve C. <stn...@xm...> - 2004-09-03 03:29:34
|
I wrote: > It seems like if you set the size of a RadioGroup to something other > than -1,-1, the items in the radio group disappear... > > > To reproduce it, I can do the following: > * bring up the resource editor > * create a RadioGroup Component > * Change the size of the RadioGroup to 100,100. press update > * Add an item to the RadioGroup ['one','two']. press update > > The radio buttons stay in place, but the item labels next to the buttons > disappear. > > If I select the radio group in the resource editor window, they > re-appear. > > If I add another item to the list (['one','two','three']) and press > update, the item labels disappear again. > > > If I do the same set of steps, but omit the size change, everything is > happy. > > > my system: > mandrake linux 10.0 > python 2.3.3 > wxPython 2.5.2.8 > PythonCard 0.8 > It looks like there's some additional weirdness on Windows XP... If I open up the ResourceEditor, create a RadioGroup, then fiddle with the size or layout of the group, both the buttons and the labels disappear. If I move the mouse over the radio group, the radio buttons re-appear. In the redemo and spirograph demo, the RadioGroup widgets look just fine (on both Linux and XP) -Steve |
From: Stephen B. <st...@th...> - 2004-09-03 01:31:24
|
On Thursday 02 September 2004 11:51 am, Kevin Altis wrote: > Sorry, I missed that paragraph when I was updating the dialog docs. Thanks! -- Stephen If your desktop gets out of control easily, you probably have too much stuff on it that doesn't need to be there. Donna Smallin, "Unclutter Your Home" |
From: Kevin A. <al...@se...> - 2004-09-02 16:52:01
|
On Sep 2, 2004, at 8:44 AM, stephen wrote: > I'm using pythoncard 0.8 on windows. The documentation says "The > fileDialog > component returns two values, stored as elements of the Python > dictionary", > but it's returning something of type 'instance'. > > from PythonCard import model,dialog > > class Minimal(model.Background): > ....def on_menuFileExit_select(self,event): > ........self.Close() > > ....def on_menuFileOpen_select(self,event): > ........wildcard = "*" > ........encryptedfile = dialog.fileDialog(self, 'Open', '', '', > wildcard ) > ........print type(encryptedfile) > ........print encryptedfile['paths'] > > if __name__ == '__main__': > ....app = model.Application(Minimal) > ....app.MainLoop() > > and the output is: > > <type 'instance'> > Traceback (most recent call last): > File "C:\Python23\lib\site-packages\PythonCard\menu.py", line 205, > in _dispatch > handler(background, aWxEvent) > File "Display Encrypted.py", line 18, in on_menuFileOpen_select > print encryptedfile['paths'] > AttributeError: DialogResults instance has no attribute '__getitem__' > > _________ > Stephen Sorry, I missed that paragraph when I was updating the dialog docs. As the migration guide mentions, all results are now an instance of DialogResults and where you previously accessed a dictionary key, you now just use an attribute. So, instead of encryptedfile['paths'] used encryptedfile.paths http://pythoncard.sourceforge.net/migration_guide.html ka |
From: stephen <st...@th...> - 2004-09-02 15:44:10
|
I'm using pythoncard 0.8 on windows. The documentation says "The fileDialog component returns two values, stored as elements of the Python dictionary", but it's returning something of type 'instance'. from PythonCard import model,dialog class Minimal(model.Background): ....def on_menuFileExit_select(self,event): ........self.Close() ....def on_menuFileOpen_select(self,event): ........wildcard = "*" ........encryptedfile = dialog.fileDialog(self, 'Open', '', '', wildcard ) ........print type(encryptedfile) ........print encryptedfile['paths'] if __name__ == '__main__': ....app = model.Application(Minimal) ....app.MainLoop() and the output is: <type 'instance'> Traceback (most recent call last): File "C:\Python23\lib\site-packages\PythonCard\menu.py", line 205, in _dispatch handler(background, aWxEvent) File "Display Encrypted.py", line 18, in on_menuFileOpen_select print encryptedfile['paths'] AttributeError: DialogResults instance has no attribute '__getitem__' _________ Stephen If your desktop gets out of control easily, you probably have too much stuff on it that doesn't need to be there. Donna Smallin, "Unclutter Your Home" |
From: Steve C. <stn...@xm...> - 2004-09-02 06:01:45
|
It seems like if you set the size of a RadioGroup to something other than -1,-1, the items in the radio group disappear... To reproduce it, I can do the following: * bring up the resource editor * create a RadioGroup Component * Change the size of the RadioGroup to 100,100. press update * Add an item to the RadioGroup ['one','two']. press update The radio buttons stay in place, but the item labels next to the buttons disappear. If I select the radio group in the resource editor window, they re-appear. If I add another item to the list (['one','two','three']) and press update, the item labels disappear again. If I do the same set of steps, but omit the size change, everything is happy. my system: mandrake linux 10.0 python 2.3.3 wxPython 2.5.2.8 PythonCard 0.8 -Steve |
From: Steve C. <stn...@xm...> - 2004-09-02 05:52:06
|
Steve Christensen wrote: > > Sorry for chiming in so late here... Finally had a chance to upgrade to > 0.8 > > Looks like I'm seeing the same issue as Phil Sorry for replying to myself, but thought I should clarify that... The thread here on the mailing list says it's only the List Component, but the entry in the sf.net bug tracker says it's all components. On my system, I can select/move everything but List components. However, I can use the Property Editor to select the List, then move the resize-handles to move the list across the canvas. -Steve |
From: <gre...@co...> - 2004-09-02 05:17:44
|
Steve, I ran samples.py but only the 'exit' command was in the file menu. Am I using the wrong version? Here's all that version info: PythonCard version: 0.8 wxPython version: 2.5.2.7 Python version: 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] Platform: win32 Thanks, Greg Steve Christensen wrote: >>Hi, >> >>I'm new to the list. I was just curious if there is any documentation >>where I can find a list of every possible event for every possible >>widget? Or at least the most commonly used ones. I looked all over online. >> >>Thanks, > > > Run the widgets sample program, select 'Create Component Docs' from the > File menu. It should output .html files for each component listing the > attributes and events. > > > -Steve > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > _______________________________________________ > Pythoncard-users mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncard-users > |
From: Steve C. <stn...@xm...> - 2004-09-02 05:11:40
|
> Hi, > > I'm new to the list. I was just curious if there is any documentation > where I can find a list of every possible event for every possible > widget? Or at least the most commonly used ones. I looked all over online. > > Thanks, Run the widgets sample program, select 'Create Component Docs' from the File menu. It should output .html files for each component listing the attributes and events. -Steve |
From: <gre...@co...> - 2004-09-02 04:47:43
|
Hi, I'm new to the list. I was just curious if there is any documentation where I can find a list of every possible event for every possible widget? Or at least the most commonly used ones. I looked all over online. Thanks, Greg |
From: Steve C. <stn...@xm...> - 2004-09-02 04:41:43
|
Kevin Altis wrote: > On Aug 26, 2004, at 6:29 AM, Phil Edwards wrote: > > >On Tuesday 24 Aug 2004 20:40, Kevin Altis wrote: > > > >>Do you see any mouse events for a List component in the other samples? > >>If not, I wonder if the underlying wx.ListBox on GTK has those events? > > > >I'm seeing all the usual suspects (enter, leave, move, select) when > >running > >the 'proof' sample and interacting with the list component there. > > > Just an FYI that Phil and I are going to try and debug this issue on > his system later today. I'm assuming that dragging components is > completely broken on GTK and nobody else had been testing release 0.8 > on Linux/GTK which is why this was missed. However, in case this is > specific to Phil's system I would like to get confirmation from other > Linux users that dragging components, resizing with the resourceEditor, > does or doesn't work with release 0.8 on your system. Please provide > details of which Linux distro you're using in case that matters. > > If it is broken, then I will do a 0.8.0.1 bug-fix release ASAP after we > figure out a fix... Sorry for chiming in so late here... Finally had a chance to upgrade to 0.8 Looks like I'm seeing the same issue as Phil I'm using: * Mandrake 10.0 * python 2.3.3 * wxPython via wxPythonGTK-py2.3-2.5.2.8-RH9.i386.rpm * PythonCard 0.8 (from sf download page, not CVS) Which I guess doesn't provide too great a data point since it's pretty much identical to Phil's setup. -Steve |
From: Kevin A. <al...@se...> - 2004-08-30 19:43:57
|
Begin forwarded message: > From: "Robin Dunn" <ro...@al...> > Date: August 30, 2004 11:11:27 AM PDT > To: "wxPython-users" <wxp...@li...>, > wx-...@li..., wx-...@li..., > "Pyt...@Py...," <pyt...@py...>, > "Pyt...@Py...," <pyt...@py...> > Subject: [wxPython-users] ANNOUNCE: wxPython 2.5.2.8 > Reply-To: wxP...@li... > > Announcing > ---------- > > I'm pleased to announce the 2.5.2.8 release of wxPython, now available > for download at http://wxpython.org/download.php or > https://sourceforge.net/project/showfiles.php? > group_id=10718&package_id=10559&release_id=263903 > > > What is wxPython? > ----------------- > > wxPython is a GUI toolkit for the Python programming language. It > allows Python programmers to create programs with a robust, highly > functional graphical user interface, simply and easily. It is > implemented as a Python extension module that wraps the popular > wxWidgets cross platform GUI library, which is written in C++. > > wxPython is a cross-platform toolkit. This means that the same program > will usually run on multiple platforms without modifications. > Currently supported platforms are 32-bit Microsoft Windows, most Linux > or other Unix-like systems using GTK or GTK2, and Apple Macintosh OS > X. > > > Changes in 2.5.2.8 > ------------------ > > This is predominantly a bug-fix release. Changes include: > > * Fixed fatal error due to improper wrapping of wx.FSFile. > > * Fixed return type of EditableListBox.GetListCtrl > > * Give generic tree and list controls a DoGetBestSize so they play > nicer with sizers when there is no minimal size. > > * Some tweaks in the demo and samples to correct layout, some > flicker problems, and namespace use. > > * Add wx.Image.ConvertAlphaToMask > > * Minor corrections in wx.lib.dialogs > > * wx.FileHistory constructor now accepts the documented 2nd > parameter. > > * Corrections for exceptions in the new ogl > > * Fixed XRCed to not use reparenting of windows to implement caching > of property panels, since Reparent on wxMac is not implemented. > > * Add support for wxTAB_TRAVERSAL to the XRC handler for > wxScrolledWindow. > > * Add support for all wxListBox styles to the XRC handler for > wxCheckListBox. > > * Fix for wx.Listbook.DeleteAllPages to really delete everything. > > * wxGTK2 now supports alpha blended bitmap drawing > > * Made wx.grid.Grid play nicer with sizers. > > * etc. > > > > -- > Robin Dunn > Software Craftsman > http://wxPython.org Java give you jitters? Relax with wxPython! > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: wxP...@li... > For additional commands, e-mail: > wxP...@li... > > |
From: Kevin A. <al...@se...> - 2004-08-29 21:33:03
|
On Aug 29, 2004, at 1:51 PM, Tony Maniaci wrote: > I'm trying to update a component in the parent window from the child > window but self.getParent() is not recognized: > > "AttribueError: ...instance has no attribute 'getParent' > > what I am doing wrong? > Are you using release 0.8? getParent is definitely defined as an alias for GetParent on line 1129 of model.py. getParent = wx.Frame.GetParent ka |
From: Tony M. <tma...@tr...> - 2004-08-29 20:51:47
|
I'm trying to update a component in the parent window from the child window but self.getParent() is not recognized: "AttribueError: ...instance has no attribute 'getParent' what I am doing wrong? |
From: Kevin A. <al...@se...> - 2004-08-29 01:47:11
|
On Aug 28, 2004, at 5:59 PM, B=F8rre Ludvigsen wrote: > > > I get: > > [zaynab:borrel]/PythonCard/samples/minimal 6% python minimal.py > dyld: python malformed library: > /Applications/OpenOffice.org1.1.2/program/Python (not a Mach-O file,=20= > bad > magic number) > Trace/BPT trap > [zaynab:borrel]/PythonCard/samples/minimal 7% > > Now what? > It looks like you're on a Mac, so are you running Jaguar or Panther?=20 Did you follow the install instructions at: http://pythoncard.sourceforge.net/installation.html It appears that a copy of Python was installed as part of OpenOffice=20 and that is what is being used instead of the system python, but I=20 haven't used OpenOffice on the Mac so I don't know what its installer=20 does. When you type "which python" in the Terminal on a Mac OS X=20 (Panther) system you should get back /usr/bin/python. Does wxPython run correctly? Again, on a panther system the wxPython=20 and wx packages should have been installed into /Library/Python/2.3 and=20= if you ran the PythonCard setup.py script as detailed in the=20 installation instructions it should have gone in that directory as=20 well. It definitely should not be at a top-level directory such as=20 /PythonCard. ka |
From: <bo...@ab...> - 2004-08-29 00:59:25
|
I get: [zaynab:borrel]/PythonCard/samples/minimal 6% python minimal.py dyld: python malformed library: /Applications/OpenOffice.org1.1.2/program/Python (not a Mach-O file, bad magic number) Trace/BPT trap [zaynab:borrel]/PythonCard/samples/minimal 7% Now what? ------------------------------------------------------------------------- B=F8rre Ludvigsen - http://www.hiof.no/~borrel/ - +47 908 24 608 N41.79641 W87.58523 402M ------------------------------------------------------------------------- |
From: Kevin A. <al...@se...> - 2004-08-26 19:14:22
|
With release 0.8, Line 1164 of model.py should be: filename = os.path.join(self.parent.application.applicationDirectory, filename) instead of filename = os.path.join(parent.application.applicationDirectory, filename) I messed this up when copying some code from the childWindow function. If you don't fix this line, then any CustomDialogs you have will fail if you try them from standalone with an error such as: Traceback (most recent call last): File "PythonCard\widget.pyc", line 402, in _dispatch File "dialogs.py", line 127, in on_buttonMinimalDialog_mouseClick File "minimalDialog.pyc", line 18, in minimalDialog File "minimalDialog.pyc", line 12, in __init__ File "PythonCard\model.pyc", line 1164, in __init__ NameError: global name 'parent' is not defined ka |
From: Kevin A. <al...@se...> - 2004-08-26 17:43:47
|
On Aug 26, 2004, at 6:29 AM, Phil Edwards wrote: > On Tuesday 24 Aug 2004 20:40, Kevin Altis wrote: > >> Do you see any mouse events for a List component in the other samples? >> If not, I wonder if the underlying wx.ListBox on GTK has those events? > > I'm seeing all the usual suspects (enter, leave, move, select) when > running > the 'proof' sample and interacting with the list component there. > Just an FYI that Phil and I are going to try and debug this issue on his system later today. I'm assuming that dragging components is completely broken on GTK and nobody else had been testing release 0.8 on Linux/GTK which is why this was missed. However, in case this is specific to Phil's system I would like to get confirmation from other Linux users that dragging components, resizing with the resourceEditor, does or doesn't work with release 0.8 on your system. Please provide details of which Linux distro you're using in case that matters. If it is broken, then I will do a 0.8.0.1 bug-fix release ASAP after we figure out a fix... ka |
From: Phil E. <ph...@li...> - 2004-08-26 16:53:31
|
> > > have a single mouseUp handler for multiple controls then just make it > > on_mouseUp and do a check of the target to make sure you are processing > > for the components you are interested in, otherwise call event.skip() > > so the event is passed on. > > I'll go and re-code that part of the app. That seems to work perfectly, thanks! -- Regards Phil Edwards Brighton, UK |
From: Phil E. <ph...@li...> - 2004-08-26 16:28:20
|
On Thursday 26 Aug 2004 16:21, Kevin Altis wrote: > > Now the question I have to ask you is why are you binding your own > event instead of just using on_versionString_mouseUp? If you want to I just trawled through the mailing list archives, because I was convinced that there'd been a posting somewhere describing the method of adding events that I've been using in my app, but I can't find it. > have a single mouseUp handler for multiple controls then just make it > on_mouseUp and do a check of the target to make sure you are processing > for the components you are interested in, otherwise call event.skip() > so the event is passed on. > I'll go and re-code that part of the app. -- Regards Phil Edwards Brighton, UK |
From: Phil E. <ph...@li...> - 2004-08-26 16:08:42
|
On Thursday 26 Aug 2004 16:09, Alex Tweedly wrote: > > This may be a really dumb question, but ... why ? > The GUI for the app has a bunch of imageButton components and I need to allow multiple selections by left-clicking whilst holding down the control key. Take a look at the first entry on: http://pythoncard.sourceforge.net/moreapplications.html > As far as I can tell, there shouldn't be any need to change this; at least, > the resourceEditor in 0.8 still uses > wx.EVT_LEFT_UP(self.panel, self.on_mouseUp) > > >I get an exception thrown when starting the program: > > > >Traceback (most recent call last): > > File "./pimp.py", line 59, in on_initialize > > wxEVT_LEFT_UP(self.components.versionString, self.on_multiSelect) > >TypeError: 'int' object is not callable > > Several words spring to mind, all of them Anglo-Saxon/Germanic in origin and none of them very polite...I should have engaged brain before posting. You are, of course, completely correct - no change is required to the event binding line. The real issue is that my event handling code isn't getting fired. I'd expect to see a message printed when I run the app from the command line with the following code: def on_multiSelect(self, event): print 'here we are!' if event.controlDown: self.need2Add = 1 -- Regards Phil Edwards Brighton, UK |
From: Kevin A. <al...@se...> - 2004-08-26 15:21:18
|
On Aug 26, 2004, at 6:26 AM, Phil Edwards wrote: > I've been using a custom event handler in one of my PythonCard apps, as > follows: > > wx.EVT_LEFT_UP(self.components.versionString, self.on_multiSelect) > > I've changed this to: > > wxEVT_LEFT_UP(self.components.versionString, self.on_multiSelect) > > the on_multiSelect() function doesn't do anything earth shattering: > > def on_multiSelect(self, event): > if event.controlDown: self.need2Add = 1 > > The flag that's being set is dealt with elsewhere in the code. > > I get an exception thrown when starting the program: > > Traceback (most recent call last): > File "./pimp.py", line 59, in on_initialize > wxEVT_LEFT_UP(self.components.versionString, self.on_multiSelect) > TypeError: 'int' object is not callable > > The migration guide tells me I should post event binding issues to the > mailing > list, so here I am... :-) > Assuming you are doing an import wx, to use the wx package instead of wxPython.wx then the function is wx.EVT_LEFT_UP and the event id constant is wx.wxEVT_LEFT_UP. You can see these defined for the 'mouseUp' event in PythonCard/event.py class MouseUpEvent(MouseEvent): name = 'mouseUp' binding = wx.EVT_LEFT_UP id = wx.wxEVT_LEFT_UP Now the question I have to ask you is why are you binding your own event instead of just using on_versionString_mouseUp? If you want to have a single mouseUp handler for multiple controls then just make it on_mouseUp and do a check of the target to make sure you are processing for the components you are interested in, otherwise call event.skip() so the event is passed on. Also, since PythonCard doesn't bind events that it can't find event handlers for the additional attributes such as controlDown won't be available if you do your own binding, so you'll have to use the wxPython method event.ControlDown() ka |
From: Alex T. <al...@tw...> - 2004-08-26 14:59:46
|
At 14:26 26/08/2004 +0100, Phil Edwards wrote: >I've been using a custom event handler in one of my PythonCard apps, as >follows: > > wx.EVT_LEFT_UP(self.components.versionString, self.on_multiSelect) > >I've changed this to: > > wxEVT_LEFT_UP(self.components.versionString, self.on_multiSelect) > >the on_multiSelect() function doesn't do anything earth shattering: This may be a really dumb question, but ... why ? As far as I can tell, there shouldn't be any need to change this; at least, the resourceEditor in 0.8 still uses wx.EVT_LEFT_UP(self.panel, self.on_mouseUp) >I get an exception thrown when starting the program: > >Traceback (most recent call last): > File "./pimp.py", line 59, in on_initialize > wxEVT_LEFT_UP(self.components.versionString, self.on_multiSelect) >TypeError: 'int' object is not callable > >The migration guide tells me I should post event binding issues to the >mailing >list, so here I am... :-) Try changing it back ? What error do you get then ? If this doesn't help, I'm afraid it'll need to wait for Kevin or someone else ... -- Alex. |
From: Phil E. <ph...@li...> - 2004-08-26 13:30:25
|
On Tuesday 24 Aug 2004 20:40, Kevin Altis wrote: > Do you see any mouse events for a List component in the other samples? > If not, I wonder if the underlying wx.ListBox on GTK has those events? I'm seeing all the usual suspects (enter, leave, move, select) when running the 'proof' sample and interacting with the list component there. -- Regards Phil Edwards Brighton, UK |