maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Pygtk weird behavior; no buttons/labels background, just text. (https://talk.maemo.org/showthread.php?t=42159)

daperl 2010-07-02 17:58

Re: Pygtk weird behavior; no buttons/labels background, just text.
 
Like I said, maybe hildon-desktop-python-loader is the problem. It might not be setting up the environment right. Try changing the line in

/usr/share/applications/hildon/pygtkeditor.desktop

from
Code:

Exec=/usr/bin/pygtkeditor
to
Code:

Exec=/usr/bin/run-standalone.sh /usr/bin/pygtkeditor
and see what happens.

daperl 2010-07-02 18:07

Re: Pygtk weird behavior; no buttons/labels background, just text.
 
Woops, that might not explain your first command line problem.

I'll take a look at hildon-desktop-python-loader anyway.

cpscotti 2010-07-02 18:10

Re: Pygtk weird behavior; no buttons/labels background, just text.
 
Quote:

Originally Posted by daperl (Post 738805)
I think all you've done is found the button theme thing I was suppose to fill you in on. Your test program might need menu items to be helpful. Try this one:

That example works correctly too.
But I tried putting it on /opt/ and making a "bypass" script on /usr/bin/ and again.. it didn't work.

daperl 2010-07-02 18:38

Re: Pygtk weird behavior; no buttons/labels background, just text.
 
What's the output of

Code:

which python

cpscotti 2010-07-02 18:45

Re: Pygtk weird behavior; no buttons/labels background, just text.
 
Quote:

Originally Posted by daperl (Post 738871)
What's the output of

Code:

which python

output is the expected:
Code:

/usr/bin/python

cpscotti 2010-07-02 18:50

Re: Pygtk weird behavior; no buttons/labels background, just text.
 
by the way, the "run-standalone.sh" attempt didn't work as well...
Also, i removed hildon-desktop-python-loader and this didn't change much.

daperl 2010-07-02 19:14

Re: Pygtk weird behavior; no buttons/labels background, just text.
 
I know this might defeat the purpose, but I'm guessing changing the Exec line in

/usr/share/applications/hildon/pygtkeditor.desktop

to
Code:

Exec=/usr/bin/python /opt/pygtkeditor/pygtkeditor.py
should work.

Or you could do what I do and soft link like this

Code:

ln -s /usr/bin/pygtkeditor /opt/pygtkeditor/pygtkeditor.py
and then put

/usr/share/applications/hildon/pygtkeditor.desktop

back to the original.

That's all I can think of for now, sorry.

cpscotti 2010-07-02 19:24

Re: Pygtk weird behavior; no buttons/labels background, just text.
 
Yep.. quite weird anyway... but that works.. (linking the desktop file directly to the python file).
Anyway.. this solves my problem but I would still like to know if this affects more people.. then I would at least submit fixes for the apps.

Anyway, thanks daperl!

daperl 2010-07-02 19:26

Re: Pygtk weird behavior; no buttons/labels background, just text.
 
Woops, I think the soft link was backwards.

Code:

rm /usr/bin/pygtkeditor
ln -s /opt/pygtkeditor/pygtkeditor.py /usr/bin/pygtkeditor


Hwoarang 2010-12-10 16:19

Re: Pygtk weird behavior; no buttons/labels background, just text.
 
I have the same problem as well. No matter what theme/firmware to use, the results are always the same

I do noticed that replacing /usr/bin/env python with /usr/bin/python fixes the problem for each application. However you need to make the same change every time you update the specific application

I already opened a bug months ago

https://bugs.maemo.org/show_bug.cgi?id=11242


All times are GMT. The time now is 00:34.

vBulletin® Version 3.8.8