Re: Choice of Programming Languages
Since this topic was brought up, does Python + pygtk allow you to easily create widgets at fixed locations with fixed sizes? I'm having trouble with all the "auto fit, autosize" stuff. I know it's less portable, but I really want to use a fixed location GUI builder and runtime. Thanks, Jeff ___ maemo-users mailing list maemo-users@maemo.org https://maemo.org/mailman/listinfo/maemo-users
Re: N800 and USB host mode
> just run flasher to see its options and your question is answered ;-) > i think it was --enable-usb-host or something like that Can you do that (turn on USB-Host mode) without re-flashing the device? Thanks, Jeff ___ maemo-users mailing list maemo-users@maemo.org https://maemo.org/mailman/listinfo/maemo-users
Re: [maemo-users] Re: ?OT: Cant set background color w/py2.5 glade notebook widget on 770
On 2/13/07, Danny Milosavljevic <[EMAIL PROTECTED]> wrote: Hi, On Mon, 12 Feb 2007 18:36:23 -0500, Jeff G wrote: > I can't seem to set the background color of a label widget in a > notebook widget (not the page identifier) > window1 >vbox1 > notebook1 [...] > > I'm trying to make the entire notebook have a background color. > setting window1 background works directly on linux > window.modify_bg(gtk.STATE_NORMAL, gtk.gdk.color_parse('#4A85DD')) > on scratchbox had to add similar line for notebook1 > nbook.modify_bg(gtk.STATE_NORMAL, gtk.gdk.color_parse('#4A85DD')) > but can't seem to do it under the 770 implementation Err. I hope you only wrote "modify_bg" as a simplification and don't actually have that in code. Colors are a theme issue. If you just want to make the user able to recolor your widget, give it a name(gtk_widget_set_name("foobar")). Then as user / theme author in "~/.gtkrc-2.0" / your theme do: style "foo" { bg[NORMAL] = { 0.5, 0.5, 0.7 } base[NORMAL] = { 0.0, 0.0, 0.0 } } widget "foobar" style "foo" If, on the other hand, you draw your own widget: http://traveller.cvs.sourceforge.net/traveller/tpanel/gtaskitem.py?view=markup This also makes it a lot easier to test when what change works where :-) > if this is way off topic, sorry, and please redirect me to proper list. Seems on-topic to me, however I don't have an answer to your particular question. Maybe create an eventbox, theme that and add your notebook in it? Should be able to find out by hacking a bit... cheers, Danny ___ maemo-users mailing list maemo-users@maemo.org https://maemo.org/mailman/listinfo/maemo-users Perhaps I'm not thinking about it enough, but I want to create a purpose-built environment, not a general purpose app. Therefore, I really DO want to set the colors, etc, myself. However, perhaps your method allows me to easily change it after the app is built, and is a much more general approach. Nonetheless, from my reading of the widget documentation, a "label" is not supposed to have it's own background -- rather it should be transparent. I'm not sure which component is causing the background to take over my setting. I wonder if the Hildon environment is causing the "problem" -- but then again, why is it working differntly under the scratchbox (in native PC mode)? Thanks for any help on this. Jeff ___ maemo-users mailing list maemo-users@maemo.org https://maemo.org/mailman/listinfo/maemo-users
[maemo-users] ?OT: Cant set background color w/py2.5 glade notebook widget on 770
I can't seem to set the background color of a label widget in a notebook widget (not the page identifier) The structure is actually a bit more complicated,and looks partially like window1 vbox1 notebook1 hbox3 labe1 vbox2 label3 label4 I'm trying to make the entire notebook have a background color. setting window1 background works directly on linux window.modify_bg(gtk.STATE_NORMAL, gtk.gdk.color_parse('#4A85DD')) on scratchbox had to add similar line for notebook1 nbook.modify_bg(gtk.STATE_NORMAL, gtk.gdk.color_parse('#4A85DD')) but can't seem to do it under the 770 implementation if this is way off topic, sorry, and please redirect me to proper list. thanks, Jeff ___ maemo-users mailing list maemo-users@maemo.org https://maemo.org/mailman/listinfo/maemo-users
Re: [maemo-users] help - attempted N770 python upgrade -- system keeps rebooting
On 2/12/07, Marius Gedminas <[EMAIL PROTECTED]> wrote: On Mon, Feb 12, 2007 at 02:50:04PM -0500, Jeff G wrote: > I probably did something really stupid, but don't know how to recover. What you did is not stupid, but it is a common mistake: sudo apt-get upgrade that tried to upgrade an important system package (maemo-launcher). > Nokia770-26:/media/mmc1# apt-get upgrade hildon-libs0 ... > Preparing to replace maemo-launcher 0.17-1.1 (using > .../maemo-launcher_0.17-1.1sdk1_armel.deb) ... > Stopping Maemo Launcher: maemo-launcher. There is a process called the lifeguard. When a critical system process dies, it reboots the device. Apt-get upgrade stopped maemo-launcher, and shortly after that, the lifeguard rebooted the device. > Unpacking replacement maemo-launcher ... > Preparing to replace maemo-recorder 0.0.18 (using > .../maemo-recorder_0.0.19_armel.deb) ... > Unpacking replacement maemo-recorder ... > - > > Now, it keeps rebooting about one 30 seconds after the last reboot Unfortunately, your new maemo-launcher is not yet fully configured and cannot start, so the device cannot boot, and restarts. There are two ways to fix this situation: 1. Reflash the OS, restore data from backups, reinstall applications (and take care not to upgrade maemo-launcher again). 2. Enable R&D mode and disable lifeguard reset (with the flasher app), boot, ssh into it and finish the interrupted upgrade. Disable R&D mode and see if it works. If it doesn't, use alternative 1. In my humble opinion, maemo-launcher's preinst/postinst scripts should never stop it. That's what, for example, gdm scripts do on desktop Linux systems: if they find a running X server, the scripts do not restart gdm. HTH, Marius Gedminas -- if (DefRel.empty() == false) -- apt-pkg/policy.cc (apt 0.5.23) -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFF0M4qkVdEXeem148RAuabAJ9waKwNHdQpoPn712akII/JtFfJsACffKFx O173JlDJfSb0/D/zMIMAm7U= =zYNw -END PGP SIGNATURE- ___ maemo-users mailing list maemo-users@maemo.org https://maemo.org/mailman/listinfo/maemo-users I wish I had seen this a few minutes earlier. I just reflashed Well, I learned a few more things today :-) 1. how to reflash 2. make sure to backup ! (I always KNEW it but didn't DO it) ___ maemo-users mailing list maemo-users@maemo.org https://maemo.org/mailman/listinfo/maemo-users
Re: [maemo-users] Bricked a third time
I think I somehow trashed my 770. how do you "easily" recover -like restore original config? On 2/12/07, Richard Pickler <[EMAIL PROTECTED]> wrote: I seem to have a knack for killing my n800 without really doing much to it. The first time, I charged the thing over night. When I checked it in the morning, it was constantly rebooting. The second time, I was installing some packages I built myself, and it crashed, which I could not recover from. (this one I'll take the blame for). This last time, I did nothing. The battery probably drained all the way over the weekend, and when I plugged it back in, it wouldn't boot again. Recovering from these kind of errors is easy enough, but I bought the thing to handle some very specific tasks when I'm on the road for extended periods (traveling by motorcycle, where space is a premium), and I'm worried that if it will die at random like this, I could be comepletely stranded, digitally. Any thoughts? Anybody else having problems like this? ___ maemo-users mailing list maemo-users@maemo.org https://maemo.org/mailman/listinfo/maemo-users ___ maemo-users mailing list maemo-users@maemo.org https://maemo.org/mailman/listinfo/maemo-users
[maemo-users] help - attempted N770 python upgrade -- system keeps rebooting
I probably did something really stupid, but don't know how to recover. This was all done from an ssh window to the device. I wanted to upgrade to python 2.5, and did an apt-get install of python 2.5, but then, when trying to run a simple app, I got - File "nw.py", line 2, in import gtk ImportError: No module named gtk - so then I tried to install what I though might be missing... - Nokia770-26:/media/mmc1# apt-get install python2.5-runtime Reading package lists... Done Building dependency tree... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. Since you only requested a single operation it is extremely likely that the package is simply not installable and a bug report against that package should be filed. The following information may help to resolve the situation: The following packages have unmet dependencies: python2.5-runtime: Depends: python2.5-hildon (>= 0.8.7-1osso1) but it is not going to be installed E: Broken packages Nokia770-26:/media/mmc1# apt-get install python2.5-hildon Reading package lists... Done Building dependency tree... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. Since you only requested a single operation it is extremely likely that the package is simply not installable and a bug report against that package should be filed. The following information may help to resolve the situation: The following packages have unmet dependencies: python2.5-hildon: Depends: hildon-fm1 (>= 0.29-1) but 0.28-2 is to be installed Depends: hildon-libs0 (>= 0.12.22-1) but 0.12.20-1 is to be installed -- I then tried to install hildon-libs0, being one of the dependencies - but I used "upgrade", not install - Nokia770-26:/media/mmc1# apt-get upgrade hildon-libs0 Reading package lists... Done Building dependency tree... Done The following packages will be upgraded: certs clinkc0 gcc-3.4-base gst-plugins-farsight lessertunjo0 libcst libgalago1 libgcc1 libjinglebase0 libjinglep2p0 libstdc++6 libtelepathy maemo-launcher maemo-recorder osso-sounds-ui 15 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 2422kB of archives. After unpacking 1109kB of additional disk space will be used. Do you want to continue [Y/n]? WARNING: The following packages cannot be authenticated! libgcc1 gcc-3.4-base libstdc++6 libcst certs clinkc0 libjinglebase0 libjinglep2p0 gst-plugins-farsight lessertunjo0 libgalago1 libtelepathy maemo-launcher maemo-recorder osso-sounds-ui Install these packages without verification [y/N]? y Get:1 http://repository.maemo.org mistral/non-free libgcc1 1:3.4.4cs2005q3.2-5.osso2 [27.0kB] Get:2 http://repository.maemo.org mistral/non-free gcc-3.4-base 3.4.4cs2005q3.2-5.osso2 [106kB] Get:3 http://repository.maemo.org mistral/non-free libstdc++6 3.4.4cs2005q3.2-5.osso2 [244kB] Get:4 http://repository.maemo.org mistral/free libcst 1.6.34maemo1 [36.7kB] Get:5 http://repository.maemo.org mistral/free certs 1.5.4maemo1 [62.5kB] Get:6 http://repository.maemo.org mistral/non-free clinkc0 1.0-27.1 [56.1kB] Get:7 http://repository.maemo.org mistral/free libjinglebase0 0.3.0-0osso1.2maemo1 [107kB] Get:8 http://repository.maemo.org mistral/free libjinglep2p0 0.3.0-0osso1.2maemo1 [186kB] Get:9 http://repository.maemo.org mistral/free gst-plugins-farsight 0.10.1-0osso2maemo2 [56.5kB] Get:10 http://repository.maemo.org mistral/free lessertunjo0 0.1.2-3maemo1 [13.0kB] Get:11 http://repository.maemo.org mistral/non-free libgalago1 0.5.0-0osso3maemo1 [100kB] Get:12 http://repository.maemo.org mistral/free libtelepathy 0.0.14-0osso1maemo1 [20.8kB] Get:13 http://repository.maemo.org mistral/free maemo-launcher 0.17-1.1sdk1 [42.9kB] Get:14 http://repository.maemo.org mistral/free maemo-recorder 0.0.19 [76.4kB] Get:15 http://repository.maemo.org mistral/non-free osso-sounds-ui 1.2-4sdk1 [1287kB] Fetched 2422kB in 32s (75.1kB/s) /bin/sh: /usr/sbin/dpkg-preconfigure: not found (Reading database ... 11882 files and directories currently installed.) Preparing to replace libgcc1 1:3.4.4cs2005q3.2-4 (using .../libgcc1_1%3a3.4.4cs2005q3.2-5.osso2_armel.deb) ... Unpacking replacement libgcc1 ... Setting up libgcc1 (3.4.4cs2005q3.2-5.osso2) ... (Reading database ... 11882 files and directories currently installed.) Preparing to replace gcc-3.4-base 3.4.4cs2005q3.2-4 (using .../gcc-3.4-base_3.4.4cs2005q3.2-5.osso2_armel.deb) ... Unpacking replacement gcc-3.4-base ... Preparing to replace libstdc++6 3.4.4cs2005q3.2-4 (using .../libstdc++6_3.4.4cs2005q3.2-5.osso2_armel.deb) ... Unpacking replacement libstdc+
[maemo-users] how to test python 2.4 code with gtk and libglade on development system (SDK_PC)
I tried running a python program under scratchbox, and it fails when importing gtk. any ideas of how to "install" what I need. the app installer is NOT available in the provided UI. Thanks, Jeff ___ maemo-users mailing list maemo-users@maemo.org https://maemo.org/mailman/listinfo/maemo-users