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: Christian B. <c.b...@qx...> - 2008-05-04 19:09:46
|
Hello, has anybody found out more about this problem? I have the exact same issue, which renders the layoutEditor useless on the Mac: http://www.qxtransformer.org/screenshots/pythoncard-mac-leopard-problem.png Thanks for any information! Christian Terry Maloney <terrymaloney <at> globetrotter.net> writes: > > Neil Hughes wrote: > > > With the following versions the layout looks the same as XP, i.e. all > > components are visible and the text area fills the frame: > > > > OSX 10.4.11 (PowerPC) > > Python 2.3.5 (as shipped with Tiger) > > wxPython 2.5.3.1 > > PythonCard 0.8.2 > > > > So it looks more like something specific to newer versions of the > > OS/wxPython than a platform difference. > > I'm also using OSX 10.4.11 (PowerPC), so it's probably not the OS, > but definitely is related to wxPython ... versions up to 2.7.2.0 work > perfectly, 2.8.0.1 introduces the problem. Unfortunately that's > probably not going to help Aaron, as 2.7.2.0 doesn't appear to > support OSX 10.5. > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > |
From: Terry M. <ter...@gl...> - 2008-05-02 14:20:39
|
Using Alex Tweedy's helpful post ... http://aspn.activestate.com/ASPN/Mail/Message/PythonCard/2718590 I've managed to implement an editable multicolumnlist called MCL (with one deviation from Alex's instructions, in case it's relevant to the following -- I edited PythonCard/components/multicolumnlist.py itself, thinking I probably want this feature in any mcl I create). It works nicely, the mixin does it's magic, creates an editor and saves edits to MCL.items, but my problem is that it only seems to do so after a gainFocus event has been sent to MCL when the editor is closed. Consequently, using on_MCL_gainFocus to handle changes is unreliable. I've found a way around this by re-entering and then closing the edited cell (the second gainFocus event is now aware of the changed data), but it's rather inelegant. I can live with it, as the only user of the program will be myself, but if anyone can point out a better method, it would be appreciated. Regards, Terry Maloney |
From: Christian B. <c.b...@qx...> - 2008-04-29 20:48:35
|
Ok, here is how it works for me: copy all the *.rsrc.py from the modules subdirectory to the parent directory. But it is strange and should not be necessary. 2008/4/29 Christian Boulanger <c.b...@qx...>: > Hello, > > I have problems getting the layoutEditor or resourceEditor to work on > my Mac (OS 10.5 Leopard). I have tried 0.8.2 and CVS. The examples work > in both. But trying to start the layoutEditor, for example, results in > > no resource file for /Users/bibliograph/Programme/PythonCard/tools/ > layoutEditor/multipropertyEditor > Traceback (most recent call last): > File "/BinaryCache/wxWidgets/wxWidgets-11~57/Root/System/Library/ > Frameworks/Python.framework/Versions/2.5/Extras/lib/python/wx-2.8-mac- > unicode/wx/_core.py", line 14095, in <lambda> > File "/Library/Python/2.5/site-packages/PythonCard/tools/ > layoutEditor/layoutEditor.py", line 153, in on_initialize > self.propertyEditorWindow = model.childWindow(self, > PropertyEditor) > File "/Library/Python/2.5/site-packages/PythonCard/model.py", line > 213, in childWindow > rsrc = resource.ResourceFile(filename).getResource() > File "/Library/Python/2.5/site-packages/PythonCard/resource.py", > line 45, in __init__ > self.dictionary = util.readAndEvalFile(rsrcFileName) > File "/Library/Python/2.5/site-packages/PythonCard/util.py", line > 39, in readAndEvalFile > f = open(filename) > TypeError: coercing to Unicode: need string or buffer, NoneType found > > there is a file PythonCard/tools/layoutEditor/modules/ > multipropertyEditor.rsrc.py > > When I resize the window, I get the following errors > > Tue Apr 29 10:48:08 noname Python[40440] <Error>: CGContextConcatCTM: > invalid context > Tue Apr 29 10:48:08 noname Python[40440] <Error>: CGContextSaveGState: > invalid context > Tue Apr 29 10:48:08 noname Python[40440] <Error>: doClip: invalid > context > Tue Apr 29 10:48:08 noname Python[40440] <Error>: CGContextSaveGState: > invalid context > Tue Apr 29 10:48:08 noname Python[40440] <Error>: > CGContextSetBlendMode: invalid context > Tue Apr 29 10:48:08 noname Python[40440] <Error>: > CGContextSetShouldAntialias: invalid context > Traceback (most recent call last): > File "/Library/Python/2.5/site-packages/PythonCard/model.py", line > 884, in _dispatch > handler(background, aWxEvent) > File "/Library/Python/2.5/site-packages/PythonCard/tools/ > layoutEditor/layoutEditor.py", line 560, in on_size > self.createDC() > File "/Library/Python/2.5/site-packages/PythonCard/tools/ > layoutEditor/layoutEditor.py", line 556, in createDC > dc.SetLogicalFunction(wx.INVERT) > File "/BinaryCache/wxWidgets/wxWidgets-11~57/Root/System/Library/ > Frameworks/Python.framework/Versions/2.5/Extras/lib/python/wx-2.8-mac- > unicode/wx/_gdi.py", line 4079, in SetLogicalFunction > wx._core.PyAssertionError: C++ assertion "status == noErr" failed > at ../src/mac/carbon/graphics.cpp(1324) in EnsureIsValid(): Cannot > nest wxDCs on the same window > > Thanks for any pointers, > Christian > |
From: Christian B. <c.b...@qx...> - 2008-04-29 11:21:41
|
Hello, I have problems getting the layoutEditor or resourceEditor to work on my Mac (OS 10.5 Leopard). I have tried 0.8.2 and CVS. The examples work in both. But trying to start the layoutEditor, for example, results in no resource file for /Users/bibliograph/Programme/PythonCard/tools/ layoutEditor/multipropertyEditor Traceback (most recent call last): File "/BinaryCache/wxWidgets/wxWidgets-11~57/Root/System/Library/ Frameworks/Python.framework/Versions/2.5/Extras/lib/python/wx-2.8-mac- unicode/wx/_core.py", line 14095, in <lambda> File "/Library/Python/2.5/site-packages/PythonCard/tools/ layoutEditor/layoutEditor.py", line 153, in on_initialize self.propertyEditorWindow = model.childWindow(self, PropertyEditor) File "/Library/Python/2.5/site-packages/PythonCard/model.py", line 213, in childWindow rsrc = resource.ResourceFile(filename).getResource() File "/Library/Python/2.5/site-packages/PythonCard/resource.py", line 45, in __init__ self.dictionary = util.readAndEvalFile(rsrcFileName) File "/Library/Python/2.5/site-packages/PythonCard/util.py", line 39, in readAndEvalFile f = open(filename) TypeError: coercing to Unicode: need string or buffer, NoneType found there is a file PythonCard/tools/layoutEditor/modules/ multipropertyEditor.rsrc.py When I resize the window, I get the following errors Tue Apr 29 10:48:08 noname Python[40440] <Error>: CGContextConcatCTM: invalid context Tue Apr 29 10:48:08 noname Python[40440] <Error>: CGContextSaveGState: invalid context Tue Apr 29 10:48:08 noname Python[40440] <Error>: doClip: invalid context Tue Apr 29 10:48:08 noname Python[40440] <Error>: CGContextSaveGState: invalid context Tue Apr 29 10:48:08 noname Python[40440] <Error>: CGContextSetBlendMode: invalid context Tue Apr 29 10:48:08 noname Python[40440] <Error>: CGContextSetShouldAntialias: invalid context Traceback (most recent call last): File "/Library/Python/2.5/site-packages/PythonCard/model.py", line 884, in _dispatch handler(background, aWxEvent) File "/Library/Python/2.5/site-packages/PythonCard/tools/ layoutEditor/layoutEditor.py", line 560, in on_size self.createDC() File "/Library/Python/2.5/site-packages/PythonCard/tools/ layoutEditor/layoutEditor.py", line 556, in createDC dc.SetLogicalFunction(wx.INVERT) File "/BinaryCache/wxWidgets/wxWidgets-11~57/Root/System/Library/ Frameworks/Python.framework/Versions/2.5/Extras/lib/python/wx-2.8-mac- unicode/wx/_gdi.py", line 4079, in SetLogicalFunction wx._core.PyAssertionError: C++ assertion "status == noErr" failed at ../src/mac/carbon/graphics.cpp(1324) in EnsureIsValid(): Cannot nest wxDCs on the same window Thanks for any pointers, Christian |
From: John M. <li...@ji...> - 2008-04-16 20:26:50
|
Alex Schenkman wrote: > I am trying to drag an image over other images. > The problem is that the coordiantes I get with event.position are > relative to the component right under, and I would need absolute > coordinates, since I have many images on top of my background. I found the specific functions I was thinking of: wx.Window.ScreenToClient wx.Window.ClientToScreen So, if you can get the component that your size is relative to, you could do: screen_pos = right_under.ClientToScreen(event.position) absolute_pos = background.ScreenToClient(screen_pos) Does that make sense? I've never done anything like this in PythonCard/wxWidgets, but similar approaches in other systems have worked out for me in the past. -- John McCormick |
From: Alex S. <al...@sc...> - 2008-04-11 14:44:59
|
Hi: I am trying to drag an image over other images. The problem is that the coordiantes I get with event.position are relative to the component right under, and I would need absolute coordinates, since I have many images on top of my background. Any pointers are appreciated. Is there any sample app that drags an image over something else than the backgound? Thanks in advance! |
From: Tony C. <cap...@gm...> - 2008-04-08 23:16:00
|
I've got a gui with a text area widget. I'm running it with the message watcher. When I scroll the vertical and horizontal scrollbars, no messages are generated. Is there a way to enable the scrolling messages? Is it possible to create event handlers to catch the scrolling? Does anyone have an example? |
From: Alex S. <al...@sc...> - 2008-04-08 20:18:22
|
Hello: I have been using commands with menu items before, using model.Background, and they work fine. Now I am trying to use a notebook component, and my menu commands are ignored !?! I can see the event in the message watcher, but I cannot catch it. The only sample I've found using a notebook and the menu is in tools/oneEditor/tabcodeEditor.py They do not use 'commands' there but they use 'select' on menu items. 1) Is there any difference on commands handling when using a notebook? 2) How do I get the model.Backgound object from an event object within a page? In other words: I catch some event in a page, and I want to access some variables from the notebook, that are shared between all pages. Thanks in advance! |
From: Terry M. <ter...@gl...> - 2008-04-03 01:34:55
|
Now that I've got the 'visuals' working with wxPython 2.7.2.0, I added a MultiColumnList to my test app ... I can drag and resize it, but updates/saves don't stick for size (though they do for position) ... it always reverts to (-1, -1) in the Property Editor window, and trying to set the size there doesn't work either. I looked at my rsrc.py file in the code editor, and it turned out this multicolumn didn't have a size line: {'type':'MultiColumnList', 'name':'List1', 'position':(19, 500), 'columnHeadings':[u"['List', Second Title']"], 'font':{'faceName': u'Lucida Grande', 'family': 'default', 'size': 12}, 'items':[], 'maxColumns':20, 'rules':1, }, I added a line 'size':(500, 200), And it now 'appears' fine in both the running app and the Resource Editor ... however the size as reported by the RE's Property Editor window remains (-1, -1) ... Have no idea if this is a bug in RE itself or the MultiColumnList component, but fwiw to any one who does. |
From: Terry M. <ter...@gl...> - 2008-04-02 21:27:57
|
XXXXXXXXXXX wrote: > With the following versions the layout looks the same as XP, i.e. all > components are visible and the text area fills the frame: > > OSX 10.4.11 (PowerPC) > Python 2.3.5 (as shipped with Tiger) > wxPython 2.5.3.1 > PythonCard 0.8.2 > > So it looks more like something specific to newer versions of the > OS/wxPython than a platform difference. I'm also using OSX 10.4.11 (PowerPC), so it's probably not the OS, but definitely is related to wxPython ... versions up to 2.7.2.0 work perfectly, 2.8.0.1 introduces the problem. Unfortunately that's probably not going to help Aaron, as 2.7.2.0 doesn't appear to support OSX 10.5. |
From: Alex S. <al...@sc...> - 2008-04-02 16:23:25
|
Yes, that did the job. Thanks! On 4/1/08, Andy Todd <an...@ha...> wrote: > > Alex Schenkman wrote: > > > I would also need to change the text shown in the root item... > > > > Thanks again! > > > > On 4/1/08, *Alex Schenkman* <al...@sc... <mailto: > > al...@sc...>> wrote: > > > > Hi: > > > > How can I reset a tree component? > > I want to be able to add a new root and new children. > > > > Thanks in advance! > > > > > I would suggest dynamically creating a new tree component in your code and > then swapping it for the existing one when the triggering event occurs. > > Examples of dynamically creating components are in the dbBrowser sample > distributed with PythonCard. > > Regards, > Andy > -- > From the desk of Andrew J Todd esq - http://www.halfcooked.com/ > > |
From: Andy T. <an...@ha...> - 2008-04-01 21:21:45
|
Alex Schenkman wrote: > I would also need to change the text shown in the root item... > > Thanks again! > > On 4/1/08, *Alex Schenkman* <al...@sc... > <mailto:al...@sc...>> wrote: > > Hi: > > How can I reset a tree component? > I want to be able to add a new root and new children. > > Thanks in advance! > I would suggest dynamically creating a new tree component in your code and then swapping it for the existing one when the triggering event occurs. Examples of dynamically creating components are in the dbBrowser sample distributed with PythonCard. Regards, Andy -- From the desk of Andrew J Todd esq - http://www.halfcooked.com/ |
From: Terry M. <ter...@gl...> - 2008-04-01 20:03:20
|
Alex Tweedly wrote: > Aaron Stevens wrote: >> Hi Guys, >> >> So I've been toying around with Layout Editor on Mac, and came across >> some weird behavior. I made a "big" window (800 X 600), and I cannot >> see all of it in layout editor on Mac. When I open the same .rsrc.py >> file in Layout Editor on windows, it looks like. Here are sample >> screen shots of each: >> >> Layout Editor on MAC: http://www.cs.bu.edu/courses/cs108/examples/ >> pc-mac.png >> Layout Editor on Windows XP: http://www.cs.bu.edu/courses/cs108/ >> examples/pc-win.png >> >> AND: when I actually run the application on Mac, it looks fine. This >> problem is only in Layout Editor/design time. Any ideas? > Haven't seen anything like that. Could you send the .rsrc.py file ? > And > version info (Pythoncard, wxPython, wx, OSX) - either direct to me > or to > the list (if you send it direct - please put 'Pythoncard' in the > Subject > line :-) I'm having exactly the same problem as Aaron (in both the Layout Editor and the Resource Editor), using OSX 10.4.11, with: Python 2.5.1 wxPython 2.8 PythonCard 0.8.2 Be glad to send my .rsrc.py file as well if it would be of any help. But I think the problem may be broader than this: when I open the sample app Widgets' .rsrc.py file in Resource Editor, I see only two widgets (chkToggleButton and it's associated StaticText, labelToggleButton), and the Property Editor window shows only these two and one more, labelBitmapCanvas. (I just downloaded fresh copies of both the Resource Editor and Widgets, btw, to be sure I hadn't screwed anything up in playing around with PythonCard ;) Terry Maloney |
From: Alex S. <al...@sc...> - 2008-04-01 16:49:51
|
I would also need to change the text shown in the root item... Thanks again! On 4/1/08, Alex Schenkman <al...@sc...> wrote: > > Hi: > > How can I reset a tree component? > I want to be able to add a new root and new children. > > Thanks in advance! > > |
From: Alex S. <al...@sc...> - 2008-04-01 16:39:42
|
Hi: How can I reset a tree component? I want to be able to add a new root and new children. Thanks in advance! |
From: Aaron S. <az...@bu...> - 2008-04-01 12:13:45
|
John, I agree, even that I don't know VCL, I've had that experience with Java/Swing JPanels. However, it doesn't show up in the .rsrc file, so it seems under cover. Any bright stars know where I might look for such a panel? or is this misdirected? Aaron On Mar 31, 2008, at 11:19 PM, John McCormick wrote: > Aaron Stevens wrote: > > Layout Editor on MAC: > > http://www.cs.bu.edu/courses/cs108/examples/pc-mac.png > > Layout Editor on Windows XP: > > http://www.cs.bu.edu/courses/cs108/examples/pc-win.png > > Based on the abrupt, shadow-less edges on the bottom and right hand > sides of the edit and memo boxes, it seems like there's a ... what > the VCL calls a Panel ... that contains the controls that didn't > expand to match the size of the main frame. I can easily see how > anchoring/sizing could unintentionally be different on Mac OS than > Win32. > > That said, I don't know anything specific about it and don't really > know if the above helps. Just offering it on the off chance that it > will. > > -- > John McCormick > |
From: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - 2008-04-01 09:26:45
|
On 01/04/2008 03:30, Aaron Stevens wrote: > > Resource File attached. My versions: > > OSX 10.5.2 > Python2.5.2 > wxPython 25 (I believe -- MacPorts also installed version 26, but I > don't think I'm using it.) > PythonCard-0.8.2 With the following versions the layout looks the same as XP, i.e. all components are visible and the text area fills the frame: OSX 10.4.11 (PowerPC) Python 2.3.5 (as shipped with Tiger) wxPython 2.5.3.1 PythonCard 0.8.2 So it looks more like something specific to newer versions of the OS/wxPython than a platform difference. Hope this helps. -- XXXXXXXXXXX |
From: Phil E. <ph...@li...> - 2008-04-01 08:56:45
|
Neil Hughes wrote: > > Works OK, apart from the mysterious: > > self.countValue = self.components.Gauge1.max + 1 > > which produces a Spinal Tap moment when you hit the stop button...was > that intentional ;-) > Sort of - that was my quick and dirty way of ensuring that the loop stopped when I wanted it to. The actual bug I meant was that if you run it and let the loop run to completion, it doesn't re-enable the 'Start Loop' button when it's done. Told you it was rubbish code... :-) -- Regards Phil Edwards | PGP/GnuPG Key Id Brighton, UK | 0x68393AEE |
From: John M. <li...@ji...> - 2008-04-01 03:18:28
|
Aaron Stevens wrote: > Layout Editor on MAC: > http://www.cs.bu.edu/courses/cs108/examples/pc-mac.png > Layout Editor on Windows XP: > http://www.cs.bu.edu/courses/cs108/examples/pc-win.png Based on the abrupt, shadow-less edges on the bottom and right hand sides of the edit and memo boxes, it seems like there's a ... what the VCL calls a Panel ... that contains the controls that didn't expand to match the size of the main frame. I can easily see how anchoring/sizing could unintentionally be different on Mac OS than Win32. That said, I don't know anything specific about it and don't really know if the above helps. Just offering it on the off chance that it will. -- John McCormick |
From: Aaron S. <az...@bu...> - 2008-04-01 02:30:50
|
Hi Alex, Resource File attached. My versions: OSX 10.5.2 Python2.5.2 wxPython 25 (I believe -- MacPorts also installed version 26, but I don't think I'm using it.) PythonCard-0.8.2 Any thoughts appreciated! Aaron |
From: Alex T. <al...@tw...> - 2008-03-31 22:29:27
|
Aaron Stevens wrote: > Hi Guys, > > So I've been toying around with Layout Editor on Mac, and came across > some weird behavior. I made a "big" window (800 X 600), and I cannot > see all of it in layout editor on Mac. When I open the same .rsrc.py > file in Layout Editor on windows, it looks like. Here are sample > screen shots of each: > > Layout Editor on MAC: http://www.cs.bu.edu/courses/cs108/examples/pc-mac.png > Layout Editor on Windows XP: http://www.cs.bu.edu/courses/cs108/examples/pc-win.png > > AND: when I actually run the application on Mac, it looks fine. This > problem is only in Layout Editor/design time. Any ideas? > > Haven't seen anything like that. Could you send the .rsrc.py file ? And version info (Pythoncard, wxPython, wx, OSX) - either direct to me or to the list (if you send it direct - please put 'Pythoncard' in the Subject line :-) -- Alex Tweedly mailto:al...@tw... www.tweedly.net |
From: Aaron S. <az...@bu...> - 2008-03-31 21:03:06
|
Hi Guys, So I've been toying around with Layout Editor on Mac, and came across some weird behavior. I made a "big" window (800 X 600), and I cannot see all of it in layout editor on Mac. When I open the same .rsrc.py file in Layout Editor on windows, it looks like. Here are sample screen shots of each: Layout Editor on MAC: http://www.cs.bu.edu/courses/cs108/examples/pc-mac.png Layout Editor on Windows XP: http://www.cs.bu.edu/courses/cs108/examples/pc-win.png AND: when I actually run the application on Mac, it looks fine. This problem is only in Layout Editor/design time. Any ideas? Thanks! Aaron |
From: Andy T. <an...@ha...> - 2008-03-30 11:25:29
|
Aaron Stevens wrote: > I can report that Python and Leopard work great together. I have done > plenty of work on it since January, and I'm pleased. Also wxWindows > and PythonCard work well on Leopard. > > The only area that I've been disappointed in the Mac-Python mix is > with respect to database libraries. There's a fine one for MacPython > library for MySQL, but to get to any other (Oracle, SQL Server > especially) was a royal pain in the tuchus. I ended up writing a > Python wrapper around JDBC, and then I have Python spark up a JVM and > use the JDBC libraries to talk to the databases. And since some of my > code runs on Linux, this worked well for that as well. > > -Aaron > Well, if it works then fine. Alternatively I'd strongly suggest that you install MacPorts. It has clients, Python libraries and even servers for most open source databases. For Oracle and SQL Server you are probably on your own, bearing in mind that you will need the client software to connect to either of these before you can install the appropriate Python DB module and neither of them (to my knowledge) have been ported to OS X. Have you tried running mxODBC or one of the alternatives? > On Mar 25, 2008, at 9:48 AM, Brian Mahoney wrote: > >> I think I ignored the initial post because Python was having >> problems with the Leopard release, and I expected things would >> eventually resolve themselves. You may want to check the internet >> for the general state of Python (esp. PythonLauncher) and Leopard. >> >> Good Luck >> >> Regards, Andy -- From the desk of Andrew J Todd esq - http://www.halfcooked.com/ |
From: Terry M. <ter...@gl...> - 2008-03-29 15:58:34
|
Thanks very much Neil ... exactly what I was looking for, and it's working perfectly in my test app as well. On Mar 28, 2008, at 7:10 AM, XXXXXXXXXXX wrote: > On 27/03/2008 20:23, Terry Maloney wrote: >> I've figured out how to add menu items easily enough using >> PythonCard's menu.py module's appendMenuItem method. But the >> corresponding deleteMenuItem is only a stub. I can almost get the >> underlying wx._core's.Menu's DeleteItem or RemoveItem to work, but >> not quite ... I can't seem to get the parameters right, and >> wxPython is still rather daunting at this point. >> Any pointers to a faq, or a few lines of code if it's trivial, >> would be greatly appreciated. > > I managed to get something to work, but it's a bit messy and tied > to my very simple test application, so for a 'proper' application > it might not help much. > > 1. menu.py - since the function doesn't appear to do anything, > change from > > def deleteMenuItem( self, aName ) : > pass > > to > > def deleteMenuItem( self, aMenuItem ) : > self.items.remove(aMenuItem) > self.DeleteItem(aMenuItem) > > > 2. I then needed some sample code, so I took minimal.py, which has > a menu with one item and after a bit of experimenting got to this: > > ----------------------------- > #!/usr/bin/python > > """ > __version__ = "$Revision: 1.10 $" > __date__ = "$Date: 2004/04/24 22:13:31 $" > """ > > from PythonCard import model > > class Minimal(model.Background): > > def on_textUpdate(self, event): > currentMenu = self.menuBar.menus[0] > items = currentMenu.getMenuItems() > > if(len(items)): > print "Ha! I've deleted your menu item" > itemToDelete = items[0] > currentMenu.deleteMenuItem(itemToDelete) > > if __name__ == '__main__': > app = model.Application(Minimal) > app.MainLoop() > ----------------------------- > > What should happen is that as soon as you start typing into the > text area, the exit menu item disappears. > > -- > XXXXXXXXXXX |
From: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - 2008-03-28 11:11:01
|
On 27/03/2008 20:23, Terry Maloney wrote: > > I've figured out how to add menu items easily enough using PythonCard's > menu.py module's appendMenuItem method. But the > corresponding deleteMenuItem is only a stub. I can almost get the > underlying wx._core's.Menu's DeleteItem or RemoveItem to work, but not > quite ... I can't seem to get the parameters right, and wxPython is > still rather daunting at this point. > > Any pointers to a faq, or a few lines of code if it's trivial, would be > greatly appreciated. I managed to get something to work, but it's a bit messy and tied to my very simple test application, so for a 'proper' application it might not help much. 1. menu.py - since the function doesn't appear to do anything, change from def deleteMenuItem( self, aName ) : pass to def deleteMenuItem( self, aMenuItem ) : self.items.remove(aMenuItem) self.DeleteItem(aMenuItem) 2. I then needed some sample code, so I took minimal.py, which has a menu with one item and after a bit of experimenting got to this: ----------------------------- #!/usr/bin/python """ __version__ = "$Revision: 1.10 $" __date__ = "$Date: 2004/04/24 22:13:31 $" """ from PythonCard import model class Minimal(model.Background): def on_textUpdate(self, event): currentMenu = self.menuBar.menus[0] items = currentMenu.getMenuItems() if(len(items)): print "Ha! I've deleted your menu item" itemToDelete = items[0] currentMenu.deleteMenuItem(itemToDelete) if __name__ == '__main__': app = model.Application(Minimal) app.MainLoop() ----------------------------- What should happen is that as soon as you start typing into the text area, the exit menu item disappears. -- XXXXXXXXXXX |