Reply
 
Thread Tools Display Modes
  #1  
Old 01-06-2007, 11:30 PM
JMan JMan is offline
Senior Member
 
Join Date: Oct 2005
Location: New Zealand
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
Default Python and IDLE
Hello

I cannot run IDLE as I get the error saying that it 'cannot import TK please ensure that it is installed'. I have always understood that TKinter was the default python GUI library.

Now does anyone know of a python editor that works under PCBSD?

At the moment I have to edit the file in a text editor and then right click on the file and open with python - or run it from the command line to get debugging info - but an integrated programming editor would be nice

Any ideas?

Regards
JMan
Reply With Quote
  #2  
Old 01-06-2007, 11:45 PM
TerryP TerryP is offline
Senior Member
 
Join Date: Nov 2005
Location: Ga. USofA
Posts: 7,906
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to TerryP Send a message via AIM to TerryP Send a message via Yahoo to TerryP
Default
Didn't know Python had standard GUI now, but you should be able to install the x11-toolkits/py-tkinter bindings form ports or pkg

My suggests for programming editors are usually Vim, Emacs, Kate, jEdit, KDevelop, or Eric in case of Python.

I like Kate because I have a fine editor with a file browser and Console built in. So its instant access to gcc, javac, python, irb, perl e.t.c. (Most programmers editors should be the same way). Sort of an IDE without the IDE, Emacs and Vim much the same with the 'usual' interface styles.
Reply With Quote
  #3  
Old 01-07-2007, 01:57 AM
JMan JMan is offline
Senior Member
 
Join Date: Oct 2005
Location: New Zealand
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
Default It worked
Hey it worked - thanks for that - I wonder why it didn't include the TKinter library in the first place ... check this out ..

http://wiki.python.org/moin/TkInter

Anyway it worked. I have seen that there is an editor called Stani's python editor and I believe it is in the ports system somewhere as soon as I find it I will give it a try - BTW is there an easy way to search the ports tree?

Cheers
JMan
Reply With Quote
  #4  
Old 01-07-2007, 02:17 AM
dracheflieger dracheflieger is offline
Senior Member
 
Join Date: May 2006
Location: Greater State of Northern Kaliforneea
Posts: 2,880
Thanks: 0
Thanked 0 Times in 0 Posts
Default
In a terminal, su to root and
Code:
cd /usr/ports/sysutils/psearch && make install clean && rehash
and then
Code:
psearch stani
and it will return
Code:
editors/spe               Stani's Python Editor
Reply With Quote
  #5  
Old 01-07-2007, 05:53 AM
TerryP TerryP is offline
Senior Member
 
Join Date: Nov 2005
Location: Ga. USofA
Posts: 7,906
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to TerryP Send a message via AIM to TerryP Send a message via Yahoo to TerryP
Default
psearch is bloody awesome, I keep a copy of an old version of that python script on my USB stick hehe.
Reply With Quote
Reply

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
very high cpu load while idle Sonic Usage Bug Reports (read-only) 1 11-19-2009 12:59 PM
Can't get Python IDLE to work - Tkinter error god General Questions 1 02-20-2008 04:14 AM
Nervous system, or CPU idle sunday General Bug Reports 2 01-16-2008 07:03 PM
cpu idle questions bmartin Laptops 1 08-25-2007 05:42 PM
idle process taking too much CPU power gnutux FreeBSD Help 8 02-02-2006 01:14 PM


All times are GMT. The time now is 03:23 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.

Copyright 2005-2010, The PC-BSD Project. PC-BSD and the PC-BSD logo are registered trademarks of iXsystems.
All other content is freely available for sharing under the terms of the Creative Commons Attribution License.