Python Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPython Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 14th, 2004, 09:52 AM
TampaDeveloper TampaDeveloper is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 4 TampaDeveloper User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Python's usefullness for developing applications

Hi all,

I've been excited to embrace Python for the last couple days. But attempting to get even the simplest of things running has sort of taken the wind out of my sail. I thought MacPython was fully installed on every OSX machine by default. But I have immediately found that TKinter applications require a bunch of extra install junk. I'm computer literate and I still don't have it running yet. TkTcl is installed, as is the additions for mac. PackageManager doesn't just work, you have to do a bunch of crap to make it point to the proper database. I installed TKinter module but things still don't run. When I try to run one of the demos, the window pops up momentarily, but then disappears. I, personally, would spend a day or two more tinkering with it until it worked, but nobody that buys the software I write in Python is going to do that. Is there something I'm missing? I just wasted my money on a book, didn't I? Bah, this sucks.

TampaDeveloper

Reply With Quote
  #2  
Old August 14th, 2004, 08:41 PM
rebbit rebbit is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 84 rebbit User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 7 m
Reputation Power: 5
well we can't be of much help without any specific errors. if you open up a console and try to run a script using Tkinter from the command line, you'll be able to see the error rather than just a flash of a console. if you post the errors you're getting maybe we can be of help, or the documentation/FAQs at the python website will have answers to your problems.

Reply With Quote
  #3  
Old August 15th, 2004, 06:56 AM
netytan's Avatar
netytan netytan is offline
Hello World :)
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Mar 2003
Location: Hull, UK
Posts: 2,536 netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 18 h 3 m 4 sec
Reputation Power: 63
Send a message via ICQ to netytan Send a message via AIM to netytan Send a message via MSN to netytan Send a message via Yahoo to netytan
Hey all,

Im new to the Mac but there are a few things ive had to get used to... firstly, you have to run every Python program manually though Terminal (the command line), though after leaning some applescript i sat down and wrote a small Droplet that automates this - though it still needs some work before its really useful (I have a lot to learn )

As for Mac Python add-ons, i installed it for a while but found it to be pretty usless, since it really adds is some GUI stuff, and i dont really use that all that often; so, your best bet would be to download wxPython, and install it.

You should then be able to use BundleBuilder to package all this up into a .app file. Wala, your users wont have to do anything more other than drag the program to there Applications folder.

http://www.pythonmac.org/wiki/BundleBuilder

Another option would be to download iceburg from the OSX download site - or use packagemaker that comes with developers tools - and make an installer to wrap all the hard work up for you... though i havnt done this yet.

Hope this helps,

Mark.
__________________
programming language development: www.netytan.com Hula


Reply With Quote
  #4  
Old August 15th, 2004, 10:53 AM
TampaDeveloper TampaDeveloper is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 4 TampaDeveloper User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally Posted by rebbit
well we can't be of much help without any specific errors. if you open up a console and try to run a script using Tkinter from the command line, you'll be able to see the error rather than just a flash of a console. if you post the errors you're getting maybe we can be of help, or the documentation/FAQs at the python website will have answers to your problems.


Hi rebbit,

I used the console per your suggestion. In /Applications/MacPython-2.3/Extras/Demo/tkinter/matt:

#python 00-HELLO-WORLD.py

The window comes up properly, but when I try to click anywhere on it, I get the following error in the console:

SetFrontProcess failed,-606

Reply With Quote
  #5  
Old August 15th, 2004, 11:02 AM
TampaDeveloper TampaDeveloper is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 4 TampaDeveloper User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally Posted by netytan
Hey all,

Im new to the Mac but there are a few things ive had to get used to... firstly, you have to run every Python program manually though Terminal (the command line), though after leaning some applescript i sat down and wrote a small Droplet that automates this - though it still needs some work before its really useful (I have a lot to learn )

As for Mac Python add-ons, i installed it for a while but found it to be pretty usless, since it really adds is some GUI stuff, and i dont really use that all that often; so, your best bet would be to download wxPython, and install it.

You should then be able to use BundleBuilder to package all this up into a .app file. Wala, your users wont have to do anything more other than drag the program to there Applications folder.

http://www.pythonmac.org/wiki/BundleBuilder

Another option would be to download iceburg from the OSX download site - or use packagemaker that comes with developers tools - and make an installer to wrap all the hard work up for you... though i havnt done this yet.

Hope this helps,

Mark.


Hi Mark. Actually this helps alot. Sounds like I just got started with the wrong toolkits. I'll have to look into wxPython. I'm just cranky because Java made it so easy to deploy things across multiple platforms. So I'm put off that I actually have to do work for it.

Thanks!

Kurt

Reply With Quote
  #6  
Old August 16th, 2004, 05:32 AM
netytan's Avatar
netytan netytan is offline
Hello World :)
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Mar 2003
Location: Hull, UK
Posts: 2,536 netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 18 h 3 m 4 sec
Reputation Power: 63
Send a message via ICQ to netytan Send a message via AIM to netytan Send a message via MSN to netytan Send a message via Yahoo to netytan
Ah, but Apple are very into Java and include it as a Major feature with MacOS X so it makes sence that they would make steps to make sure everything works there. Python is.. i guess, the less loved older son .

Have fun, also, wouldn't mind seeing what you come up with - as one developer to another - so, feel free to contact me.

Mark.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPython Programming > Python's usefullness for developing applications


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT