![]() |
![]() |
![]()
Post
#1
|
|
Group: Members Posts: 7 Joined: 5-November 04 Member No.: 5,345 ![]() |
Is it possible to run a Python-PyQt script as an Opie application?
So far my script runs from the console. But while it is running I can't launch another programm without killing it. Can someone help me with some URLs to special guides to get me going? Zaurus 5500G, OpenZaurus 3.5.3, Opie 1.2.0 Thanks Volker |
|
|
![]() |
![]()
Post
#2
|
|
Group: Members Posts: 668 Joined: 3-December 03 From: US Member No.: 1,034 ![]() |
I don't know exactly for Opie - but the stepe are more or less the same as on a Sharp ROM.
A few steps necessary 1) copy the .py file to /home/QtPalmtop/bin and make it executable (you did a symlink - probably that might work as well) 2) make a .desktop file under /home/QtPalmtop/apps/<whichever tab you want> as [Desktop Entry] Exec = file.py Categories= MimeType = application/python Icon = <graphics file under /home/qtpalmtop/pics> Name = <whatever app> Type = Application Display 3) edit the /home/QtPalmtop/etc/mime.types file and add a mime type for python (this may not be necessary if you set the mimetypes in the .desktop file). 4) Restart Qtopia That should put your application icon on the desktop. Remember - for desktop apps - all scripts have to be in /home/QtPalmtop/bin Hope this works... |
|
|
![]()
Post
#3
|
|
Group: Members Posts: 7 Joined: 5-November 04 Member No.: 5,345 ![]() |
QUOTE(nilch @ Jan 10 2006, 07:52 PM) I don't know exactly for Opie - but the stepe are more or less the same as on a Sharp ROM. A few steps necessary 1) copy the .py file to /home/QtPalmtop/bin and make it executable (you did a symlink - probably that might work as well) 2) make a .desktop file under /home/QtPalmtop/apps/<whichever tab you want> as [Desktop Entry] Exec = file.py Categories= MimeType = application/python Icon = <graphics file under /home/qtpalmtop/pics> Name = <whatever app> Type = Application Display 3) edit the /home/QtPalmtop/etc/mime.types file and add a mime type for python (this may not be necessary if you set the mimetypes in the .desktop file). 4) Restart Qtopia That should put your application icon on the desktop. Remember - for desktop apps - all scripts have to be in /home/QtPalmtop/bin Hope this works... Thank you for clarification. But I can see no difference to my settings but for the different /home/ in my Hentges-ROM. Well, I tried the MimeType line. Still no icon displayed. And for the symlink: there are a lot of other symlinks in my .../QPalmtop/bin/ - and they work. Volker |
|
|
![]() ![]() |
![]() |
Lo-Fi Version | Time is now: 19th April 2018 - 09:25 PM |