robz0rz
December 14th, 2008, 06:39 PM
Hello all
I'm creating a little tool to change certain aspects of my new custom icon-theme, like branding, folders, etc. I decided this was a good project to start learning Python and PyGTK with it.
I'm slowly understanding how Python works, it's a lot of fun to write it actually!
I used Glade to create a user interface. I'm now at a point where I have a GtkImage somewhere, and I want to change the filename of the source image it uses. In other words: I want to set the image it displays through Python instead of Glade (because the image can change on certain events).
imgFuture = self.wTree.get_widget("BrandingFutureSVG")
What method do I have to call on imgFuture in order to do this? Thanks
I'm creating a little tool to change certain aspects of my new custom icon-theme, like branding, folders, etc. I decided this was a good project to start learning Python and PyGTK with it.
I'm slowly understanding how Python works, it's a lot of fun to write it actually!
I used Glade to create a user interface. I'm now at a point where I have a GtkImage somewhere, and I want to change the filename of the source image it uses. In other words: I want to set the image it displays through Python instead of Glade (because the image can change on certain events).
imgFuture = self.wTree.get_widget("BrandingFutureSVG")
What method do I have to call on imgFuture in order to do this? Thanks