Thread
:
Reading From a File in Python
View Single Post
blakboy98
2007-12-17 , 03:29
Posts: 69 | Thanked: 3 times | Joined on May 2007 @ St.Petersburg, FL
#
4
All you should need is the line below.
browserpic = open('/home/user/iTablet/browserpic1.txt', 'r').readline().strip()
browser = gtk.Button()
image3 = gtk.Image()
browser.connect('clicked', browserf)
image3.set_from_file(browserpic)
image3.show()
browser.add(image3)
__________________
Your soul brotha from another motha!
Quote & Reply
|
The Following User Says Thank You to blakboy98 For This Useful Post:
Aisu
blakboy98
View Public Profile
Send a private message to blakboy98
Find all posts by blakboy98