473,785 Members | 2,297 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Subject: MacPython-OS9 2.2.3 & Tkinter

I am a just a dabbler in programming, but I'd like to make some simple
cross-platform tools for generating webpages, as well as for text
munging. One thing I need is a Mac OS 9/Windows GUI solution. I
thought that Tkinter could provide this, but I'm having trouble
getting the simple test script from Learning Python p.22 to work under
Mac OS 9 (9.2.2, on a 400 MHz PowerBook firewire/2000, 192 MB ram).

Starting with a clean install of MacPython 2.2.3, I run
ConfigurePython Classic, and then launch PythonInterpret er. This is
how far I get:

Python 2.2.3 (#139, Jun 1 2003, 21:54:44) [CW PPC GUSI2 THREADS GC]
on mac
Type "copyright" , "credits" or "license" for more information.
from Tkinter import *
w = Button(text="He llo", command='exit')


Then I get just a blinking cursor on the following line and nothing
else happens. The OS hasn't frozen at that point, but the interpreter
doesn't return any prompt (neither >>> nor ...). I can't quit out of
PythonInterpret er except to "force quit." The menus respond visually
but produce no result. <ctrl-D> doesn't terminate the interpreter
either. If I don't force it to quit, the interpreter eventually
(after 5-10 minutes) "quits unexpectedly" on its own. ONCE I was able
to work all the way through the script to w.mainloop() but neither the
button ("Hello") nor the window widgets responded to mouse clicks, and
again I had to force quit the interpreter. I've also tried increasing
the memory Preferred Size for PythonInterpret er but that didn't appear
to help.

My question is, does Tkinter actually work on OS 9? Is there a
problem with this test script, or do I need to look elsewhere for my
cross-platform needs? (The only other solution I have found is PLT
Scheme, which I like, but I'd like to give Python a try...)

Thanks for any help...

~~Charles
Jul 18 '05 #1
0 1570

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1546
by: cybersamurai | last post by:
I install MacPython 2.3 on a Jaguar 2.6 on my house but I don't know how I install others modules. When I use python setup install the module is installed on usr/lib/... and not inside frameworks. How I can solve this?? Thanks about help me.
1
1545
by: Chris Fonnesbeck | last post by:
Is there any way of getting scrollback to work in MacPython 2.3b2? At present, when I try and scroll back to re-issue a past command using the up arrow key, I simply get a series of "^[[A" symbols. Very annoying, Any tips most appreciated. cjf
0
1057
by: Tommy Nordgren | last post by:
I'm trying to figure out how to extend & embed MacPython 2.2.3 or 2.3 on MacOS 9. I've installed the classic version of 2.2.3. The project settings and files appear to be incompatible with my old CW Pro 5 release. Any Ideas on how to fix this? -- Tommy Nordgren <nordgren.tommy@telia.com> <http://w1.866.telia.com/~u86627430/> Torstenssonsgatan 7A,2Tr,114 56 Stockholm SWEDEN + 46 8 662 88 04
2
1780
by: boris m | last post by:
I am running Python 2.3 on Mac OS 10.3. My problem is that applets don't seem to work. If I run a python script in the terminal, everything is fine. If I run the same script as an applet, nothing happens. The applet starts up, but dies after a second or two. I used applets quite frequently unter OS9 and never had a problem with them. Has anyone any idea why applets on OS X don't work the way they did in OS 9?
4
1462
by: Lou Pecora | last post by:
I upgraded to Panther a month ago and just upgraded to MacPython 10.3 Addons (as per Jack Jansen's page - thanks, Jack). But now my programs can't even find standard modules. from Numeric import * brings up the error window: Can't find module Numeric. Even trig functions sine and cosine generate the same type of error. I've looked over the FAQ and can't see any answers (maybe I missed something). I'm guessing this is a Path...
4
1304
by: Paul Miller | last post by:
I have a user who is is having trouble getting MacPython on his OS X 10.3.8 system. When he runs ConfigurePythonCarbon, he gets this error: 'import site' failed; use -v for traceback traceback )most recent call last): File "Moes:SWdev:Jack:Python2.2:Mac:script:configurePython.py", line 11 , in ?
1
2467
by: kamlai | last post by:
I've written the following codes to include utf-8 wordings in both the subject and the content. $headers = "MIME-Version: 1.0\r\n". "Content-type: text/plain; charset=utf-8\r\n". "From: abc@abc.com"; mail("target@abc.com", "<some utf-8 wordings as subject>", "<Another utf-8 wordings as content>", $headers);
2
1861
by: Tod Olson | last post by:
Anyone have advice for importing the logging module using MacPython 2.4.3? MacPython installs the logging module in: /Library/Frameworks/Python.framework/Versions/2.4/lib/logging/ There's an __init__.py there and everything, but this directory is not in sys.path. I add it to sys.path as follows: /Library/Frameworks/Python.framework/Versions/2.4/lib/logging
0
1253
by: skip | last post by:
After much wailing and gnashing of teeth the past couple of days, I managed to move (most of?) the content from the MacPython wiki to the main Python wiki (*). All pages were created as subpages of http://wiki.python.or/moin/MacPython The motivation for this rather hasty move was that the MacPython wiki was running an ancient version of MoinMoin and got spammed heavily. Because of its age and vulnerability it was simply too hard to...
4
8463
by: Alec MacLean | last post by:
Is anyone aware of a size limit imposed on the subject text when using the System.Net.Mail library? I'm getting problems of message not being recieved if the subject exceeds 15 chars. Thx
0
9489
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10356
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10162
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10100
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9959
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8988
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7509
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
2
3665
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2893
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.