On Sep 16, 12:30 pm, binaryjesus <coolman.gu...@gmail.comwrote:
hi everyone,
first of all
I had written an app using pygtk module and created the GUI with
glade.All the development was done on a linux machine and the app was
working fine all this tme in linux.
now, the thing is i have to change the development environment to
windows. So this means that i have to port the application to work in
windows.
Initially i thought that porting an application written using a
platform independent language and cross-platform window frame work
would be a piece of cake. Well i guess all the assumptions end there.
unlike linux, in windows pygtk and the GTK frame work are not
installed by default.
So, long story short. i installed GTK devel, pygtk, pygobject, pycaro,
glade ui. Also made a lot of path adjustments (os.path.absolutepath()
is not portable i guess) and finally got the app to at least start
without showing an error.
The problem that i am now facing is that nothing shows up in the app.
No menu, buttons, frames or anything else is visible. When i move the
cursor over the window it changes into an hour-glass type icon. hoe
ever all c++ GTK programs seem to render well.
here is a screen shot:http://i36.tinypic.com/x52uk9.jpg
i have written below the startup code of the app:
import pygtk
pygtk.require('2.0')
import gtk
import gtk.glade
from ConfigParser import ConfigParser
class jDesk(object):
def __init__(self):
#self.seclstore.append(["0","Section1"])
#self.catlstore.append(["cat 1"])
self.synclstore = gtk.ListStore(str,str,str,str,str,int)
self.seclstore = gtk.ListStore(str,str)
self.catlstore = gtk.ListStore(str,str)
self.process_glade()
def process_glade(self):
self.gladefile = "gui.glade"
self.glade = gtk.glade.XML(self.gladefile)
#windows
self.main_window = self.glade.get_widget('MainWindow')
#main window
self.templatefile = self.glade.get_widget('templatefile')
self.imageurl = self.glade.get_widget('imageurl')
self.posttitle = self.glade.get_widget('posttitle')
self.sectionbox = self.glade.get_widget('sectionbox')
self.categorybox = self.glade.get_widget('categorybox')
self.demolink = self.glade.get_widget('demolink')
self.posttext = self.glade.get_widget('posttext')
self.statusbar = self.glade.get_widget('statusbar')
self.signal_autoconnect()
self.main_window.show()
print '===================main wind created================='
def run(self):
try:
print "Entering GTK main now"
gtk.main()
print "Leaving GTK main"
except:
print "Exception in main"
if __name__ == "__main__":
conf = ConfigParser()
conf.read('settings.cfg')
gtk.gdk.threads_init()
app = jDesk()
app.run()
i have tried a lot of things, checked up paths, checked libcairo but
nothing seems to help.problem seems to be with pygtk since other c++
GTK programs like pedgin and GTK demo rn fine.
So maybe is there any pygtk windows bugs that i coming from linux
background might not be knowing about or perhaps u have encountered
such a problem in the past before ?
Much thanks in advance
BinaryJ
I haven't tried it myself, but I came across a blog post the other day
that describes a way of building windows installers for pyGTK
applications at http://unpythonic.blogspot.com/2007/...or-single.html 0 1757 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: sebb |
last post by:
I just want to know how to install pyGTK on windows.
Thanks
|
by: Edwin Young |
last post by:
Hi,
I'm writing a fractal-generating program in a mixture of C and
Python. Python handles all the GUI parts using PyGTK. After finishing
the calculations, I have a buffer containing the RGB data...
|
by: Michele Simionato |
last post by:
I am in the process of learning pygtk and I would like to port
some custom made Tkinter widgets to pygtk, just an exercise.
For instance I have this code:
.. from Tkinter import *
..
.. class...
|
by: dcrespo |
last post by:
Hi all...
I think wxPython is much better than PyGTK. First of all, PyGTK needs
the GTK runtime installed, whereas wxPython is entirely Python's
modules, so It facilitates the apps'...
|
by: TPJ |
last post by:
GUI's etc: PyGtk on Windows
"(...) So if someone develops mainly for X and just wants to make sure
that it is not impossible to run on Windows, you can use PyGTK. (...)",
July 2nd, 1999
pyGTK...
|
by: Rod W |
last post by:
I'm just starting out on Python but my primary goal is to provide
applications with some user interface (GUI).
Can someone point me to a good comparison of whether I should use
wxPython (with...
|
by: Tim N. van der Leeuw |
last post by:
I tried to create a windows executable of a pygtk program. My first
attempt worked, kinda, except that no themes were applied and no
readable fonts were found by pango; so all letters where just...
|
by: krishnakant Mane |
last post by:
has any one tried py gtk on windows?
I tried to do a google search for accessibility related issues but did
not find any thing specific to pygtk and windows accessibility.
I even tried to search...
|
by: krishnakant Mane |
last post by:
hello,
I will be writing some code in PyGTK to run on linux. but I want to
know if there are any installers or distutils available for PyGTK on
windows?
I have heard that installing gimp or even...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |