Where is PyGTK for Mac OS X?

brew install pygtk worked for me (requires homebrew). Confirmed to work with OS X 10.10 too, but by default it will install it into brew’s Python distribution, so if you are still using the native python, it will not find it.

Is there a gi.repository documentation for python?

Yes, I found a site that contains documentations for all python bindings of perhaps all GNOME projects that are supported by the python gi.repository module or the Python GObject Introspection module: http://lazka.github.io/pgi-docs/ The one specifically for GTK is:http://lazka.github.io/pgi-docs/Gtk-3.0/index.html There is also documentation specific to the gi package provided by PyGObject: https://pygobject.readthedocs.io/en/latest/guide/api/api.html I hope you find … Read more

Installing PyGtk in virtualenv

The trick is to manually set the correct paths and then run configure inside the virtualenv. This is quite basic, but it worked for me. Install python-config in the virtual env and link it to python2.7-config: pip install config ln -s /home/PATH/TO/VIRT/bin/python-config /home/PATH/TO/VIRT/bin/python2.7-config Install cairo in the virtual env: wget http://cairographics.org/releases/py2cairo-1.10.0.tar.bz2 tar -xf py2cairo-1.10.0.tar.bz2 cd … Read more

GtkDialog mapped without a transient parent

You fix this warning by giving the GtkDialog a parent to be modal to. The relevant functions are gtk_window_set_transient_for() (which sets this window to always be on top of, or transient for, another one) and optionally gtk_window_set_modal() to make it a modal dialog. This is ultimately what the various GtkDialog constructors do.

Best practices for adding .gitignore file for Python projects? [closed]

Github has a great boilerplate .gitignore # Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] # C extensions *.so # Distribution / packaging bin/ build/ develop-eggs/ dist/ eggs/ lib/ lib64/ parts/ sdist/ var/ *.egg-info/ .installed.cfg *.egg # Installer logs pip-log.txt pip-delete-this-directory.txt # Unit test / coverage reports .tox/ .coverage .cache nosetests.xml coverage.xml # Translations *.mo … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)