pyGOject crash when i move mainWindow or other window
All-In-One PyGI/PyGObject for Windows Installer
Status: Abandoned
Brought to you by:
tumagonx
Hello, I have a big problem after a migration from pygtk2 to pyGObject.
I use the window installation of pyObject ( pygi-aio-3.14.0_rev22-setup.exe ) with python 2.7 32 bits.
My program works great as long as I don't move a window .
Please help me, of course I test different version of pygi but with the same problem.
I think it's a Vc++ problem but I have VCForPython27 installed.
Hi,
Sorry but this is insufficient information to move on, please provide reproducible snippet code that I can check on.
~~~
def main(conf_path):
Gdk.threads_init()
mainWindow = Window()
mainWindow.show_all()
Gtk.main()
if name == "main":
conf_path = None
for arg in sys.argv:
arg = arg.lower()
if arg.startswith('--config-path='):
conf_path = arg[14:]
continue
~~~
Sorry could you attach one functional file? I don't think a simple window should crash like that.
OTOH does this https://git.gnome.org/browse/pygobject/tree/demos/gtk-demo works on your computer?
Thank you for your help, I find the solution. With GTK version > 3.6,
Gdk.threads_init(), Gdk.threads_enter(), Gdk.threads_leave() should be replace by GLib.idle_add(priority, function, *data) for thread safe.