Talk:PyPenNotes
From Openmoko
(Difference between revisions)
(gtk _init() bug) |
(-cat) |
||
(2 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
− | Installed python-pygtk python- | + | Installed python-devel, python-pygtk, python-pygtk-dev but still have an init() error with gtk. Asking for a "_init()" instead of "init()". find some threads about the def init(),as in [[Mofi]]. |
Line 6: | Line 6: | ||
<pre> | <pre> | ||
if not hasattr(sys.modules['__main__'], 'python_launcher_enabled'): | if not hasattr(sys.modules['__main__'], 'python_launcher_enabled'): | ||
− | + | _init() | |
</pre> | </pre> | ||
− | |||
− |
Latest revision as of 16:20, 19 July 2009
Installed python-devel, python-pygtk, python-pygtk-dev but still have an init() error with gtk. Asking for a "_init()" instead of "init()". find some threads about the def init(),as in Mofi.
I edited the "/usr/lib/python2.5/site-packages/gtk-2.0/gtk/__init__.py" file and add a "_" at line 82
if not hasattr(sys.modules['__main__'], 'python_launcher_enabled'): _init()