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: Phil E. <ph...@li...> - 2004-04-07 16:56:44
|
On Wednesday 07 Apr 2004 12:22 pm, Phil Edwards wrote: > > I've got a hard drive problem on one of my machines - I've got backups so > it's an inconvenience as opposed to a major disaster, but it means the new > RPM's won't be ready until the end of today at the earliest. :-( Okay, back up and running, thank $DEITY for recordable DVD's.... Now, I have a problem with 0.7.3 when running with python 2.2.2 and wxPython 2.5. I've installed 0.7.3 from the tarball and wxPython from the RPM on wxpython.org. When I run the resource editor from a command line prompt, I get this: -----begin----- [phile@localhost phile]$ /usr/lib/python2.2/site-packages/PythonCardPrototype/tools/resourceEditor/resourceEditor.py Traceback (most recent call last): File "/usr/lib/python2.2/site-packages/PythonCardPrototype/binding.py", line 268, in dispatchOpenBackground self.scriptable.dispatch.eventOccurred( event.OpenBackgroundEvent( self.scriptable ) ) File "/usr/lib/python2.2/site-packages/PythonCardPrototype/dispatch.py", line 83, in eventOccurred handler.getFunction()(self._scriptable, nativeEvent) File "/usr/lib/python2.2/site-packages/PythonCardPrototype/tools/resourceEditor/resourceEditor.py", line 134, in on_openBackground self.updatePanel(self.rsrc) File "/usr/lib/python2.2/site-packages/PythonCardPrototype/tools/resourceEditor/resourceEditor.py", line 1243, in updatePanel self.menuBar.setEnabled('menuFileRun', 1) File "/usr/lib/python2.2/site-packages/PythonCardPrototype/menu.py", line 309, in setEnabled self.Enable(id, aBoolean) File "/usr/lib/python2.2/site-packages/wx/core.py", line 7602, in Enable return _core.MenuBar_Enable(*args, **kwargs) wx.core.PyAssertionError: C++ assertion "wxAssertFailure" failed in ../src/common/menucmn.cpp(896): attempt to enable an item which doesn't exist ------end------ The problem is that at line 309 (line 316 in the code below) of menu.py, the value of 'id' is set to -1 when it tries to call self.Enable(). As far as I can see, the code in this part of menu.py hasn't changed between 0.7.2 and 0.7.3, so I'm stumped as to what's going on. I put a bunch of print statements into menu.py so it looks like this: 299 def setEnabled( self, aString, aBoolean=1) : 300 print 'setEnabled, aString = [%s], aBoolean = [%s]' % (aString, aBoolean) 301 i = 0 302 for m in self.menus: 303 print 'm is now [%s]' % m 304 menuLabel = m.label.strip('&') 305 print 'm.label = [%s], menuLabel = [%s]' % (m.label, menuLabel) 306 if m.name == aString: 307 print 'm.name == aString' 308 self.EnableTop(i, aBoolean) 309 break 310 for mi in m.items: 311 print 'mi is now [%s]' % mi 312 if mi.name == aString: 313 print 'mi.name == aString, menuLabel = [%s]' % menuLabel 314 id = self.FindMenuItem(menuLabel, mi.label) 315 print 'found menu id [%s]' % id 316 self.Enable(id, aBoolean) 317 break 318 i += 1 When I run with this code, my output is: m.label = [&File], menuLabel = [File] mi is now [MenuItem={'_listeners': [<PythonCardPrototype.dispatch.EventDispatch instance at 0x87d3d6c>], 'checked': 0, 'name': 'menuFileNew', 'this': '_783a7d08_p_wxMenuItem', 'checkable': 0, 'thisown': 1, 'enabled': 1, 'command': None, 'label': '&New...\tCtrl+N'}] mi is now [MenuItem={'_listeners': [<PythonCardPrototype.dispatch.EventDispatch instance at 0x87d4e14>], 'checked': 0, 'name': 'menuFileOpen', 'this': '_90587d08_p_wxMenuItem', 'checkable': 0, 'thisown': 1, 'enabled': 1, 'command': None, 'label': '&Open...\tCtrl+O'}] mi is now [MenuItem={'_listeners': [<PythonCardPrototype.dispatch.EventDispatch instance at 0x87d592c>], 'checked': 0, 'name': 'menuFileSave', 'this': '_585d7d08_p_wxMenuItem', 'checkable': 0, 'thisown': 1, 'enabled': 1, 'command': None, 'label': 'Save\tCtrl+S'}] mi is now [MenuItem={'_listeners': [<PythonCardPrototype.dispatch.EventDispatch instance at 0x87d5ffc>], 'checked': 0, 'name': 'menuFileSaveAs', 'this': '_10627d08_p_wxMenuItem', 'checkable': 0, 'thisown': 1, 'enabled': 1, 'command': None, 'label': 'Save &As...'}] mi is now [MenuItem={'_listeners': [<PythonCardPrototype.dispatch.EventDispatch instance at 0x87d647c>], 'checked': 0, 'name': 'menuFileRevert', 'this': '_d06e7d08_p_wxMenuItem', 'checkable': 0, 'thisown': 1, 'enabled': 1, 'command': None, 'label': 'Revert'}] mi is now [MenuItem={'_listeners': [<PythonCardPrototype.dispatch.EventDispatch instance at 0x87d6e8c>], 'checked': 0, 'name': 'fileSep1', 'this': '_08747d08_p_wxMenuItem', 'checkable': 0, 'thisown': 1, 'enabled': 1, 'command': None, 'label': '-'}] mi is now [MenuItem={'_listeners': [<PythonCardPrototype.dispatch.EventDispatch instance at 0x87d7604>], 'checked': 0, 'name': 'menuFileRun', 'this': '_08787d08_p_wxMenuItem', 'checkable': 0, 'thisown': 1, 'enabled': 1, 'command': 'fileRun', 'label': '&Run\tCtrl+R'}] mi.name == aString, menuLabel = [File] found menu id [-1] Traceback (most recent call last): File "/usr/lib/python2.2/site-packages/PythonCardPrototype/binding.py", line 268, in dispatchOpenBackground self.scriptable.dispatch.eventOccurred( event.OpenBackgroundEvent( self.scriptable ) ) File "/usr/lib/python2.2/site-packages/PythonCardPrototype/dispatch.py", line 83, in eventOccurred handler.getFunction()(self._scriptable, nativeEvent) File "/usr/lib/python2.2/site-packages/PythonCardPrototype/tools/resourceEditor/resourceEditor.py", line 134, in on_openBackground self.updatePanel(self.rsrc) File "/usr/lib/python2.2/site-packages/PythonCardPrototype/tools/resourceEditor/resourceEditor.py", line 1243, in updatePanel self.menuBar.setEnabled('menuFileRun', 1) File "/usr/lib/python2.2/site-packages/PythonCardPrototype/menu.py", line 316, in setEnabled self.Enable(id, aBoolean) File "/usr/lib/python2.2/site-packages/wx/core.py", line 7602, in Enable return _core.MenuBar_Enable(*args, **kwargs) wx.core.PyAssertionError: C++ assertion "wxAssertFailure" failed in ../src/common/menucmn.cpp(896): attempt to enable an item which doesn't exist I've tried some of the other samples (proof, addresses, etc) and these run without any problems, it looks like its just the resource editor in this case. -- Regards Phil Edwards Brighton, UK |
From: Kevin A. <al...@se...> - 2004-04-07 16:05:24
|
self in your event handlers refers to your background. self.components is a dictionary of all the components on your background. It has some extra code that allows you to access each component using "dot" notation (e.g. self.components.fldBob) or normal dictionary notation, self.components["fldBob"]. setFocus() is a method of each component, so you just call it. For example, if the field you want to want to change the focus to is called fldBob then self.components.fldBob.setFocus() should do the trick. In addition, you'll probably want to call setSelection after calling setFocus to select all the text in the field. If you want to save some typing you can create a local reference to the component before you call the methods. def on_somebutton_mouseClick(self, event): input = self.components.fldBob # your validation check code here # validation failed so do the focus/selection change input.setFocus() input.setSelection(-1, -1) If you use the findfiles tool, you should be able to search/grep the PythonCard samples and tools for examples of most of the common actions like this. Note that the (-1, -1) convenience values above were added to to the underlying SetSelection method long after PythonCard had started, so some samples still go to the trouble of calculating the number of characters in a field. http://pythoncard.sourceforge.net/findfiles.html ka On Apr 7, 2004, at 6:13 AM, Schollnick, Benjamin wrote: > Okay, > > I have fixed one problem, but I am still attempting to figure out > how to use SetFocus... And failing... > > I have multiple controls in this PythonCard application, and want > to manually change the focus from one control to another.... > > The problem, for me, is that SetFocus (from wxPython) seems to > need to be called from the "control" that you wish to change to. For > example, > textcntrl.SetFocus (), appears to change the focus to the textcntrl. > (This > was > grepped from the demo directory.) > > But with PythonCard we appear to be operating from the events, not > the controls. > > How would I access a control directly in Pythoncard to call the > SetFocus? > > I found the SetFocus command in the "self" object, but have not > found any > documentation that covers it.... > > Does anyone have a small code fragment example? Or a small test app > example > that you could post? Because I fear that I am missing something real > obvious... > > - Benjamin |
From: Schollnick, B. <Ben...@us...> - 2004-04-07 13:14:19
|
Okay, I have fixed one problem, but I am still attempting to figure out how to use SetFocus... And failing... I have multiple controls in this PythonCard application, and want to manually change the focus from one control to another.... The problem, for me, is that SetFocus (from wxPython) seems to need to be called from the "control" that you wish to change to. For example, textcntrl.SetFocus (), appears to change the focus to the textcntrl. (This was grepped from the demo directory.) But with PythonCard we appear to be operating from the events, not the controls. How would I access a control directly in Pythoncard to call the SetFocus? I found the SetFocus command in the "self" object, but have not found any documentation that covers it.... Does anyone have a small code fragment example? Or a small test app example that you could post? Because I fear that I am missing something real obvious... - Benjamin |
From: Schollnick, B. <Ben...@us...> - 2004-04-07 12:56:50
|
> I'm not entirely sure what behavior you want. I suspect you just want > to call the setFocus() method on the component you want to select. > Also, I wouldn't think that you need to use a mouseDown handler, why > not just handle the check in the mouseClick? Very Very Very good point. I have examined the code quite a bit, but didn't realize that I had copied a mouseDown handler.... I changed it to mouseClick, and I am getting the behavior that I expected. Talk about a SPE fault. (Silly Programmer Event) Thanks.... - Benjamin |
From: Phil E. <ph...@li...> - 2004-04-07 11:33:06
|
On Tuesday 06 Apr 2004 8:11 pm, Phil Edwards wrote: > > New RPM's are being built now, I'll upload them when done... I've got a hard drive problem on one of my machines - I've got backups so it's an inconvenience as opposed to a major disaster, but it means the new RPM's won't be ready until the end of today at the earliest. :-( -- Regards Phil Edwards Brighton, UK |
From: Phil E. <ph...@li...> - 2004-04-06 19:19:44
|
On Tuesday 06 Apr 2004 4:07 am, Kenneth Pronovici wrote: > On Mon, Apr 05, 2004 at 12:48:10PM -0700, Kevin Altis wrote: > > Note that Linux RPMs haven't been built yet and the Linux installation > > instructions are still for 0.7.2, but they should be updated soon. You > > can use the tar.gz file to install PythonCard on Linux and Mac OS X. > New RPM's are being built now, I'll upload them when done... -- Regards Phil Edwards Brighton, UK |
From: Kevin A. <al...@se...> - 2004-04-06 19:15:20
|
I'm not entirely sure what behavior you want. I suspect you just want to call the setFocus() method on the component you want to select. Also, I wouldn't think that you need to use a mouseDown handler, why not just handle the check in the mouseClick? There is no wrapper of the wxPython validation code in the PythonCard framework at this time, but I'm guessing it is possible to just call the wxPython code directly for validation. I haven't used a validator myself, so I don't know for sure. ka On Apr 6, 2004, at 10:34 AM, Schollnick, Benjamin wrote: > Folks, > > I am running into a issue, that I am having difficulty solving. > (This is my first Pythoncard application....) > > I have the "start" button on my application currently wired to > check and validate the information given to the application... > > --snip-- > def on_BTN_start_activity_mouseDown ( self, event): > self.operation = self.components.RAD_Operation.selected > self.servers = self.components.LIST_Servers.selected > self.simulation = self.components.CHECK_Simulation.checked == 1 > self.configfile = self.components.TXT_cfile.text > > if self.configfile == "" or self.servers == "": > bas_wxpython.wxPython_Alert_Dialog ( wxapp = self, > title="Alert!", msg_text="Please specify a configuration file and a > server > to process." ) > # wxPython.wx.EVT_SET_FOCUS (self, > return '' > > if not(self.configfile == "" or self.servers==""): > # print self.operation > # print self.servers > # print self.simulation > # print self.configfile > > cmd_line = sys.argv[0] > > if self.simulation: cmd_line = cmd_line + " -t" > ..... > ..... > ..... > ---snip--- > > But if I return the focus is still on the button for "start > activity", > and if you click on anything, the application will not change the > focus > away from the "start activity" button. So Pythoncard believes you > are clicking on "start activity", and report the error again. > > I was thinking of using the wxPython setfocus, but that appears to > be > fairly complex? > > Any suggestions on fixing this the "right" way, or a simple way? > > Alternatively, anyone have any focus setting samples? > > I did not see any validation code on the pythoncard site, so I > presume > that there is not a "pythoncard" method for validation? (I might of > missed > it.....???) > > -- Benjamin |
From: Schollnick, B. <Ben...@us...> - 2004-04-06 17:35:55
|
Folks, I am running into a issue, that I am having difficulty solving. (This is my first Pythoncard application....) I have the "start" button on my application currently wired to check and validate the information given to the application... --snip-- def on_BTN_start_activity_mouseDown ( self, event): self.operation = self.components.RAD_Operation.selected self.servers = self.components.LIST_Servers.selected self.simulation = self.components.CHECK_Simulation.checked == 1 self.configfile = self.components.TXT_cfile.text if self.configfile == "" or self.servers == "": bas_wxpython.wxPython_Alert_Dialog ( wxapp = self, title="Alert!", msg_text="Please specify a configuration file and a server to process." ) # wxPython.wx.EVT_SET_FOCUS (self, return '' if not(self.configfile == "" or self.servers==""): # print self.operation # print self.servers # print self.simulation # print self.configfile cmd_line = sys.argv[0] if self.simulation: cmd_line = cmd_line + " -t" ..... ..... ..... ---snip--- But if I return the focus is still on the button for "start activity", and if you click on anything, the application will not change the focus away from the "start activity" button. So Pythoncard believes you are clicking on "start activity", and report the error again. I was thinking of using the wxPython setfocus, but that appears to be fairly complex? Any suggestions on fixing this the "right" way, or a simple way? Alternatively, anyone have any focus setting samples? I did not see any validation code on the pythoncard site, so I presume that there is not a "pythoncard" method for validation? (I might of missed it.....???) -- Benjamin |
From: Kenneth P. <pro...@sk...> - 2004-04-06 03:09:36
|
> Since nobody on Linux has ever reported this problem before I'll just > assume that people running Linux never tried the sample or had low > expectations <wink> I could swear this used to work. I know I tested pretty much every sample before I released my initial Debian package in August. I put your fix into my 0.7.3-1 Debian release, so now at least no Debian users with high expectations will report it. :-) KEN -- Kenneth J. Pronovici <pro...@sk...> Personal Homepage: http://www.skyjammer.com/~pronovic/ "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." - Benjamin Franklin, Historical Review of Pennsylvania, 1759 |
From: Kenneth P. <pro...@sk...> - 2004-04-06 03:07:26
|
On Mon, Apr 05, 2004 at 12:48:10PM -0700, Kevin Altis wrote: > Note that Linux RPMs haven't been built yet and the Linux installation > instructions are still for 0.7.2, but they should be updated soon. You > can use the tar.gz file to install PythonCard on Linux and Mac OS X. Debian packages have been uploaded and should start hitting mirrors within a day or so (perhaps less). There are no big changes in the packages from the last release; I'm still building against Python 2.3 and wxPython 2.4.2.4, since that's what I have available to me. Hmm. It must be getting late. I can't remember how the .deb files for the previous releases got onto the SourceForge site. Let me know if you want the .debs for 0.7.3 up there or not. I updated the online Wiki section related to Debian. It now says that the "preferred" method of installing for Debian (in most cases) is to use my binary packages via apt. I added a few other details, too. If anyone has any comments, let me know. > Please report any problems to the list. I didn't notice any problems in my (somewhat minor) testing. Thanks, KEN -- Kenneth J. Pronovici <pro...@sk...> Personal Homepage: http://www.skyjammer.com/~pronovic/ "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." - Benjamin Franklin, Historical Review of Pennsylvania, 1759 |
From: Kevin A. <al...@se...> - 2004-04-05 22:34:46
|
I'm not going to put out a 0.7.3.1 release for a bug in one of the=20 samples, so I'm just going to document the problem and fix here for=20 anyone that cares. The bug is already fixed in cvs. If you're running a version of wxPython prior to 2.5.x then line 99=20 won't work: oldSize =3D self.size that should be oldSize =3D self.getSize() =00 =00In addition, Rowland Smith has found that on Linux with wxPython=20 2.4.2.4 the size event is not firing before the idle event. That's=20 actually a wxPython bug as far as I'm concerned (Windows and Mac OS X=20 don't have this problem), but I don't know yet whether this bug exists=20= in wxPython 2.5.1.5 on Linux. The fix is to add self.resizing =3D 0 to the beginning of the on_openBackground handler. Since nobody on Linux has ever reported this problem before I'll just=20 assume that people running Linux never tried the sample or had low=20 expectations <wink> ka= |
From: Kevin A. <al...@se...> - 2004-04-05 19:48:14
|
Note that Linux RPMs haven't been built yet and the Linux installation=20= instructions are still for 0.7.2, but they should be updated soon. You=20= can use the tar.gz file to install PythonCard on Linux and Mac OS X. Please report any problems to the list. Thanks, ka --- PythonCard is a GUI construction kit for building cross-platform=20 desktop applications on Windows, Mac OS X, and Linux. Release 0.7.3 includes over 40 sample applications and tools to help=20 users build applications in Python, including codeEditor, findfiles,=20 and resourceEditor (layout editor). A list of changes since release=20 0.7.2 is at the end of this message. All the information you need about PythonCard can be found on the=20 project web page at: http://pythoncard.sourceforge.net/ The installation instructions and walkthroughs are available on the=20 main documentation page: http://pythoncard.sourceforge.net/documentation.html You can download the latest release at: http://sourceforge.net/project/showfiles.php?group_id=3D19015 For a list of most of the samples that have been built with PythonCard=20= and screenshots of them in action go to: http://pythoncard.sourceforge.net/samples/samples.html The kind people at SourceForge host the project: http://sourceforge.net/projects/pythoncard/ If you want to get involved the main contact point is the Mailing list: http://lists.sourceforge.net/lists/listinfo/pythoncard-users PythonCard requires Python 2.2.1 or later and wxPython 2.4.1.2 or=20 later. wxPython can be downloaded at http://www.wxpython.org/ Additional Notes: Remember to backup or just delete your old PythonCardPrototype=20 directory before installing a new version, so that the old files aren't=20= still in the package directory. If you installed a previous version of=20= PythonCard on Windows using the binary installer, then you should be=20 able to remove the old package via the Add/Remove Programs Control=20 Panel. The distutils installer will put the framework, components, docs,=20 samples, and tools in Lib\site-packages or your Python directory=20 (typically C:\Python22 or C:\Python23). Of course, on Linux and Mac OS=20= X that path will be slightly different and have forward slashes. Windows users should get a PythonCard menu in the Start->Programs menu=20= with links to the documentation, samples, codeEditor, findfiles, and=20 resourceEditor. The tools and most of the samples will now keep their config and data=20 file info in the "pythoncard_config" directory created by the=20 framework. On Unix, the directory will be ~/pythoncard_config. On=20 Windows, the directory varies as described in the following post: http://aspn.activestate.com/ASPN/Mail/Message/PythonCard/1496793 So, if you run a PythonCard app with any of the runtime tools and=20 select "Save Configuration" from the "Debug" menu, the window positions=20= and sizes of your runtime windows (Shell, Message Watcher, etc.) will=20 be saved in "pythoncard_config/pythoncard_config.txt" not the=20 PythonCardPrototype directory. Likewise, when you change the text style=20= used by the codeEditor via the "Styles..." menu item under the "Format"=20= menu, the modification will be saved in=20 "pythoncard_config/stc-styles.rc.cfg" ka --- Kevin Altis al...@se... http://altis.pycs.net/ Release 0.7.3 2004-04-03 changed py2exe scripts for version 0.5 syntax dropped support of PyCrust in wxPython 2.4.0.7 and earlier added check to avoid unneeded widget initialization added TextArea workaround for GetValue on the Mac McPC and RanchBiz added to moreapplications.html added lowercase skip alias for Skip to dispatch.py switched to mixedCase style names for BitmapCanvas added new-style class properties to Background and CustomDialog classes: position, size, etc. added leading underscore to addEventListener and notifyEventListeners methods changed _getAttributeNames to use inspect module updated Windows installation docs for Python 2.3 and wxPython 2.4.2.4 added explicit Stop() for timers when app is closed added donations.html fixed default Mac menubar handling converted legacy class name comparisons to __class__.__name__ removed RightTextField component, use TextField with 'alignment':'right' attribute instead many modifications to support wxPython 2.5 and higher in general, just look for code starting with if wx.wxVERSION > (2, 5): to see the version specific changes also modified spacers for sizers to use tuples instead of separate w, h args some items are marked with a "wxPython 2.5 change" comment all changes are being done so that release 0.7.3 will work with wxPython 2.4.x or wxPython 2.5.x or higher future releases may drop support for wxPython 2.4.x EXIF.py updated to remove Python 2.3 warnings added support for Python 2.3 .chm file on Windows =00= |
From: Mike C. F. <mcf...@ro...> - 2004-04-05 16:28:39
|
ralph heimburger wrote: >I wondered if anyone developed a framework for a more elaborate form (non-grid). I looked at the custdb example but it seems to read the entire table into memory. I would like to create a ms-access like form with all the buttons. > > The original purpose of PyTable RDBMS Wrapper (which was originally part of the same project as wxoo) was to provide MS-Access-style data bound controls. Afraid I got distracted along the way and turned PyTable into a far more general project... and then I got sucked into web database programming for a living and did all the PyTable work on that side. Basically, PyTable turns rows into objects with (introspectable) properties, and wxoo includes controls that deal with properties of objects, so you can put PropertyControl widgets on your screen, pass them a client object (DBRow) and have them provide editing of the fields. At least, that's the theory, as I said, I got sucked into web programming in the middle of it. There's also data grid controls using the same machinery, as I recall they were considerably farther along as far as being able to properly edit values from the tables and have the results committed to the database (the PropertyControl just updates the in-memory version, nothing calls updateQuery() on the client DBRow automatically). There's nothing in PyTable for doing table *maintenance* btw, it's all focused on the final app, not on providing the GUI database-creation mechanisms you get from the MS-Access IDE. Don't know if that was any help, but at least I got to talk :) . I love talking, Mike >--- "Steve Holden" <sh...@ho...> wrote: >IIRC there's actually a database demo for Gadfly. You ought to be able >to adapt that to MySQL fairly easily - the gadfly module isn't quite >DBAPI 2.0 compliant, so there would be a slight impedance mismatch, but >techniques for working with MySQL in Python are fairly well-established. > >regards > Steve > > _______________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://members.rogers.com/mcfletch/ |
From: ralph h. <1st...@1I...> - 2004-04-05 15:24:42
|
What I am concerned about are: --Any Multi user access problems/issues --Performance running as a network app I tried using the dbBrowser and got it working for simple table maintenance. How do you add a delete method and what would the syntax look like? I wondered if anyone developed a framework for a more elaborate form (non-grid). I looked at the custdb example but it seems to read the entire table into memory. I would like to create a ms-access like form with all the buttons. --- "Steve Holden" <sh...@ho...> wrote: IIRC there's actually a database demo for Gadfly. You ought to be able to adapt that to MySQL fairly easily - the gadfly module isn't quite DBAPI 2.0 compliant, so there would be a slight impedance mismatch, but techniques for working with MySQL in Python are fairly well-established. regards Steve > -----Original Message----- > From: pyt...@li... > [mailto:pyt...@li...]On > Behalf Of ralph > heimburger > Sent: Friday, April 02, 2004 9:40 AM > To: PythonCard Mailing List > Subject: [Pythoncard-users] DB Framework > > > Has anyone created a framework for updating a MySQL Database > using Python Card? > > _____________________________________________________________ > > > > ======================================= > www.StrictlyEmail.com ...our name says it all! > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Pythoncard-users mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncard-users > > ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Pythoncard-users mailing list Pyt...@li... https://lists.sourceforge.net/lists/listinfo/pythoncard-users _____________________________________________________________ ======================================= www.StrictlyEmail.com ...our name says it all! |
From: Kevin A. <al...@se...> - 2004-04-03 03:43:05
|
On Apr 2, 2004, at 12:07 PM, Kevin Altis wrote: > As mentioned previously, PythonCard 0.7.2 simply doesn't work with > wxPython 2.5.x, so unless you're using the version of > PythonCardPrototype in cvs, do not upgrade yet. > > I hoped to release 0.7.3 today, but I just realized that some of the > additions I made in the last week to support Python 2.2 properties > actually won't work with wxPython 2.4.x so now I have to comment out > all those changes in model.py, widget.py and the samples and tools and > go back to the old way which will work with both 2.4.x and 2.5.x or > find some other workaround, sigh. Consequently, I probably won't > release 0.7.3 until Monday. > I think I fixed the problem. If anyone wants to test using wxPython 2.4.2.4 or wxPython 2.5.1.5 today that will help. ka |
From: Andy T. <an...@ha...> - 2004-04-02 22:00:55
|
Steve Holden wrote: > IIRC there's actually a database demo for Gadfly. You ought to be able > to adapt that to MySQL fairly easily - the gadfly module isn't quite > DBAPI 2.0 compliant, so there would be a slight impedance mismatch, but > techniques for working with MySQL in Python are fairly well-established. > > regards > Steve > > >>-----Original Message----- >>From: pyt...@li... >>[mailto:pyt...@li...]On >>Behalf Of ralph >>heimburger >>Sent: Friday, April 02, 2004 9:40 AM >>To: PythonCard Mailing List >>Subject: [Pythoncard-users] DB Framework >> >> >>Has anyone created a framework for updating a MySQL Database >>using Python Card? >> >>_____________________________________________________________ >> [snip] Look at the dbBrowser sample shipped with the distribution. It talks to MySQL, Gadfly, Metakit, SQLite, PostgreSQL and Oracle. It is currently read only but would quite easily support insert/update with the addition of a few appropriate methods. Regards, Andy -- -------------------------------------------------------------------------------- From the desk of Andrew J Todd esq - http://www.halfcooked.com/ |
From: Kevin A. <al...@se...> - 2004-04-02 20:07:50
|
As mentioned previously, PythonCard 0.7.2 simply doesn't work with wxPython 2.5.x, so unless you're using the version of PythonCardPrototype in cvs, do not upgrade yet. I hoped to release 0.7.3 today, but I just realized that some of the additions I made in the last week to support Python 2.2 properties actually won't work with wxPython 2.4.x so now I have to comment out all those changes in model.py, widget.py and the samples and tools and go back to the old way which will work with both 2.4.x and 2.5.x or find some other workaround, sigh. Consequently, I probably won't release 0.7.3 until Monday. ka Begin forwarded message: > From: "Robin Dunn" <ro...@al...> > Date: April 2, 2004 8:35:37 AM PST > To: "wxPython-users" <wxp...@li...>, > wx-...@li..., "Pyt...@Py...," > <pyt...@py...> > Subject: [wxPython-users] Announce: wxPython 2.5.1.5 > Reply-To: wxP...@li... > > Announcing > ---------- > > I'm pleased to announce the 2.5.1.5 release of wxPython, now available > for download at http://wxpython.org/download.php or > http://sourceforge.net/project/showfiles.php? > group_id=10718&package_id=10559&release_id=228061 > > > 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, and Macintosh OS X. > > > Changes in 2.5.1.5 > ------------------ > > The changes in this version are too numerous to list here, please see > the following websites for more details. If you are upgrading from > 2.4.x then please do read the MigrationGuide fully before as there are > some backwards incompatible changes. > > http://wxpython.org/recentchanges.php > http://wxpython.org/migrationguide.php > > > -- > 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: Steve H. <sh...@ho...> - 2004-04-02 15:36:53
|
IIRC there's actually a database demo for Gadfly. You ought to be able to adapt that to MySQL fairly easily - the gadfly module isn't quite DBAPI 2.0 compliant, so there would be a slight impedance mismatch, but techniques for working with MySQL in Python are fairly well-established. regards Steve > -----Original Message----- > From: pyt...@li... > [mailto:pyt...@li...]On > Behalf Of ralph > heimburger > Sent: Friday, April 02, 2004 9:40 AM > To: PythonCard Mailing List > Subject: [Pythoncard-users] DB Framework > > > Has anyone created a framework for updating a MySQL Database > using Python Card? > > _____________________________________________________________ > > > > ======================================= > www.StrictlyEmail.com ...our name says it all! > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Pythoncard-users mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncard-users > > |
From: ralph h. <1st...@1I...> - 2004-04-02 14:40:01
|
Has anyone created a framework for updating a MySQL Database using Python Card? _____________________________________________________________ ======================================= www.StrictlyEmail.com ...our name says it all! |
From: Kevin A. <al...@se...> - 2004-03-31 03:19:01
|
On Mar 30, 2004, at 6:51 AM, Schollnick, Benjamin wrote: > Folks, > > Am I missing something? I have a List control in my form, and I can > not have > multiple choices selected... Is there a recognized work around for > this? > > - Benjamin > The short story is that the List component doesn't support multi-selection. This comes up periodically on the list, but nobody seemed to want it bad enough to resolve the issue before. To get that you would need to subclass the existing component and change the style in the __init__ method. This is best done by creating a new module as well and either sticking it in the PythonCardPrototype/components directory or an appcomponents directory in your app directory. If the latter, you also need a file called __init__.py in the appcomponents dir for import purposes. The underlying wxPython control, wxListBox has three mutually exclusive styles: wxLB_SINGLE, wxLB_MULTIPLE, and wxLB_EXTENDED. The existing control could probably be changed to allow one or both multi-selection styles but I don't want to make that kind of change this close to a new release; 0.7.3 should be out this week. We have to decide whether List should support multiple selection styles or whether there should be a separate component, perhaps called MultiSelectionList or something. PythonCard has some components that are subclasses where we made a separate component for a different style: TextField, PasswordField, TextArea, but we also have some components where we just have an attribute to change the style. If we support multi-selection in List then we'll need to add some additional methods that deal with lists/tuples for changing the selection. We also have to test whether it will break the existing attributes that get the selection since they might end up returning a list/tuple when the user code was expecting a single value. That just needs some experimentation and then testing. ka |
From: Schollnick, B. <Ben...@us...> - 2004-03-30 14:52:01
|
Folks, Am I missing something? I have a List control in my form, and I can not have multiple choices selected... Is there a recognized work around for this? - Benjamin |
From: Selwyn M. <sel...@pa...> - 2004-03-30 07:20:49
|
hi there, I am trying to implement a pull down menu within a wxgrid, as is shown within the wxpython demo (GridCustTable.py). However, I am unsure how to translate the column formatting to pythoncard. In the wxpython demo they create a custom table which specifies the column type as: wxGRID_VALUE_CHOICE + ':choice A, choice B' -which is basically what I want. After scanning the namespace of pythoncard's simplegrid example I see that wxgrids have a SetColFormatCustom() but am unsure how to apply the above to it. Any help greatly appreciated. Selwyn |
From: Mark S. S. <pam...@co...> - 2004-03-29 03:36:34
|
Is there anyone using PythonCard with SuSE 9.0? I have everything needed (AFAICT), like wxPython and all that...but as usual I am having some trouble figuring things out...SuSE has its own way of doing things. So, HELP! :-) Thanks, --Mark Seven Smith -- "A warrior must love this world, in order for this world that seems so commonplace to open up and show its wonders." -- Don Juan Matus, "The Wheel of Time" by Carlos Castaneda ------ Mark Seven Smith -- pam...@co... -- AIM & /. == Pampaluz Free Software Foundation (www.gnu.org) Member #1372 Pampaluz Linux Counter #122264 - http://counter.li.org/ |
From: Marek K. <pyt...@we...> - 2004-03-26 18:28:34
|
On Thu, 18 Mar 2004 17:48:34 +0000 Phil Edwards <ph...@li...> wrote: > I'd probably go a little further than that and extend the code to > something like this: > > def on_close(self, event): > try: > f = open('closer.dat') > except: > pass > else: > event.Skip() > > This way, you can have have a file called closer.dat on your > development machine and its presence will allow the app to be closed > normally while you're testing. When you release the program, simply > omit the file from your distribution archive and the end users will be > unable to close it. > > If you think the end users are ever likely to examine the code, you > can obfuscate this mechanism by distributing the program as a .EXE > without the original Python source. Or you could do something like this: def on_close(self, event): import os.path #if you haven't done before if os.path.exists('closer.dat'): return # or #pass else: event.Skip() Which is maybe cleaner and faster. Haven't tested. greets, Marek |
From: Kevin A. <al...@se...> - 2004-03-26 17:16:04
|
> From: Ruben Marquez > > Since I upgraded to py2exe 0.5.0 I had to update the > setup.py file that I use for one of my apps. I > decided to try bulding the sample setup.py, found in > the minimal sample directory, but it would not create > a minimal.exe. Now, I am no expert in py2exe, but I > was able to get a working setup.py created. This is > the code I used: > > from distutils.core import setup > import py2exe > > setup( name = "minimal", > console = [ > { > "script": "minimal.py", > } > ], > data_files = [(".", ["readme.txt", > "minimal.rsrc.py"])] > ) > > It works. I purpously build the app as a console app > because I wanted to see if there were any error > messages. Sure enough, I get the same error message > that I get on my other app: After checking with Thomas Heller, I've change the setup.py script to support py2exe 0.5 from distutils.core import setup import py2exe setup( name = "minimal", console = ["minimal.py"], data_files = [ (".", ["readme.txt", "minimal.rsrc.py"]) ] ) Thomas suggests looking at the py2exe examples for more elaborate builds. Perhaps someone can make suitable scripts for all the tools which we can include with release 0.8 (sometime after 0.7.3)? > debug.py:30: UserWarning: PyCrust has been renamed to > Py. Use 'from wx import py' > > Could anyone explain why this error and how to > eliminate it? Thanks. After trying a test with Ruben I decided to remove the PyCrust import support for wxPython 2.4.0.7 and earlier in debug.py. This seems to clear up the above warning message. PythonCard 0.7.2 and 0.7.3 will still work with wxPython 2.4.0.7, you just won't be able to use the shell. ka |