qmessage and utf8
Hi, with your tips I got utf8 stuff working all around the application except QMessage. Sending and other qmessage- stuff is working well but umlauts are in wrong charset when sending. What is supposed to be output for those preferredCarsets? They return only blank line. mesitsi = QMessage() ... print mesitsi.preferredCharsetFor(msgstring) print mesitsi.preferredCharsets() and print msgstring outputs umlauts correctly. Should I just try converting the string to random format that is supported by QMessage? Thanks in advance! Ossipena / Timo P ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
problem with python, gtk and utf8
Hi! I am having a problem with dict(?!?) the code starts with: #!/usr/bin/env python # -*- coding: utf-8 -*- and the dict(?!?) is like this: letters = {} letters['1'] = ['', '.', ',', '?', '!', '1', '@', '-', '_', '(', ')', ':', ';', '', '%', '*', '#', '+', '', '=', '', '$', '£', '§', '¥'] letters['2'] = ['', 'a', 'b', 'c', '2', 'å', u'ä'] etc. and the appropriate char from that is written with: self.message_buffer.set_text(updatedtext) everything works perfectly until it is turn for ä to appear (to be written with set text above). after that there is a error: GtkWarning: gtk_text_buffer_emit_insert: assertion `g_utf8_validate (text, len, NULL)' failed does anyone have an idea what I am doing wrong? whole source can be found at gitorious if needed (except char ä etc) http://gitorious.org/vertsms any help is appreciated! Ossipena / TimoP ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
osso-abook
Hi I am having troubles when I am trying to fetch sms -field from addressbook. My code is straight from there: http://wiki.maemo.org/PyMaemo/Accessing_APIs_without_Python_bindings and I don't have a clue how I can do anything except fetch the name. Does someone have a good tip for me? There seems to be multiple possibilities in the api but I haven't succeeded with couple I tried. Thanks in advantage! Ossipena/TimoP ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
python getting active hildon.TextView()
Hi Is there a way to know which textview is active (where the cursor blinks)? Didn't manage to find anything within python docs. Is it only my search skills? Ossipena / TimoP ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
VS: Re: python app at portrait mode all the time
fortunately I have only one dialog: contact selection. it is pretty usable but annoying though when orientation jumps. I'll leave it be because there is much more work to do in order to get something else except A typed to the app @portrait :) Ossipena / Timo P - Alkuperäinen viesti - On Sat, 2010-04-24 at 21:03 +0200, ext Faheem Pervez wrote: The part you want is in the orientation_changed function. Try: hildon.hildon_gtk_window_set_portrait_flags(window, hildon.PORTRAIT_MODE_SUPPORT | hildon.PORTRAIT_MODE_REQUEST) This does not work if you have e.g. dialog that requires landscape mode (because of text input, for example) on top of you. Unfortunately, there is no way to force yourself portrait in the case your window is not the topmost window. -Kimmo On 4/24/10, pelt...@gmail.com pelt...@gmail.com wrote: Hi, is there a single or two rows way to define a python app to stay at portrait mode all the time? Tried to look through autorotation stuff from portrait.py[1] but didn't manage to find anything that I could use straight on. http://talk.maemo.org/showthread.php?t=31940 [1]http://repo.or.cz/w/gpodder.git?a=blob;f=src/gpodder/gtkui/frmntl/portrait.py I am trying to make a simple portrait sms python app as requested at tmo. So if someone knows how to do that as simple as possible, I'd appreciate some tips. Ossipena / TimoP ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
python app at portrait mode all the time
Hi, is there a single or two rows way to define a python app to stay at portrait mode all the time? Tried to look through autorotation stuff from portrait.py[1] but didn't manage to find anything that I could use straight on. http://talk.maemo.org/showthread.php?t=31940 [1]http://repo.or.cz/w/gpodder.git?a=blob;f=src/gpodder/gtkui/frmntl/portrait.py I am trying to make a simple portrait sms python app as requested at tmo. So if someone knows how to do that as simple as possible, I'd appreciate some tips. Ossipena / TimoP ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
VS: Re: python hildon.Button -problem
- Alkuperäinen viesti - On Fri, Apr 9, 2010 at 5:09 AM, Timo Pelkonen pelt...@gmail.com wrote: Hi! I don't know what I am doing wrong with this. I have two buttons configured like this: button_1 = hildon.Button(gtk.HILDON_SIZE_AUTO,hildon.BUTTON_ARRANGEMENT_VERTICAL, Button 1) and when I run the program, only one button is shown. If would help if you provide a more complete snippet of your code. A few possibilities: 1) Do you use a VBox/HBox container to hold these buttons ? 2) did you use window.show_all() to show the objects added to the window? HTH, -- Anderson Lizardo OpenBossa Labs - INdT Manaus - Brazil thanks for the reply. Basically the code is hello world taken from pymaemo wiki so there is no container. I'll add it and hope it does the trick. Ossipena / TimoP ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
VS: Re: python hildon.Button -problem
- Alkuperäinen viesti - On Fri, Apr 9, 2010 at 5:09 AM, Timo Pelkonen pelt...@gmail.com wrote: Hi! I don't know what I am doing wrong with this. I have two buttons configured like this: button_1 = hildon.Button(gtk.HILDON_SIZE_AUTO,hildon.BUTTON_ARRANGEMENT_VERTICAL, Button 1) and when I run the program, only one button is shown. If would help if you provide a more complete snippet of your code. A few possibilities: 1) Do you use a VBox/HBox container to hold these buttons ? 2) did you use window.show_all() to show the objects added to the window? HTH, -- Anderson Lizardo OpenBossa Labs - INdT Manaus - Brazil Adding vbox did the trick, thanks a lot! (this message was send FYI and confirmation that case is closed) Ossipena/TimoP ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers