Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Maemo: Developers

To use or not to use Glade to design GUI for Maemo applications...

 

 

Maemo developers RSS feed   Index | Next | Previous | View Threaded


a.grandi at gmail

Nov 12, 2007, 2:17 PM

Post #1 of 7 (2343 views)
Permalink
To use or not to use Glade to design GUI for Maemo applications...

Hello,

I'm writing a Maemo application in Python/GTK and I've to design the
GUI interface. My question is: should I use Glade or not?

At the moment Glade has no support for Hildon classes, so if I design
it using Glade I will have something similar to this:

window = gtk.Window(gtk.WINDOW_TOPLEVEL)

while it would be better if I had this:

window = hildon.Window()

so... what should I do? Do I have to design it by hand so I can use
Hildon classes?

Thanks for your support!

--
Andrea Grandi
email: a.grandi [at] gmail
website: http://www.ptlug.org
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


kyle.nitzsche at canonical

Nov 12, 2007, 2:28 PM

Post #2 of 7 (2288 views)
Permalink
Re: To use or not to use Glade to design GUI for Maemo applications... [In reply to]

Hi,

I put together a wiki page on this topic for the Ubuntu Mobile
project some time ago that may provide some helpful info:

https://help.ubuntu.com/community/UMEGuide/ApplicationDevelopment/
GladeWithPythonForUMEHildon

Kyle


On Nov 12, 2007, at 5:17 PM, Andrea Grandi wrote:

> Hello,
>
> I'm writing a Maemo application in Python/GTK and I've to design the
> GUI interface. My question is: should I use Glade or not?
>
> At the moment Glade has no support for Hildon classes, so if I design
> it using Glade I will have something similar to this:
>
> window = gtk.Window(gtk.WINDOW_TOPLEVEL)
>
> while it would be better if I had this:
>
> window = hildon.Window()
>
> so... what should I do? Do I have to design it by hand so I can use
> Hildon classes?
>
> Thanks for your support!
>
> --
> Andrea Grandi
> email: a.grandi [at] gmail
> website: http://www.ptlug.org
> _______________________________________________
> maemo-developers mailing list
> maemo-developers [at] maemo
> https://lists.maemo.org/mailman/listinfo/maemo-developers

_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


dyerga at gmail

Nov 12, 2007, 2:47 PM

Post #3 of 7 (2284 views)
Permalink
Re: To use or not to use Glade to design GUI for Maemo applications... [In reply to]

Hi.

On 12/11/2007, Andrea Grandi <a.grandi [at] gmail> wrote:
>
> Hello,
>
> I'm writing a Maemo application in Python/GTK and I've to design the
> GUI interface. My question is: should I use Glade or not?
>
> At the moment Glade has no support for Hildon classes, so if I design
> it using Glade I will have something similar to this:
>
> window = gtk.Window(gtk.WINDOW_TOPLEVEL)
>
> while it would be better if I had this:
>
> window = hildon.Window()
>
> so... what should I do? Do I have to design it by hand so I can use
> Hildon classes?
>
> Thanks for your support!
>

I have added a glade UI to Maemo WordPy (development version):
https://garage.maemo.org/plugins/scmsvn/viewcvs.php/trunk/?root=maemo-wordpy


Cheers.
--
Daniel Martín Yerga
Oviedo University
http://yerga.net


taktaktaktaktaktaktaktaktaktak at gmail

Nov 13, 2007, 4:49 AM

Post #4 of 7 (2278 views)
Permalink
Re: To use or not to use Glade to design GUI for Maemo applications... [In reply to]

> I put together a wiki page on this topic for the Ubuntu Mobile
> project some time ago that may provide some helpful info:
>
> https://help.ubuntu.com/community/UMEGuide/ApplicationDevelopment/
> GladeWithPythonForUMEHildon

This is the method I'm using for my C and Ruby Gtk apps as well:
create the UI using glade, then if necessary reparent the toplevel
container to a hildon window, and manually replace any other widgets
(e.g. GtkSpinButton => HildonNumberEditor) in code. It's less optimal
than it could be, but it's still leagues better, IMO, than creating
and maintaining the entire UI in code.

There is also libglade-hildon in development (
https://stage.maemo.org/svn/maemo/projects/haf/trunk/libglade-hildon/
), that will hopefully be available for our devices at some point.

--
"Tak does not require that we think of Him, only that we think."
--Grag Bashfullsson
http://www.gnu.org/philosophy/shouldbefree.html
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


jesse at guardiani

Nov 13, 2007, 5:20 AM

Post #5 of 7 (2281 views)
Permalink
Re: To use or not to use Glade to design GUI for Maemo applications... [In reply to]

IMO the biggest issue with doing it in python is the startup time as
i've mentioned in another thread.

On 11/13/07, Levi Bard <taktaktaktaktaktaktaktaktaktak [at] gmail> wrote:
> > I put together a wiki page on this topic for the Ubuntu Mobile
> > project some time ago that may provide some helpful info:
> >
> > https://help.ubuntu.com/community/UMEGuide/ApplicationDevelopment/
> > GladeWithPythonForUMEHildon
>
> This is the method I'm using for my C and Ruby Gtk apps as well:
> create the UI using glade, then if necessary reparent the toplevel
> container to a hildon window, and manually replace any other widgets
> (e.g. GtkSpinButton => HildonNumberEditor) in code. It's less optimal
> than it could be, but it's still leagues better, IMO, than creating
> and maintaining the entire UI in code.
>
> There is also libglade-hildon in development (
> https://stage.maemo.org/svn/maemo/projects/haf/trunk/libglade-hildon/
> ), that will hopefully be available for our devices at some point.
>
> --
> "Tak does not require that we think of Him, only that we think."
> --Grag Bashfullsson
> http://www.gnu.org/philosophy/shouldbefree.html
> _______________________________________________
> maemo-developers mailing list
> maemo-developers [at] maemo
> https://lists.maemo.org/mailman/listinfo/maemo-developers
>


--
Jesse Guardiani
Software Developer / Sys Admin
jesse [at] guardiani
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


a.grandi at gmail

Nov 19, 2007, 10:46 PM

Post #6 of 7 (2263 views)
Permalink
Re: To use or not to use Glade to design GUI for Maemo applications... [In reply to]

Hi,

> This is the method I'm using for my C and Ruby Gtk apps as well:
> create the UI using glade, then if necessary reparent the toplevel
> container to a hildon window, and manually replace any other widgets
> (e.g. GtkSpinButton => HildonNumberEditor) in code. It's less optimal

how can I reparent to another class a dinamically created object?

> than it could be, but it's still leagues better, IMO, than creating
> and maintaining the entire UI in code.

yes, I agree

Thanks for your help :)

--
Andrea Grandi
email: a.grandi [at] gmail
website: http://www.ptlug.org
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


taktaktaktaktaktaktaktaktaktak at gmail

Nov 20, 2007, 5:05 AM

Post #7 of 7 (2263 views)
Permalink
Re: To use or not to use Glade to design GUI for Maemo applications... [In reply to]

> > This is the method I'm using for my C and Ruby Gtk apps as well:
> > create the UI using glade, then if necessary reparent the toplevel
> > container to a hildon window, and manually replace any other widgets
> > (e.g. GtkSpinButton => HildonNumberEditor) in code. It's less optimal
>
> how can I reparent to another class a dinamically created object?

Something like:

#You'll have to check for maemo yourself, perhaps check for
/etc/osso_software_version
if HILDON:
window = hildon.Window()
window.set_title(oldwindow.get_title())
mycontainer.reparent(window)
window.show_all()
oldwindow.hide()





--
"Tak does not require that we think of Him, only that we think."
--Grag Bashfullsson
http://www.gnu.org/philosophy/shouldbefree.html
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers

Maemo developers RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.