Le 14/10/2008, "Willie Walker" <[EMAIL PROTECTED]> a écrit:
>Here's the hack we did in Orca to prevent this from happening: > ># We're going to force the name of the app to "orca" so pygtk ># will end up showing us as "orca" to the AT-SPI. If we don't ># do this, the name can end up being "-c". See bug 364452 at ># http://bugzilla.gnome.org/show_bug.cgi?id=364452 for more ># information. ># >import sys >sys.argv[0] = "orca" Bingo! I start my app with a shell script containing: python -c "from papywizard.scripts.main import main; main()" (here is the -c ! Lorenzo, you where close...). I changed to: python -c "import sys; sys.argv[0] = \"Papywizard\"; from papywizard.scripts.main import main; main()" and all works fine. Thanks you very much :o) -- Frédéric _______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
