[maemo-developers] [maemo-developers] Python equivalent of g_set_application_name("Hello maemo!") ?
From: Igor Tkach itkach at gmail.comDate: Tue Oct 17 00:03:54 EEST 2006
- Previous message: [maemo-developers] WebServices (SOAP) + SSL + Python?
- Next message: [maemo-developers] 8Gb Multimedia Mobile Card.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Luciano, the function is definitely not there in PyGTK that comes with Maemo 2.0 SDK I have in scratchbox (from Maemo_Dev_Platform_v2.0_i386-rootstrap.tgzdownloaded on August 11, 2006) and not in PyGTK I have on my desktop ( 2.8.6), but surprisingly enough it worked on Nokia 770 itself. Things like this make development for Maemo frustrating at times. Anyway, now it works... Thanks a lot for help! Igor (Btw, your URL for gtk-extrafuncs.def is slightly incorrect - there shoul be no '-' in '2.0-final': https://stage.maemo.org/svn/maemo/projects/haf/tags/python-sdk/2.0final/pygtk/gtk/gtk-extrafuncs.defs) On 10/16/06, Luciano Miguel Wolf <luciano.wolf at indt.org.br> wrote: > > ext Igor Tkach wrote: > > Luciano, > > for the life of me I can't find it. It is not mentioned anywhere in > > PyGTK reference as far as I can tell (nor anywhere else - I spent quite > > some time searching before I wrote to this mailing list), and it doesn't > > work when I try to call it. Can you please point me to a specific > > document/tutorial/example? > > > > Thank you, > > Igor > > > > On 10/16/06, *Luciano Miguel Wolf* <luciano.wolf at indt.org.br > > <mailto:luciano.wolf at indt.org.br>> wrote: > > > > ext Igor Tkach wrote: > > > Hi, > > > > > > I'm trying to use HildonProgram/HildonWindow instead of > > > HildonApp/HildonAppView (in Python). One thing I can't find in > > the new > > > API is how to work with application title. Setting title of > > HildonWindow > > > changes only second part of the actual application title. From C > > example > > > in Maemo tutorial it looks like g_set_application_name("Hello > > maemo!") > --snip-- > > > > Hi Igor, > > > > PyGTK has a set_application_name function, that calls the > > g_set_application_name. This one sets the window title. > > > > > > Luciano > > Igor, > > Depends on version of SDK that you're using. If you take a look, for > example, in Sardine[1] repository, the SDK 2.0 final has a PyGTK module > with this function. I did a test using an example inside > pygtk/examples/gtk on Sardine repository module, just inserting a > gtk.set_application_name('foobar') and removing the self.set_tile( ) > line. I hope this can help you. Any doubts, email me again! > > Luciano > > > [1]https://stage.maemo.org/svn/maemo/projects/haf/tags/python-sdk/2.0-final/pygtk/gtk > The gtk-extrafuncs.defs lists the set_application name function. > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maemo.org/pipermail/maemo-developers/attachments/20061016/e4a9ab10/attachment.htm
- Previous message: [maemo-developers] WebServices (SOAP) + SSL + Python?
- Next message: [maemo-developers] 8Gb Multimedia Mobile Card.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]