Hi,

I am trying to compile a python project using autotools. The project runs 
absolutely fine from command line, and it uses Gtk3 library. 

the src file is:

├── src
│   ├── Makefile.am
│   ├── Makefile.in
│   ├── Mkbib
│   │   ├── cell.py
│   │   ├── dialogue.py
│   │   ├── filemanager.py
│   │   ├── getdata.py
│   │   ├── __init__.py
│   │   ├── main.py
│   │   ├── Makefile.am
│   │   ├── Makefile.in
│   │   ├── menu.py
│   │   ├── mkbib.in
│   │   ├── pybib.py
│   │   └── view.py
│   └── mkbib.in

with the mkbib.in is:

#!/usr/bin/env python3

import sys
sys.path.insert(1, '@pythondir@')

from mkbib.main import mkbib
if __name__ == "__main__":
    app = mkbib()
    r = app.run()
    sys.exit(r)


src/Mkbib/main.py is the main program. This is structured as:

class Window(Gtk.ApplicationWindow):
    def __init__(self, application, giofile=None):
        Gtk.ApplicationWindow.__init__(self,
                                       application=application,
                                       default_width=1000,
                                       default_height=200,
                                       border_width=5)

class mkbib(Gtk.Application):
    def __init__(self):
        Gtk.Application.__init__(self)
    def new_window(self, filename=None):
        window = Window(self)
        window.show_all()
    def run(self):
        self.new_window()
        Gtk.main()

Now, the problem is it is compiling fine (make; make install goes without any 
error)

make --silent
Making all in data
Making all in icons
Making all in hicolor
Making all in 48x48
Making all in apps
Making all in scalable
Making all in apps
Making all in ui
Making all in src
Making all in Mkbib

but while running the application, I am getting error:
(mkbib:14843): Gtk-CRITICAL **: New application windows must be added after the 
GApplication::startup signal has been emitted.


May I be kindly helped?
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to