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: John H. <ec...@ya...> - 2009-10-29 03:41:45
|
With the help of a debugger and plenty of Google searches, and a lot of guessing, I was able to invoke most of the wx tree functions. It proves that the minimal tree wrapper does work. -- John Henry ----- Original Message ---- > From: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX > To: John Henry <kim...@ya...> > Cc: pyt...@li... > Sent: Wed, October 28, 2009 4:24:03 AM > Subject: Re: [Pythoncard-users] tree > > On 21/10/09 00:27, John Henry wrote: > > Does anybody have more examples on the tree control? The minimum tree only > show very simple functions and I'm able to do those. But there is no > information on how I can traverse the tree - start with the root, get to the > NextChild, get the label, delete a branch, programmatically expand or contract a > branch, ... - all the standard things one would do with a tree... > > My use of the tree control hasn't been much more sophisticated than the > example. I did add a couple of extra method aliases to > PythonCard\components\tree.py because the ones already there are only > enough to support the example. So in __init__ I added > > setExpanded = wx.TreeCtrl.Expand > clearTree = wx.TreeCtrl.DeleteAllItems > > so that having built the tree from a dictionary I could open up all of > the nodes at startup, and I could tear it down and rebuild it > differently later on. > > -- > XXXXXXXXXXX > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Pythoncard-users mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncard-users |
From: John H. <ec...@ya...> - 2009-10-29 03:37:42
|
Without knowing what I am doing, I used htmlWindow as a sample and created a PDFWindow wrapper. The problem is that when it chokes at the line: wx.activex.ActiveXWindow.__init__(self, parent, wx.activex.CLSID('{CA8A9780-280D-11CF-A24D-444553540000}'), ID, pos, size, style, name) inside wx\lib\pdfwin.py. I have no clue what to do. """ __version__ = "$Revision: 1.17 $" __date__ = "$Date: 2004/05/13 02:40:24 $" """ import wx from wx.lib import pdfwin from PythonCard import event, log, widget class PDFWindowSpec(widget.WidgetSpec): def __init__(self): events = [] attributes = { 'size' : { 'presence' : 'optional', 'default' : [ 50, 50 ] }, 'text' : { 'presence' : 'optional', 'default' : '' }, } widget.WidgetSpec.__init__(self, 'PDFWindow', 'Widget', events, attributes ) class PDFWindow(widget.Widget, pdfwin.PDFWindow): """ An PDF window. """ _spec = PDFWindowSpec() def __init__(self, aParent, aResource): self._addressField = None id=widget.makeNewId(aResource.id) pdfwin.PDFWindow.__init__( self, aParent, id, aResource.position, aResource.size, style=wx.SUNKEN_BORDER, #style = wx.HW_SCROLLBAR_AUTO | wx.CLIP_SIBLINGS, name = aResource.name ) widget.Widget.__init__(self, aParent, aResource) self._setText(aResource.text) self._bindEvents(event.WIDGET_EVENTS) def setAddressField(self, field): self._addressField = field def _getText(self) : return self.GetOpenedFile() def _setText(self, aString): if aString == '' or aString[0] == '<': self.SetFile(aString) else: # filename self.LoadFile(aString) #self._delegate.Refresh() def base_LoadFile(self, url): log.debug("base_LoadFile " + url) if self._addressField is not None: self._addressField.text = url log.debug("loaded") pdfwin.PDFWindow.base_LoadFile(self, url) def LoadFile(self, url): log.debug("LoadFile " + url) if self._addressField is not None: self._addressField.text = url log.debug("loaded") pdfwin.PDFWindow.LoadFile(self, url) def SetFile(self, text): log.debug("SetFile " + text) #if self._addressField is not None: # self._addressField.text = text # log.debug("set") pdfwin.PDFWindow.SetFile(self, text) def OnLinkClicked(self, link): log.debug("OnLinkClicked " + str(link)) if self._addressField is not None: url = self.GetOpenedFile() log.debug("url: " + url) baseURL = url[:url.rfind('/')] log.debug("baseURL: " + baseURL) href = link.GetHref() log.debug("href: " + href) if href.find('://') != -1: self._addressField.text = href else: self._addressField.text = baseURL + '/' + href log.debug("full url: " + self._addressField.text) # Virtuals in the base class have been renamed with base_ on the front. pdfwin.PDFWindow.base_OnLinkClicked(self, link) text = property(_getText, _setText) import sys from PythonCard import registry registry.Registry.getInstance().register(sys.modules[__name__].PDFWindow) -- John Henry ----- Original Message ---- > From: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX > To: John Henry <kim...@ya...> > Cc: pyt...@li... > Sent: Wed, October 28, 2009 3:11:25 AM > Subject: Re: [Pythoncard-users] PDFWindow > > On 28/10/09 04:08, John Henry wrote: > > What ever happened to PDFWindow for Pythoncard? Did it ever happened? > > > > http://osdir.com/ml/python.pythoncard/2004-04/msg00116.html > > Probably not....this is the first I've heard of it, not having delved > too deeply into the mailing list archives. > > With, I suspect, quite a few of the PythonCard users using non-Windows > development machines (including Kevin) maybe one of the factors is the > use of ActiveX? > > -- > XXXXXXXXXXX > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Pythoncard-users mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncard-users |
From: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - 2009-10-28 11:24:18
|
On 21/10/09 00:27, John Henry wrote: > Does anybody have more examples on the tree control? The minimum tree only show very simple functions and I'm able to do those. But there is no information on how I can traverse the tree - start with the root, get to the NextChild, get the label, delete a branch, programmatically expand or contract a branch, ... - all the standard things one would do with a tree... My use of the tree control hasn't been much more sophisticated than the example. I did add a couple of extra method aliases to PythonCard\components\tree.py because the ones already there are only enough to support the example. So in __init__ I added setExpanded = wx.TreeCtrl.Expand clearTree = wx.TreeCtrl.DeleteAllItems so that having built the tree from a dictionary I could open up all of the nodes at startup, and I could tear it down and rebuild it differently later on. -- XXXXXXXXXXX |
From: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - 2009-10-28 10:46:21
|
On 28/10/09 04:08, John Henry wrote: > What ever happened to PDFWindow for Pythoncard? Did it ever happened? > > http://osdir.com/ml/python.pythoncard/2004-04/msg00116.html Probably not....this is the first I've heard of it, not having delved too deeply into the mailing list archives. With, I suspect, quite a few of the PythonCard users using non-Windows development machines (including Kevin) maybe one of the factors is the use of ActiveX? -- XXXXXXXXXXX |
From: John H. <ec...@ya...> - 2009-10-28 04:08:26
|
What ever happened to PDFWindow for Pythoncard? Did it ever happened? http://osdir.com/ml/python.pythoncard/2004-04/msg00116.html Regards, -- John Henry |
From: John H. <ec...@ya...> - 2009-10-20 23:27:34
|
Does anybody have more examples on the tree control? The minimum tree only show very simple functions and I'm able to do those. But there is no information on how I can traverse the tree - start with the root, get to the NextChild, get the label, delete a branch, programmatically expand or contract a branch, ... - all the standard things one would do with a tree... Thanks, -- John Henry |
From: John H. <ec...@ya...> - 2009-10-20 03:46:25
|
Hi list, Is it possible to accept a Drag-n-drop event from the IE running under Windows? In other words, if I drag a file from the drive folder and drop it onto a Pythoncard window, is there a way to raise an event and get, perheps the name of the file? If so, does anybody has any sample code? Thanks, -- John Henry |
From: Michele C. <mca...@in...> - 2009-10-07 17:28:19
|
Hi, following the same approach of PythonCard's components, I tried to add a multiselection list (as opposed to the single selection one avaialable 'List') by simply copy-paste-modify the code for List in list.py under components. Aside from the type field, which contains LB_MULTIPLE instead of LB_SINGLE, a couple of changes in the getter and setter and the class name not much was needed. Problems arise though when I open the layout editor. First of all, the MultiSelList doesn't appear in the components list. Furthermore, when I click on List to instantiate a new layout component, it actually instantiate a MultiSelList instead of the usual List. I suppose there is something going on with the registration of the class with the engine, as the console spits an error out because the class key lookup for MultiSelList in the component class dictionary failed (in registry.py). I also tried adding the new component in a another folder appcomponents as that seems the way suggested. No luck. Do you have any hint on what it takes to add this new class/component or alternatively extend the current 'List' to be either ways (multi selection AND single selection (default so that it does not clash with the tools already developed)? My Best Regards, Thanks for this amazingly simple GUI framework. Michele |
From: Badoo <no...@ba...> - 2009-09-24 15:24:14
|
Hai ricevuto un nuovo messaggio su Badoo! Antonio Fontana ti ha lasciato un nuovo messaggio Segui questo link per leggerlo: http://eu1.badoo.com/0158371683/in/IxTtVROTaes/?lang_id=8 Inoltre, altra gente ti ha cercato: David Mary (Torino, Italia)Oo. ò .oO (Torino, Italia)Alessia (Torino, Italia) Se cliccando sul link in questo messaggio, questo non dovesse funzionare, copia e incolla lo stesso nella barra degli indirizzi del tuo browser. Hai ricevuto questa email, perché un utente di Badoo ti ha lasciato un messaggio su Badoo. Questo e' un messaggio informativo generato automaticamente, eventuali risposte a questa email non sono monitorate ne risposte. Se non desideri ricevere altri messaggi da clicca qui: http://eu1.badoo.com/impersonation.phtml?lang_id=8&mail_code=21&email=pythoncard-users%40lists.sourceforge.net&secret=&invite_id=295176&user_id=158371683 |
From: Kevin A. <al...@se...> - 2009-08-03 16:16:07
|
On Aug 3, 2009, at 1:39 AM, Alec Bennett wrote: > I'm trying to bind a key event to a Python card window. Something > like: > > self.Bind(wx.EVT_KEY_DOWN, self.onKey) > > The "onKey" function should be triggered whenever a key is pressed > when the window has focus. The event isn't being caught though. > > Wondering if anyone might have any tips? If you use the Message Watcher window (-m from the command-line) you can see which events are firing when you type in your window. The keyDown, keyUp, and keyPress events are your choices for processing. Chances are you don't actually want a key event bound to the window itself, since whatever component that has focus will actually be getting the event and it will pass up the chain to the window. So, chances are you'll have something like on_keyPress(self, event): keyCode = event.keyCode if keyCode == 13: print "user pressed return" event.skip() If you use the findfiles tool you can search for on_.*_key within the PythonCard folder and see all the samples and tools that use keyDown, keyUp, and keyPress events. ka |
From: Alec B. <wry...@gm...> - 2009-08-03 08:39:16
|
I'm trying to bind a key event to a Python card window. Something like: self.Bind(wx.EVT_KEY_DOWN, self.onKey) The "onKey" function should be triggered whenever a key is pressed when the window has focus. The event isn't being caught though. Wondering if anyone might have any tips? |
From: Kevin A. <al...@se...> - 2009-07-30 00:48:21
|
I just got done upgrading to Leopard (finally) on a couple of machines and decided to revisit the Python 2.6 problem with any sample or tool that makes use of paths such as the codeeditor module. It appears there was just a poorly coded hack to support bundlebuilder on the Mac that needed a tweak in PythonCard/util.py. def main_is_frozen(): if sys.platform == 'darwin': # this is a temporary hack for bundlebuilder return not (sys.executable == '/System/Library/Frameworks/ Python.framework/Versions/2.3/Resources/Python.app/Contents/MacOS/ Python' or \ sys.executable == '/Library/Frameworks/ Python.framework/Versions/2.4/Resources/Python.app/Contents/MacOS/ Python' or \ sys.executable == '/Library/Frameworks/ Python.framework/Versions/2.5/Resources/Python.app/Contents/MacOS/ Python') else: return (hasattr(sys, "frozen") or # new py2exe, McMillan hasattr(sys, "importers") # old py2exe or imp.is_frozen("__main__")) # tools/freeze, cx_freeze becomes def main_is_frozen(): if sys.platform == 'darwin': # this is a temporary hack for bundlebuilder return not (sys.executable.endswith('Resources/Python.app/ Contents/MacOS/Python') else: return (hasattr(sys, "frozen") or # new py2exe, McMillan hasattr(sys, "importers") # old py2exe or imp.is_frozen("__main__")) # tools/freeze, cx_freeze This is still a hack and possibly needs a better solution, but at least it appears to allow codeEditor, tabcodeEditor, and the resourceEditor among other things to load. Hopefully, this will make it easier to find other issues that need to be addressed for PythonCard to run correctly with Python 3.x BTW, if you are messing with various versions of Python on the Mac remember that PythonLauncher uses the same settings regardless of which version you run from the Finder. In the Terminal, you probably need to edit the .cshrc in your home directory if you're trying to run python 2.5 by default after installing 2.6. The MacPython installer adds the following lines # Setting PATH for MacPython 2.5 # The orginal version is saved in .cshrc.pysave set path=(/Library/Frameworks/Python.framework/Versions/Current/bin $path) # Setting PATH for MacPython 2.6 # The orginal version is saved in .cshrc.pysave set path=(/Library/Frameworks/Python.framework/Versions/2.6/bin $path) You can always run the version you want by using an explicit path like /usr/local/bin/python2.5 or /usr/local/bin/python2.6 ka |
From: Kevin A. <al...@se...> - 2009-07-30 00:47:57
|
I dropped a parens on previous code, the correct version which I just copied and pasted from a working version is: def main_is_frozen(): if sys.platform == 'darwin': # this is a temporary hack for bundlebuilder return not (sys.executable.endswith('Resources/Python.app/ Contents/MacOS/Python')) else: return (hasattr(sys, "frozen") or # new py2exe, McMillan hasattr(sys, "importers") # old py2exe or imp.is_frozen("__main__")) # tools/freeze, cx_freeze Sorry for the earlier mistake, ka |
From: Kevin A. <al...@se...> - 2009-07-07 01:29:51
|
On Jul 6, 2009, at 11:38 AM, Ignatz Razkiwatzki wrote: > Thanks, Kevin. > > I take it you're recommending a fresh install. Is that correct. > If so, should I first uninstall the version I've got now? If yes, > how? > > IR > I don't think there is a reason for you to uninstall other than saving minor amounts of disk space. Doing a new install with the package versions I recommended should put in position to have everything running. You can check that Python and wxPython are running correctly from the Terminal and Finder and then do the PythonCard install. I don't know offhand how you go about uninstalling user versions of Python safely from the Mac. wxPython has a uninstall_wxPython.py file that should deal with most versions of wxPython that you might have installed. I don't know if a GUI package manager was ever done for Python on the Mac or not. It would probably alleviate some of these problems. ka |
From: Terry M. <ter...@gl...> - 2009-07-06 19:52:31
|
Hi again, Ignatz, A couple of points, then I'm going to leave you in Neil and Kevin's hands -- they actually understand this stuff ;) 1) I don't understand why Idle isn't opening, but it's probably a clue ... > I've played around with typing "python" into terminal. That seems > to work. > I get perform simple commands (add, multiply, print) but haven't > gotten any > further than that. 2) That's a start -- at least Python itself is installed/working. 3) Neil mentioned the wxPython 2.8 demos/documentation package -- I'd forgotten, but that's what installs a wxPython folder into your Applications folder. You can find it here: http://www.wxpython.org/download.php After installing, try running the wxPython Demo app ... that should provide another clue as to what is or isn't working. Terry |
From: Kevin A. <al...@se...> - 2009-07-06 19:08:07
|
Sorry about the confusing docs. General links: Python 2.5.x http://www.python.org/download/releases/2.5.4/ This is the last stable release of 2.5.x. http://www.python.org/ftp/python/2.5.4/python-2.5.4-macosx.dmg "The Universal OS X image contains an installer for python 2.5.4 that works on Mac OS X 10.3.9 and later, on both PPC and Intel Macs. The compiled libraries include both bsddb and readline." wxPython http://www.wxpython.org/download.php#binaries You probably want a 2.5 universal Mac build. http://downloads.sourceforge.net/wxpython/wxPython2.8-osx- unicode-2.8.10.1-universal-py2.5.dmg http://downloads.sourceforge.net/wxpython/wxPython2.8-osx-docs- demos-2.8.10.1-universal-py2.5.dmg You must always match the version of wxPython to the version of Python that you are using. Since the various versions of Mac OS X include their own copies of Python, the safest thing to do is pick which version of Python you want using a universal installer, match it up with the right wxPython, and then test that wxPython is working properly from the command-line and from the Finder. This leaves the Python (and sometimes wxPython) that comes with your OS intact for any system utilities that make use of it. Once you've done the Python and wxPython installs, PythonCard should install fine assuming you specify the Python you just installed or it is defaulting to the right Python in the Terminal as Neil commented on in his message. There are code tweaks that probably need to be made to PythonCard to conform to Python 3.x standards and Python 2.6.x largely exists to support transitioning to 3.x, which is why 2.5.x is recommended. ka On Jul 5, 2009, at 2:51 PM, Ignatz Razkiwatzki wrote: > Hello, > I am trying to install Python on my son's iMac running OSX 10.3.9. > But every time I try to launch a .py file I get an error message: > "Application Python has unexpectedly quit." The message from the > Terminal is: > > Last login: Sun Jul 5 16:55:21 on ttyp3 > cd '/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ > site-packages/PythonCard/samples/minimal/' && '/usr/local/bin/ > pythonw' '/Library/Frameworks/Python.framework/Versions/2.5/lib/ > pythoWelcome to Darwin! > n2.5/site-packages/PythonCard/samples/minimal/minimal.py' && echo > Exit status: $? && exit 1 > [No-lle-McAfees-Computer:~] nmcafee% cd '/Library/Frameworks/ > Python.framework/Versions/2.5/lib/python2.5/site-packages/ > PythonCard/samples/minimal/' && '/usr/local/bin/pythonw' '/Library/ > Frameworks/Python.framework/Versions/2.5/lib/python2.5/site- > packages/PythonCard/samples/minimal/minimal.py' && echo Exit > status: $? && exit 1 > dyld: /Library/Frameworks/Python.framework/Versions/2.5/Resources/ > Python.app/Contents/MacOS/Python Undefined symbols: > /usr/local/lib/wxPython-unicode-2.8.3.0/lib/libwx_macud-2.8.0.dylib > undefined reference to _HIThemeBrushCreateCGColor expected to be > defined in Carbon > Trace/BPT trap > [No-lle-McAfees-Computer:PythonCard/samples/minimal] nmcafee% > > > To install Python I started at: http://www.manning.com/sande/ > Installation_Instructions.html#mac > > Everything installed fine until step 5: "Follow this link to > install PythonCard. (Choose the correct version of Mac OS X, as > described on the PythonCard page.)" > > That led me to here: http://pythoncard.sourceforge.net/ > installation.html > > I followed the instructions for installing the version for Apple > Panther, here: http://pythoncard.sourceforge.net/ > macosx_panther_installation.html > > The only differences were that I had already installed Python2.5 as > instructed previously, so I didn't install MacPython- > Panther-2.3-2.dmg and I had already intalled wxpython2.8 so I > didn't install wxPythonOSX-2.5.2.8-panther-Py2.3.dmg > > I installed pythoncard, as instructed. > > I did not understand the "Confirming Installation" instruction and, > so, did not do that. > > On the "Configuring PythonLauncher," I selected a .py file, opened > the Information window and switched the Open With to > PythonLauncher. I also selected the the box to open all .py files > with PhthonLauncher. I then did the same thing with .pyw files. > > On the Acid Test, I double-clicked the minimal.py file. I got an > error message saying, "Application Python has unexpectedly quit." > > I checked to make sure that wxPython and PythonCard are in the site- > packages folder in Python's Lib folder. (The wxPython folder in > lib/python2.5/site-pacages/wx-2.8-mac-unicode. The Pythoncard > folder is in lib/python2.5/site-packages.) > > I tried restarting the computer then double-clicked minimal.py > again. Same result. > > I followed the rest of the instructions at: http://www.manning.com/ > sande/Installation_Instructions.html#mac and installed EasyGUI, SPE > and One Big Zip. (I put the EasyGUI83 folder in Mac HD/library/ > frameworks/pythonframe.frameworks/versions/2.5/lib/python2.5/site- > packages.) > > I restarted the computer, double clicked minimal.py. Same error > message. > > Does anyone know how to fix this? Any help would be greatly > appreciated. I know nothing about programing, so the more jargon- > free the instructions the better. > > Please email responses to rat...@gm... > > Thank you. > IR > > > ---------------------------------------------------------------------- > -------- > _______________________________________________ > Pythoncard-users mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncard-users |
From: Ignatz R. <rat...@gm...> - 2009-07-06 19:00:47
|
Thanks, Kevin. I take it you're recommending a fresh install. Is that correct. If so, should I first uninstall the version I've got now? If yes, how? IR On Jul 6, 2009, at 2:03 PM, Kevin Altis wrote: > Sorry about the confusing docs. > > General links: > > Python 2.5.x > http://www.python.org/download/releases/2.5.4/ > This is the last stable release of 2.5.x. > http://www.python.org/ftp/python/2.5.4/python-2.5.4-macosx.dmg > "The Universal OS X image contains an installer for python 2.5.4 > that works on Mac OS X 10.3.9 and later, on both PPC and Intel Macs. > The compiled libraries include both bsddb and readline." > > wxPython > http://www.wxpython.org/download.php#binaries > You probably want a 2.5 universal Mac build. > http://downloads.sourceforge.net/wxpython/wxPython2.8-osx-unicode-2.8.10.1-universal-py2.5.dmg > http://downloads.sourceforge.net/wxpython/wxPython2.8-osx-docs-demos-2.8.10.1-universal-py2.5.dmg > > You must always match the version of wxPython to the version of > Python that you are using. Since the various versions of Mac OS X > include their own copies of Python, the safest thing to do is pick > which version of Python you want using a universal installer, match > it up with the right wxPython, and then test that wxPython is > working properly from the command-line and from the Finder. This > leaves the Python (and sometimes wxPython) that comes with your OS > intact for any system utilities that make use of it. > > Once you've done the Python and wxPython installs, PythonCard should > install fine assuming you specify the Python you just installed or > it is defaulting to the right Python in the Terminal as Neil > commented on in his message. > > There are code tweaks that probably need to be made to PythonCard to > conform to Python 3.x standards and Python 2.6.x largely exists to > support transitioning to 3.x, which is why 2.5.x is recommended. > > ka > > > On Jul 5, 2009, at 2:51 PM, Ignatz Razkiwatzki wrote: > >> Hello, >> I am trying to install Python on my son's iMac running OSX 10.3.9. >> But every time I try to launch a .py file I get an error message: >> "Application Python has unexpectedly quit." The message from the >> Terminal is: >> >> Last login: Sun Jul 5 16:55:21 on ttyp3 >> cd '/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ >> site-packages/PythonCard/samples/minimal/' && '/usr/local/bin/ >> pythonw' '/Library/Frameworks/Python.framework/Versions/2.5/lib/ >> pythoWelcome to Darwin! >> n2.5/site-packages/PythonCard/samples/minimal/minimal.py' && echo >> Exit status: $? && exit 1 >> [No-lle-McAfees-Computer:~] nmcafee% cd '/Library/Frameworks/ >> Python.framework/Versions/2.5/lib/python2.5/site-packages/ >> PythonCard/samples/minimal/' && '/usr/local/bin/pythonw' '/Library/ >> Frameworks/Python.framework/Versions/2.5/lib/python2.5/site- >> packages/PythonCard/samples/minimal/minimal.py' && echo Exit >> status: $? && exit 1 >> dyld: /Library/Frameworks/Python.framework/Versions/2.5/Resources/ >> Python.app/Contents/MacOS/Python Undefined symbols: >> /usr/local/lib/wxPython-unicode-2.8.3.0/lib/libwx_macud-2.8.0.dylib >> undefined reference to _HIThemeBrushCreateCGColor expected to be >> defined in Carbon >> Trace/BPT trap >> [No-lle-McAfees-Computer:PythonCard/samples/minimal] nmcafee% >> >> >> To install Python I started at: http://www.manning.com/sande/Installation_Instructions.html#mac >> >> Everything installed fine until step 5: "Follow this link to >> install PythonCard. (Choose the correct version of Mac OS X, as >> described on the PythonCard page.)" >> >> That led me to here: http://pythoncard.sourceforge.net/installation.html >> >> I followed the instructions for installing the version for Apple >> Panther, here: http://pythoncard.sourceforge.net/macosx_panther_installation.html >> >> The only differences were that I had already installed Python2.5 as >> instructed previously, so I didn't install MacPython- >> Panther-2.3-2.dmg and I had already intalled wxpython2.8 so I >> didn't install wxPythonOSX-2.5.2.8-panther-Py2.3.dmg >> >> I installed pythoncard, as instructed. >> >> I did not understand the "Confirming Installation" instruction and, >> so, did not do that. >> >> On the "Configuring PythonLauncher," I selected a .py file, opened >> the Information window and switched the Open With to >> PythonLauncher. I also selected the the box to open all .py files >> with PhthonLauncher. I then did the same thing with .pyw files. >> >> On the Acid Test, I double-clicked the minimal.py file. I got an >> error message saying, "Application Python has unexpectedly quit." >> >> I checked to make sure that wxPython and PythonCard are in the site- >> packages folder in Python's Lib folder. (The wxPython folder in >> lib/python2.5/site-pacages/wx-2.8-mac-unicode. The Pythoncard >> folder is in lib/python2.5/site-packages.) >> >> I tried restarting the computer then double-clicked minimal.py >> again. Same result. >> >> I followed the rest of the instructions at: http://www.manning.com/sande/Installation_Instructions.html#mac >> and installed EasyGUI, SPE and One Big Zip. (I put the EasyGUI83 >> folder in Mac HD/library/frameworks/pythonframe.frameworks/versions/ >> 2.5/lib/python2.5/site-packages.) >> >> I restarted the computer, double clicked minimal.py. Same error >> message. >> >> Does anyone know how to fix this? Any help would be greatly >> appreciated. I know nothing about programing, so the more jargon- >> free the instructions the better. >> >> Please email responses to rat...@gm... >> >> Thank you. >> IR >> >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Pythoncard-users mailing list >> Pyt...@li... >> https://lists.sourceforge.net/lists/listinfo/pythoncard-users > |
From: Ignatz R. <rat...@gm...> - 2009-07-06 18:20:41
|
Hi Terry, Thanks for this. I found a folder labeled Demo in HD/apps/MacPython 2.5/Extras. I tried clicking on one of the files (dates.py). An icon came up making it look like IDLE was trying to launch. It then disappeared and nothing happened. There's also a folder called Demo.Mac in Extras. I tried double clicking one of the .py files in it too. Same result. I also tried opening one of the .py files in Demo.Mac with PythonLauncher. I got an error message that says: Can’t open file “/Applications/MacPython 2.5/Extras/Demo.Mac/applescript/makedisk.py”. A message in Terminal also came up saying: Last login: Mon Jul 6 10:42:57 on ttyp1 cd '/Applications/MacPython 2.5/Extras/Demo.Mac/applescript/' && '/usr/local/bin/pythonw' '/Applications/MacPython 2.5/Extras/Demo.Mac/applescript/makedisk.py' && echo Exit status: $? && exit 1 Welcome to Darwin! [No-lle-McAfees-Computer:~] nmcafee% cd '/Applications/MacPython 2.5/Extras/Demo.Mac/applescript/' && '/usr/local/bin/pythonw' '/Applications/MacPython 2.5/Extras/Demo.Mac/applescript/makedisk.py' && echo Exit status: $? && exit 1 Traceback (most recent call last): File "/Applications/MacPython 2.5/Extras/Demo.Mac/applescript/makedisk.py", line 1, in <module> import Disk_Copy File "/Applications/MacPython 2.5/Extras/Demo.Mac/applescript/Disk_Copy/__init__.py", line 7, in <module> import Standard_Suite File "/Applications/MacPython 2.5/Extras/Demo.Mac/applescript/Disk_Copy/Standard_Suite.py", line 33 SyntaxError: Non-ASCII character '\x8e' in file /Applications/MacPython 2.5/Extras/Demo.Mac/applescript/Disk_Copy/Standard_Suite.py on line 34, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details [No-lle-McAfees-Computer:Extras/Demo.Mac/applescript] nmcafee% I've played around with typing "python" into terminal. That seems to work. I get perform simple commands (add, multiply, print) but haven't gotten any further than that. When I try double clicking on IDLE, it looks like it tries to launch then disappears. Any ideas. Thanks, IR On Mon, Jul 6, 2009 at 12:40 PM, Terry Maloney < ter...@gl...> wrote: > Hi Ignatz, > > I'm pretty much of a beginner myself, but I think I can help you with a > couple of points below, although unfortunately not with your main problem. > > Date: Mon, 6 Jul 2009 10:53:30 -0400 >> From: Ignatz Razkiwatzki <rat...@gm...> >> >> >> Hi Neil, >> >> Thanks for getting back to me. I'm not sure whether the demos work. I >> just followed the directions. I didn't see anything about demos. If >> you can tell me where they are and what to do I can try them. >> > > Look for a wxPython folder in your Applications folder ... or search your > computer for 'wxPython Demo'. > > Also, as suggested in the book Hello World!, I tried typing "print >> "HelloWorld!" after the prompt in Terminal. I got an error message >> saying: >> >> [No-lle-McAfees-Computer:~] nmcafee% print "HelloWorld!" >> tcsh: print: Command not found. >> >> Note that the prompt does not look like the one in the book (ie >> ">>>>>"). It is: >> [No-lle-McAfees-Computer:~] nmcafee% >> >> I'm not sure if that makes a difference. >> > > It does. The [No-lle-McAfees-Computer:~] nmcafee% prompt is a Unix prompt. > Type 'python' (without the quotes) and hit return, which will start Python > and give you the >>> prompt. > > Terry > > > > On Jul 6, 2009, at 10:30 AM, Neil Hughes wrote: >> >> On 5/7/09 22:51, Ignatz Razkiwatzki wrote: >>> >>>> >>>> I am trying to install Python on my son's iMac running OSX 10.3.9. >>>> But every time I try to launch a .py file I get an error message: >>>> "Application Python has unexpectedly quit." >>>> >>> >>> Do non-PythonCard programs work OK? When you installed wxPython 2.8, >>> did the demo applications work OK (and do they still work OK now)? >>> >>> -- >>> Neil Hughes >>> >> > |
From: Terry M. <ter...@gl...> - 2009-07-06 17:41:08
|
Hi Ignatz, I'm pretty much of a beginner myself, but I think I can help you with a couple of points below, although unfortunately not with your main problem. > Date: Mon, 6 Jul 2009 10:53:30 -0400 > From: Ignatz Razkiwatzki <rat...@gm...> > > > Hi Neil, > > Thanks for getting back to me. I'm not sure whether the demos work. I > just followed the directions. I didn't see anything about demos. If > you can tell me where they are and what to do I can try them. Look for a wxPython folder in your Applications folder ... or search your computer for 'wxPython Demo'. > Also, as suggested in the book Hello World!, I tried typing "print > "HelloWorld!" after the prompt in Terminal. I got an error message > saying: > > [No-lle-McAfees-Computer:~] nmcafee% print "HelloWorld!" > tcsh: print: Command not found. > > Note that the prompt does not look like the one in the book (ie > ">>>>>"). It is: > [No-lle-McAfees-Computer:~] nmcafee% > > I'm not sure if that makes a difference. It does. The [No-lle-McAfees-Computer:~] nmcafee% prompt is a Unix prompt. Type 'python' (without the quotes) and hit return, which will start Python and give you the >>> prompt. Terry > On Jul 6, 2009, at 10:30 AM, Neil Hughes wrote: > >> On 5/7/09 22:51, Ignatz Razkiwatzki wrote: >>> >>> I am trying to install Python on my son's iMac running OSX 10.3.9. >>> But every time I try to launch a .py file I get an error message: >>> "Application Python has unexpectedly quit." >> >> Do non-PythonCard programs work OK? When you installed wxPython 2.8, >> did the demo applications work OK (and do they still work OK now)? >> >> -- >> Neil Hughes |
From: Ignatz R. <rat...@gm...> - 2009-07-06 16:21:13
|
Neil, Thank you again. This is very helpful. I tried your suggest and typed "python" into Terminal. I got back the following: Python 2.5 (r25:51918, Sep 19 2006, 08:49:13) [GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> I then typed "print "HelloWord!" and got back the following: HelloWorld! >>> This is certainly a positive development. Does this mean that everything is working properly, or is that too optimistic? Do I need to type "python" each time when I start up terminal to get to the correct prompt. Anything else I need to do/know/test? Sorry for all the newbie questions. This clearly isn't as simple as the books would lead you to belive. I greatly appreciate your help. IR On Mon, Jul 6, 2009 at 10:43 AM, XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXwrote: > On 6/7/09 15:53, Ignatz Razkiwatzki wrote: > >> Hi Neil, >> >> Thanks for getting back to me. I'm not sure whether the demos work. I >> just followed the directions. I didn't see anything about demos. If you >> can tell me where they are and what to do I can try them. >> > > The wxPython 2.8 demos/documentation are a separate package, so if you > didn't explicitly download them then I'm guessing you don't have them. > > Also, as suggested in the book Hello World!, I tried typing "print >> "HelloWorld!" after the prompt in Terminal. I got an error message saying: >> >> [No-lle-McAfees-Computer:~] nmcafee% print "HelloWorld!" >> tcsh: print: Command not found. >> > > That page makes a number of assumptions, the big one being that you're > familiar with Python coding, or you've spent time reading the useful links. > > Considering how difficult it is for more experienced developers like me to > get PythonCard up and running on the ever-changing-version game that is > Python/wxPython/OSX, I'm not surprised you've hit problems if you've never > done this before. > > 'print "HelloWorld!"' won't work from the Terminal because you need to be > running the python interpreter - the Terminal shell (tcsh) doesn't > understand "print". Now..."echo"...that works...but we're going off topic. > > Try this from the Terminal, to see what state your Python setup is in: > > python > > You should get something like this: > > Lightning:~ nkh$ python > Python 2.5.1 (r251:54863, Jan 13 2009, 10:26:13) > [GCC 4.0.1 (Apple Inc. build 5465)] on darwin > Type "help", "copyright", "credits" or "license" for more information. > >>> > > and if you try print... > > >>> print "HelloWorld!" > HelloWorld! > >>> > > Does that work on your Mac? > > Regards > -- > XXXXXXXXXXX > > |
From: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - 2009-07-06 15:47:05
|
On 6/7/09 15:53, Ignatz Razkiwatzki wrote: > Hi Neil, > > Thanks for getting back to me. I'm not sure whether the demos work. I > just followed the directions. I didn't see anything about demos. If > you can tell me where they are and what to do I can try them. The wxPython 2.8 demos/documentation are a separate package, so if you didn't explicitly download them then I'm guessing you don't have them. > Also, as suggested in the book Hello World!, I tried typing "print > "HelloWorld!" after the prompt in Terminal. I got an error message > saying: > > [No-lle-McAfees-Computer:~] nmcafee% print "HelloWorld!" > tcsh: print: Command not found. That page makes a number of assumptions, the big one being that you're familiar with Python coding, or you've spent time reading the useful links. Considering how difficult it is for more experienced developers like me to get PythonCard up and running on the ever-changing-version game that is Python/wxPython/OSX, I'm not surprised you've hit problems if you've never done this before. 'print "HelloWorld!"' won't work from the Terminal because you need to be running the python interpreter - the Terminal shell (tcsh) doesn't understand "print". Now..."echo"...that works...but we're going off topic. Try this from the Terminal, to see what state your Python setup is in: python You should get something like this: Lightning:~ nkh$ python Python 2.5.1 (r251:54863, Jan 13 2009, 10:26:13) [GCC 4.0.1 (Apple Inc. build 5465)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> and if you try print... >>> print "HelloWorld!" HelloWorld! >>> Does that work on your Mac? Regards -- XXXXXXXXXXX |
From: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - 2009-07-06 14:59:59
|
On 5/7/09 22:51, Ignatz Razkiwatzki wrote: > > I am trying to install Python on my son's iMac running OSX 10.3.9. But > every time I try to launch a .py file I get an error message: > "Application Python has unexpectedly quit." Do non-PythonCard programs work OK? When you installed wxPython 2.8, did the demo applications work OK (and do they still work OK now)? -- XXXXXXXXXXX |
From: Ignatz R. <rat...@gm...> - 2009-07-06 14:53:37
|
Hi Neil, Thanks for getting back to me. I'm not sure whether the demos work. I just followed the directions. I didn't see anything about demos. If you can tell me where they are and what to do I can try them. A couple of updates. I changed the .py and .pyw files back to open with IDLE instead of Pythonlauncher. It didn't help. Also, as suggested in the book Hello World!, I tried typing "print "HelloWorld!" after the prompt in Terminal. I got an error message saying: [No-lle-McAfees-Computer:~] nmcafee% print "HelloWorld!" tcsh: print: Command not found. Note that the prompt does not look like the one in the book (ie ">>>>>"). It is: [No-lle-McAfees-Computer:~] nmcafee% I'm not sure if that makes a difference. Any ideas? Thanks, IR On Jul 6, 2009, at 10:30 AM, XXXXXXXXXXX wrote: > On 5/7/09 22:51, Ignatz Razkiwatzki wrote: >> >> I am trying to install Python on my son's iMac running OSX 10.3.9. >> But every time I try to launch a .py file I get an error message: >> "Application Python has unexpectedly quit." > > Do non-PythonCard programs work OK? When you installed wxPython 2.8, > did the demo applications work OK (and do they still work OK now)? > > -- > XXXXXXXXXXX > |
From: Ignatz R. <rat...@gm...> - 2009-07-05 21:51:26
|
Hello, I am trying to install Python on my son's iMac running OSX 10.3.9. But every time I try to launch a .py file I get an error message: "Application Python has unexpectedly quit." The message from the Terminal is: Last login: Sun Jul 5 16:55:21 on ttyp3 cd '/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ site-packages/PythonCard/samples/minimal/' && '/usr/local/bin/ pythonw' '/Library/Frameworks/Python.framework/Versions/2.5/lib/ pythoWelcome to Darwin! n2.5/site-packages/PythonCard/samples/minimal/minimal.py' && echo Exit status: $? && exit 1 [No-lle-McAfees-Computer:~] nmcafee% cd '/Library/Frameworks/ Python.framework/Versions/2.5/lib/python2.5/site-packages/PythonCard/ samples/minimal/' && '/usr/local/bin/pythonw' '/Library/Frameworks/ Python.framework/Versions/2.5/lib/python2.5/site-packages/PythonCard/ samples/minimal/minimal.py' && echo Exit status: $? && exit 1 dyld: /Library/Frameworks/Python.framework/Versions/2.5/Resources/ Python.app/Contents/MacOS/Python Undefined symbols: /usr/local/lib/wxPython-unicode-2.8.3.0/lib/libwx_macud-2.8.0.dylib undefined reference to _HIThemeBrushCreateCGColor expected to be defined in Carbon Trace/BPT trap [No-lle-McAfees-Computer:PythonCard/samples/minimal] nmcafee% To install Python I started at: http://www.manning.com/sande/Installation_Instructions.html#mac Everything installed fine until step 5: "Follow this link to install PythonCard. (Choose the correct version of Mac OS X, as described on the PythonCard page.)" That led me to here: http://pythoncard.sourceforge.net/installation.html I followed the instructions for installing the version for Apple Panther, here: http://pythoncard.sourceforge.net/macosx_panther_installation.html The only differences were that I had already installed Python2.5 as instructed previously, so I didn't install MacPython-Panther-2.3-2.dmg and I had already intalled wxpython2.8 so I didn't install wxPythonOSX-2.5.2.8-panther-Py2.3.dmg I installed pythoncard, as instructed. I did not understand the "Confirming Installation" instruction and, so, did not do that. On the "Configuring PythonLauncher," I selected a .py file, opened the Information window and switched the Open With to PythonLauncher. I also selected the the box to open all .py files with PhthonLauncher. I then did the same thing with .pyw files. On the Acid Test, I double-clicked the minimal.py file. I got an error message saying, "Application Python has unexpectedly quit." I checked to make sure that wxPython and PythonCard are in the site- packages folder in Python's Lib folder. (The wxPython folder in lib/ python2.5/site-pacages/wx-2.8-mac-unicode. The Pythoncard folder is in lib/python2.5/site-packages.) I tried restarting the computer then double-clicked minimal.py again. Same result. I followed the rest of the instructions at: http://www.manning.com/sande/Installation_Instructions.html#mac and installed EasyGUI, SPE and One Big Zip. (I put the EasyGUI83 folder in Mac HD/library/frameworks/pythonframe.frameworks/versions/ 2.5/lib/python2.5/site-packages.) I restarted the computer, double clicked minimal.py. Same error message. Does anyone know how to fix this? Any help would be greatly appreciated. I know nothing about programing, so the more jargon-free the instructions the better. Please email responses to rat...@gm... Thank you. IR |
From: Tony C. <acl...@ya...> - 2009-05-21 07:12:35
|
Hi I recently upgraded to Python 2.5 , on Mac OSX 10.5.5 ResourceEditor.py won't open for me now, using PythonCard 0.8.2 - traceback is: Traceback (most recent call last): File "/BinaryCache/wxWidgets/wxWidgets-11~262/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 "resourceEditor.py", line 138, 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 Any ideas? Apologies if this isn't the right forum. Tony |