From: Aaron S. <az...@bu...> - 2008-01-17 19:43:47
|
Hi guys, I've been using/teaching PythonCard for a short while, and I've just moved to a Mac (no more blue screens, I hope). However, I'm still learning some of the best practices for Mac. Anyone using PythonCard on a Mac got some ideas/notes to share? Specifically, I wasn't sure how you launch it. I put the package in / Users/azs/code/python/lib/PythonCard-0.8.2, with the tools located at / Users/azs/code/python/lib/PythonCard-0.8.2/tools. To run the editor, I'm just launching it at the command line using "python layoutEditor.py". Anyone doing differently? Your advice appreciated! Aaron |
From: Aaron S. <az...@bu...> - 2008-03-25 00:50:57
|
Hello, is there anybody out there? I realized I sent this 2 months ago with no replies. Perhaps the mailing list is down? -Aaron On Jan 17, 2008, at 2:36 PM, Aaron Stevens wrote: > Hi guys, > > I've been using/teaching PythonCard for a short while, and I've just > moved to a Mac (no more blue screens, I hope). However, I'm still > learning some of the best practices for Mac. Anyone using PythonCard > on a Mac got some ideas/notes to share? > > Specifically, I wasn't sure how you launch it. I put the package in / > Users/azs/code/python/lib/PythonCard-0.8.2, with the tools located > at / > Users/azs/code/python/lib/PythonCard-0.8.2/tools. To run the editor, > I'm just launching it at the command line using "python > layoutEditor.py". Anyone doing differently? > > Your advice appreciated! > > Aaron > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Pythoncard-users mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncard-users > |
From: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - 2008-03-25 10:24:41
|
On 25/03/2008 00:50, Aaron Stevens wrote: > Hello, is there anybody out there? > I realized I sent this 2 months ago with no replies. Perhaps the > mailing list is down? I don't think so....I suspect a lot of people are having to deal with more important things and haven't had time to contribute. I've been using PythonCard/wxPython a fair bit recently for my job, but sadly never seem to have time to contribute back... ...anyway, with regard to your query, I have PythonCard installed on a Mac here so I'll try to help. Bear in mind that I don't use this computer for development any more, so this might not be the preferred way of setting things up. 1. G4 Mac mini, running 10.4.11 "Tiger" and Python 2.3; 2. PythonCard is located in /Library/Python/2.3/site-packages/PythonCard, so I can reach it from any user; 3. "tools" folder is located in PythonCard folder, like you have; 4. To launch the editors by double-clicking I used Get Info to open all applications using /System/Library/Frameworks/Python.framework/Versions/2.3/Resources/PythonLauncher I must have got this from an earlier version of the installation documentation in <http://pythoncard.sourceforge.net/macosx_tiger_installation.html> because the latest notes have slightly different locations and use Python 2.5. -- XXXXXXXXXXX |
From: Aaron S. <az...@bu...> - 2008-03-25 12:40:44
|
I just tried that, but it didn't seem to work for me. PythonLauncher started, ran for about 5 seconds, and then exited. Perhaps a versions problem? What I have that does work is a small shell script, run_RE.sh, like so: #! /bin/sh # # A quick shell script to launch the PythonCard Resource Editor # python ./resourceEditor.py # # And then I tagged all ".sh" files to be opened with Terminal. So now I can click the icon for run_RE.sh and it launches a Terminal window, and then Resource Editor on top of that. A bit cludgy, but it works. Any other ideas out there? Aaron On Mar 25, 2008, at 6:24 AM, XXXXXXXXXXX wrote: > On 25/03/2008 00:50, Aaron Stevens wrote: >> Hello, is there anybody out there? >> I realized I sent this 2 months ago with no replies. Perhaps the >> mailing list is down? > > I don't think so....I suspect a lot of people are having to deal > with more important things and haven't had time to contribute. I've > been using PythonCard/wxPython a fair bit recently for my job, but > sadly never seem to have time to contribute back... > > ...anyway, with regard to your query, I have PythonCard installed on > a Mac here so I'll try to help. Bear in mind that I don't use this > computer for development any more, so this might not be the > preferred way of setting things up. > > 1. G4 Mac mini, running 10.4.11 "Tiger" and Python 2.3; > 2. PythonCard is located in /Library/Python/2.3/site-packages/ > PythonCard, so I can reach it from any user; > 3. "tools" folder is located in PythonCard folder, like you have; > 4. To launch the editors by double-clicking I used Get Info to open > all applications using /System/Library/Frameworks/Python.framework/ > Versions/2.3/Resources/PythonLauncher > > I must have got this from an earlier version of the installation > documentation in <http://pythoncard.sourceforge.net/macosx_tiger_installation.html > > because the latest notes have slightly different locations and use > Python 2.5. > > -- > XXXXXXXXXXX > |
From: Brian M. <mrb...@gm...> - 2008-03-25 13:48:00
|
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 > > |
From: Aaron S. <az...@bu...> - 2008-03-25 14:03:33
|
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 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 > > |
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: 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: 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-04-01 02:30:50
Attachments:
dnssearch01.rsrc.py
|
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: 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: 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 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 > |