Built-in GUI kit

Thread Solved
Reply

Join Date: Aug 2006
Posts: 917
Reputation: linux is an unknown quantity at this point 
Solved Threads: 26
linux's Avatar
linux linux is offline Offline
Posting Shark

Built-in GUI kit

 
0
  #1
Feb 7th, 2008
Does Python have a built-in GUI kit? Meaning without using Tcl/Tk.

Because, I'm developing for the iPod touch / iPhone, and I don't want to have the user need to install the Python and Tcl runtimes.
Toshiba M1151.49 GB DDR-2 RAM1.6 GHz Centrino Duo80GB HDDWindows XP Media Center Edition
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 14
Reputation: dilbert_here00 is an unknown quantity at this point 
Solved Threads: 1
dilbert_here00 dilbert_here00 is offline Offline
Newbie Poster

Re: Built-in GUI kit

 
0
  #2
Feb 7th, 2008
You can use gtk or pygtk.
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 917
Reputation: linux is an unknown quantity at this point 
Solved Threads: 26
linux's Avatar
linux linux is offline Offline
Posting Shark

Re: Built-in GUI kit

 
0
  #3
Feb 7th, 2008
They're built into the language itself?
Toshiba M1151.49 GB DDR-2 RAM1.6 GHz Centrino Duo80GB HDDWindows XP Media Center Edition
Reply With Quote Quick reply to this message  
Join Date: Dec 2006
Posts: 976
Reputation: woooee is a jewel in the rough woooee is a jewel in the rough woooee is a jewel in the rough 
Solved Threads: 273
woooee woooee is offline Offline
Posting Shark

Re: Built-in GUI kit

 
0
  #4
Feb 8th, 2008
GUI's are specific to the OS. What GUIs are available for the IPod and how are you packaging your programs. I don't know what's available for IPods but if there is something like py2exe, you may be able to enbed the graphics in the executable. Also, TCL/Tk/Tkinter, GTK et all may or may not run on the IPod's OS. First you have to find out what's available and then if it can somehow be included with the program. Does IPod have a programming forum where these questions have already been answered. Also you should find out if IPods have a mini python interpreter already or if programs have to be compiled into some form of native code.
Last edited by woooee; Feb 8th, 2008 at 2:16 pm.
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 917
Reputation: linux is an unknown quantity at this point 
Solved Threads: 26
linux's Avatar
linux linux is offline Offline
Posting Shark

Re: Built-in GUI kit

 
0
  #5
Feb 8th, 2008
There is a Python interpreter (2.5-6) and the Tcl/Tk libraries, along with Ruby, Java, Scheme, and many others.

Should I resort to Tcl/Tk?
Toshiba M1151.49 GB DDR-2 RAM1.6 GHz Centrino Duo80GB HDDWindows XP Media Center Edition
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 1,951
Reputation: Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of 
Solved Threads: 214
Featured Poster
Duoas's Avatar
Duoas Duoas is offline Offline
Posting Virtuoso

Re: Built-in GUI kit

 
0
  #6
Feb 8th, 2008
The only GUI toolkit built-in to Python is Tk. (And Tcl/Tk most definitely does work on the iPod!)

I know next to nothing about the iPod. Is it an embedded OS?

In any case, it is certainly possible to make a single program that does python/tk, but you will likely have to hack python yourself to do it. Since you've got both libraries, I'm not sure what the problem is. Distribution, maybe?

(Oh, yeah, I'd say go with Tcl, but I don't think the footprint would be prohibitive to go with Python. But then again, I know next to nothing about the iPod...)
Last edited by Duoas; Feb 8th, 2008 at 11:32 pm.
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 917
Reputation: linux is an unknown quantity at this point 
Solved Threads: 26
linux's Avatar
linux linux is offline Offline
Posting Shark

Re: Built-in GUI kit

 
0
  #7
Feb 8th, 2008
Thanks!

So hold on. I can use Tk with JUST python 2.5-6 installed?
Toshiba M1151.49 GB DDR-2 RAM1.6 GHz Centrino Duo80GB HDDWindows XP Media Center Edition
Reply With Quote Quick reply to this message  
Join Date: Dec 2006
Posts: 976
Reputation: woooee is a jewel in the rough woooee is a jewel in the rough woooee is a jewel in the rough 
Solved Threads: 273
woooee woooee is offline Offline
Posting Shark

Re: Built-in GUI kit

 
0
  #8
Feb 9th, 2008
The PC Python installation comes with Tkinter, i.e. TCL/TK, but as Duoas said, you will have to write a simple Python+Tkinter (import Tkinter) program and try it on the IPod. It's limited resources would not have a full blown Python installation, so who knows about Tkinter. It's doubtful that IPod has it. Maybe you can install it, but you may have to work with their native toolkit. Sorry, no one here knows much about it.
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 917
Reputation: linux is an unknown quantity at this point 
Solved Threads: 26
linux's Avatar
linux linux is offline Offline
Posting Shark

Re: Built-in GUI kit

 
0
  #9
Feb 9th, 2008
Thank you, everyone! = )
Toshiba M1151.49 GB DDR-2 RAM1.6 GHz Centrino Duo80GB HDDWindows XP Media Center Edition
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Other Threads in the Python Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC