|
2008-12-09
, 12:52
|
|
Posts: 696 |
Thanked: 1,012 times |
Joined on Mar 2006
@ Asturies, Spain
|
#2
|
Hi, I'm working on my first Python application ever and I have some questions that I couldn't find doing searches or possibly just not understand when I found it.
First, I've been developing it on my Windows XP machine with Python runtime and PyGame installed. What I make on it transfers over to my N810 and runs perfectly fine just a million times slower. I use nano on the N810 to do additional editing when I am away from the laptop. My question on this one is if I should be doing my development and transferring another way?
Second, how the heck do I get the icon that I've created to show up in the task bar? If I switch away from the screen, I can't toggle back but still hear the audio it was playing continue on. Do I need to use GTK window items which I'm not sure I even understand what that is. Or, do I just simply need to make an icon and stick it in the right directory? I do have it showing up in the maemo menu to launch the app with no issues so at least I'm doing part of it right.
import os os.environ["SDL_VIDEO_X11_WMCLASS"]="here_your_binary_name"
Third, I eventually want to make a .deb file but my program uses two different sub-directories. I use a "data" sub-directory to store my icons, audio files, xml data, etc. I also use a directory where I store larger ".wav" files that I currently have under "\media\mmc1\wav_files" so I'm not eating away from the built-in storage area. Is it possible to make a .deb installation that would create and install my different files into different locations?
Fourth, is there a maximum amount of files that I can have in my .deb install? I currently am using about 120 files and that could grow by the time I am done. Will this be a nightmare to maintain too?
Last, I need the screen to undim at times, is there a way to do this from Python? I read somewhere that someone tried it but they couldn't get it to work. Am I now crossing over into this "dbus" world and is it as scary as I feel it is?
Please be kind as I really am trying to get this working without being a pest.
|
2008-12-09
, 20:00
|
|
Posts: 229 |
Thanked: 108 times |
Joined on Oct 2007
@ Sacramento, California
|
#3
|
|
2008-12-18
, 06:21
|
|
Posts: 229 |
Thanked: 108 times |
Joined on Oct 2007
@ Sacramento, California
|
#4
|
|
2008-12-18
, 12:24
|
|
Posts: 1,391 |
Thanked: 4,272 times |
Joined on Sep 2007
@ Vienna, Austria
|
#5
|
I'm so busy all of the time that it's taking forever and I'm afraid the N900 will be out by the time this is ready.
The Following 2 Users Say Thank You to thp For This Useful Post: | ||
|
2008-12-18
, 12:47
|
|
Posts: 3,404 |
Thanked: 4,474 times |
Joined on Oct 2005
@ Germany
|
#6
|
The Following User Says Thank You to pycage For This Useful Post: | ||
|
2008-12-18
, 22:57
|
|
Posts: 229 |
Thanked: 108 times |
Joined on Oct 2007
@ Sacramento, California
|
#7
|
|
2008-12-21
, 23:04
|
|
Posts: 3,404 |
Thanked: 4,474 times |
Joined on Oct 2005
@ Germany
|
#8
|
The Following User Says Thank You to pycage For This Useful Post: | ||
|
2008-12-26
, 20:32
|
|
Posts: 229 |
Thanked: 108 times |
Joined on Oct 2007
@ Sacramento, California
|
#9
|
|
2008-12-26
, 20:42
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#10
|
os.system(browser --url=<url>)
First, I've been developing it on my Windows XP machine with Python runtime and PyGame installed. What I make on it transfers over to my N810 and runs perfectly fine just a million times slower. I use nano on the N810 to do additional editing when I am away from the laptop. My question on this one is if I should be doing my development and transferring another way?
Second, how the heck do I get the icon that I've created to show up in the task bar? If I switch away from the screen, I can't toggle back but still hear the audio it was playing continue on. Do I need to use GTK window items which I'm not sure I even understand what that is. Or, do I just simply need to make an icon and stick it in the right directory? I do have it showing up in the maemo menu to launch the app with no issues so at least I'm doing part of it right.
Third, I eventually want to make a .deb file but my program uses two different sub-directories. I use a "data" sub-directory to store my icons, audio files, xml data, etc. I also use a directory where I store larger ".wav" files that I currently have under "\media\mmc1\wav_files" so I'm not eating away from the built-in storage area. Is it possible to make a .deb installation that would create and install my different files into different locations?
Fourth, is there a maximum amount of files that I can have in my .deb install? I currently am using about 120 files and that could grow by the time I am done. Will this be a nightmare to maintain too?
Last, I need the screen to undim at times, is there a way to do this from Python? I read somewhere that someone tried it but they couldn't get it to work. Am I now crossing over into this "dbus" world and is it as scary as I feel it is?
Please be kind as I really am trying to get this working without being a pest.