![]() |
Pygtk weird behavior; no buttons/labels background, just text.
Today I just realized that all python applications (in my n900) that use pygtk, (e.g. pygtkeditor, n900fly, accdisplay.. ) are with their themes screwed up.
Menu of pygtkeditor, note the absence of the bg http://static.pixelpipe.com/c9928a2a...c75c5d6c_m.jpg Trying to search something in pygtkeditor http://static.pixelpipe.com/37ee29ec...a100b9dd_m.jpg (if you enter text, you can see the auto-complete text but not the already entered chars) To get it even weirder, all normal apps (non-pygtk) are ok. e.g: Xterm menu: http://static.pixelpipe.com/875b255d...a3e5cb6b_m.jpg I already tried removing python-gtk (which removed all this "affected" apps) and installing again to no avail.. python-gtk2 and everything else is from extras (AFAIK). Maybe related: I installed "Reflect Theme".. This issue MAY be related to this thread but since what I'm experiencing is way worse and more global I'm creating this new thread Anyone knows any pygtk - specific confs (something like .pygtk)? Anyone has any clue? Thanks in advance! |
Re: Pygtk weird behavior; no buttons/labels background, just text.
SO.. just to put some heat on this..
I already changed my FW numerous times. Each time Ireset the firmware, everything goes back into normal.. and then.. suddenly.. as if "from nowhere".. this behavior restarts.. Anyone? |
Re: Pygtk weird behavior; no buttons/labels background, just text.
1 Attachment(s)
Quote:
Let's start with one of the built-in themes. For the purpose of this conversation, can you please switch to the Digital Nature Theme. You talk about the Reflect Theme in your previous post, but it looks like the images are from the Digital Nature Theme (hildon-theme-beta). Is that correct? I'm running PR 1.2 and I just installed pygtkeditor and set my theme to Digital Nature. Here's a screenshot that doesn't look like yours. Attachment 11691 I have to get going at the moment, but I'll tell you about Fremantle themed buttons when I get back. That is actually a different issue. In the meantime, please post the output of the following: Code:
ls -l /usr/share/themes/beta |
Re: Pygtk weird behavior; no buttons/labels background, just text.
1 Attachment(s)
So.. the output from the ls is:
Code:
Nokia-N900-51-1:~# ls -l /usr/share/themes/beta/ The funny thing is that, as far as I know, only pygtk are affected. |
Re: Pygtk weird behavior; no buttons/labels background, just text.
Quote:
Code:
dpkg -l | grep -i python Code:
ii python 2.5.2-3maemo3 An interactive high-level object-oriented language (defaul |
Re: Pygtk weird behavior; no buttons/labels background, just text.
Ok, first the output from the dpkg on python pkgs:
Code:
Nokia-N900-51-1:~# dpkg -l | grep -i python Also, same thing (no warnings nor erros for other pygtk apps..) The apps I see the same behavior are accDisplay and n900fly. Do you have an idea on any other python apps I should try in order to "track down" the problem? |
Re: Pygtk weird behavior; no buttons/labels background, just text.
I don't have
hildon-desktop-python-loader Maybe try uninstalling that and rebooting. Also, you have a different (newer?) python-osso than I do. But I'd start with hildon-desktop-python-loader. |
Re: Pygtk weird behavior; no buttons/labels background, just text.
1 Attachment(s)
Now looking at the difference between the two package listings, odd things I can see are:
Code:
ii hildon-desktop-python-loader 0.1.0-1maemo3 Hildon Desktop Python Plugin Loader |
Re: Pygtk weird behavior; no buttons/labels background, just text.
1 Attachment(s)
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:
|
Re: Pygtk weird behavior; no buttons/labels background, just text.
Ok, I just found out some really funny thing..
Both my apps and pygtkeditor use a shell script like: Code:
#!/bin/sh Launching the app (both from the desktop links or the terminal) will call this scripts and then call the app itself. I just tried running the exact same app but bypassing this script: Code:
~ $ python /opt/pygtkeditor/pygtkeditor.py (EDIT: woops.. wait some more) |
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 Code:
Exec=/usr/bin/run-standalone.sh /usr/bin/pygtkeditor |
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. |
Re: Pygtk weird behavior; no buttons/labels background, just text.
Quote:
But I tried putting it on /opt/ and making a "bypass" script on /usr/bin/ and again.. it didn't work. |
Re: Pygtk weird behavior; no buttons/labels background, just text.
What's the output of
Code:
which python |
Re: Pygtk weird behavior; no buttons/labels background, just text.
Quote:
Code:
/usr/bin/python |
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. |
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 Or you could do what I do and soft link like this Code:
ln -s /usr/bin/pygtkeditor /opt/pygtkeditor/pygtkeditor.py /usr/share/applications/hildon/pygtkeditor.desktop back to the original. That's all I can think of for now, sorry. |
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! |
Re: Pygtk weird behavior; no buttons/labels background, just text.
Woops, I think the soft link was backwards.
Code:
rm /usr/bin/pygtkeditor |
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 |
Re: Pygtk weird behavior; no buttons/labels background, just text.
Did you make any progress with that? Can you please tell me which applications you have installed? Maybe there a stupid application that messes up everything. I have already flashed my FW more than 10 times and I always get the same problem on 2-3 reboot
|
Re: Pygtk weird behavior; no buttons/labels background, just text.
wander why... "settings" button doesn't work any more. when I tap it, it does nothing!!!
Since I use pygtkeditor from shell with a text file as argument, I noticed this code in the shell: Code:
python Thanks, a lot. |
All times are GMT. The time now is 00:46. |
vBulletin® Version 3.8.8