Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 21 Oct 2014, 21:46
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
Slacko Puppy 5.3.3 - Installing Python & Setting up Tkinter
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
afishe2000

Joined: 29 Jan 2010
Posts: 37

PostPosted: Sun 19 Aug 2012, 09:36    Post_subject:  Slacko Puppy 5.3.3 - Installing Python & Setting up Tkinter
Sub_title: At least one easy way to make it work...
 

I've set this up on a couple of machines now and thought I'd pass it along...

It may not be the most up to date libraries and such, but it works.

Installing Python:
Using Puppy Package Manager under the category System install python_plus-2.6.6-i486-s

After installing you will have the following missing libraries:

libtcl8.5.so libtk8.5.so libgoocanvas.so.3

Open a console and type "python" you should see:

#python
Python 2.6.6 (r266:84292, Nov 27 2010, 1947:39)
[GCC 4.5.1] on linux2
Type "help", "copyright", "credits" or "license for more information
>>>


(No errors in the python installation)

Type "quit()" to exit python

Cleaning up two of the missing libraries:
Goto http://dotpups.de/ITAmember/python/, download and install:
tcl-8.5.7-p4.pet
tk-8.5.7-p4.pet

Open a console and type "python" then "import Tkinter" you should see:

#python
Python 2.6.6 (r266:84292, Nov 27 2010, 1947:39)
[GCC 4.5.1] on linux2
Type "help", "copyright", "credits" or "license for more information
>>>import Tkinter
>>>


(No errors in the Tkinter installation)

Again type "quit()" to exit python

Goto http://packages.ubuntu.com/lucid/i386/libgoocanvas3/download, download and install

Getting Geany to execute Python programs:
Open Geany and select Edit > Preferences
In Tools change the Terminal to "/usr/bin/xterm -e ebash -c"

Testing Tkinter:
Open Geany and create a new document and enter

Code:
from Tkinter import *
root = Tk()
w = Label(root, text="Hello, world!")
w.pack()
root.mainloop()


Save it as HelloWorld.py

Press the Execute button

The program should execute without errors

Reference Material:
http://www.pythonware.com/library/tkinter/introduction/index.htm

Useful Python Libraries
Basic setup instructions:
1. Download the source from one of the links below
2. Unpack the source distribution and change directory to the resulting top-level directory.
3. Type "python setup.py install"

http://www.crummy.com/software/BeautifulSoup/
http://wwwsearch.sourceforge.net/mechanize/

Edited_time_total
Back to top
View user's profile Send_private_message 
darkcity


Joined: 23 May 2010
Posts: 2462
Location: near here

PostPosted: Sun 19 Aug 2012, 11:14    Post_subject:  

nice work added link to wiki
http://puppylinux.org/wikka/Python

does libgoocanvas need compiling, its part of gtk?
http://packages.ubuntu.com/lucid/libgoocanvas-dev

Cool

_________________
helping Wiki for help | IF SendSpace link = "dead" THEN PM me ("up file to http://meownplanet.net/")
Back to top
View user's profile Send_private_message Visit_website 
don570


Joined: 10 Mar 2010
Posts: 3337
Location: Ontario

PostPosted: Mon 20 Aug 2012, 16:02    Post_subject:  

I was able to get mypaint to work on oldyeller's version of Precise 2.60
(I haven't tested his latest version)


Mypaint is available HERE

_________________________________________________
Back to top
View user's profile Send_private_message 
afishe2000

Joined: 29 Jan 2010
Posts: 37

PostPosted: Tue 21 Aug 2012, 12:16    Post_subject:  

Thank you for the link.

Quote:

does libgoocanvas need compiling, its part of gtk?

http://packages.ubuntu.com/lucid/libgoocanvas-dev


I downloaded and installed, no compiling and no problem.

I'll edit the original post to include it.
Back to top
View user's profile Send_private_message 
Pelo


Joined: 10 Sep 2011
Posts: 3221
Location: Mer méditerrannée (1 kms°)

PostPosted: Thu 15 May 2014, 23:28    Post_subject: Python plus 2.6.6
Sub_title: Module tkinter not found
 

python_plus-2.6.6-i486-s.pet: 21 M
No Module name tkinter
Give-up. Don't mind.

_________________
Puppy, il ne lui manque que la parole !
Back to top
View user's profile Send_private_message YIM 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Off-Topic Area » Programming
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0590s ][ Queries: 11 (0.0046s) ][ GZIP on ]