[Librem-5-dev] Fwd: Re: Deciding on Handy.* possiblities

antoine.fontaine at epfl.ch antoine.fontaine at epfl.ch
Sun Nov 24 13:17:48 PST 2019


resending to everyone, as I apparently don't know about the "reply to 
all" button.

---------- Message transféré ----------
De : antoine.fontaine at epfl.ch
Objet: Re: [Librem-5-dev] Deciding on Handy.* possiblities
Date : Sun, 24 Nov 2019 22:15:56 +0100
À : Richard Duivenvoorde <rdmailings at duif.net>

Hi,

When I implemented the preference dialog, I used a HdyDialog. I thought 
it worked fine, though I've never tried to make it a scrollable thing: 
maybe that isn't supported.

I'd recommend against the GtkStack solution: I've seen it used once and 
it turned out to be a burden: for example, you have to hide every 
titlebar element manually. It works but feels hacky. Having it into a 
separate leaflet would work too, but that's now what leaflets are made 
for, and it suffers from the same problem.

But there is something wonderful in libhandy:
https://developer.puri.sm/projects/libhandy/unstable/HdyPreferencesWindow.html
https://developer.puri.sm/projects/libhandy/unstable/HdyPreferencesPage.html
https://developer.puri.sm/projects/libhandy/unstable/HdyPreferencesGroup.html
https://developer.puri.sm/projects/libhandy/unstable/HdyPreferencesRow.html
I'd suggest recommend using that. The only downside I can think of is 
that it may not render well a lone preference page.

Le Fri, Nov 22, 2019 at 10:02, Richard Duivenvoorde via Librem-5-dev 
<librem-5-dev at lists.community.puri.sm> a écrit :
> Hi List,
> 
> (resending as sending with (small) attachment seems not to come 
> through)
> Screenshot now here: https://duif.net/kiker.png
> 
> In an earlier mail I told that I was trying to 'port' MQTT-Dash [0] to
> gtk/librem5 in PyGTK.
> 
> I've the logic of it now more or less working (see screenshot):
> - 'tiles' are updated based on mqtt topics
> - mqtt msg's are published (eg to turn on lights)
> - realtime showing the last received msg
> - coloring and changing (svg) graphics (like in MQTT-Dash)
> 
> but now have to decide on the UI-part of the rest of the application.
> Anybody has some input/guidance in this.
> 
> Read a lot about LibHandy, but cannot decide if I should
> - create a GtkWindow with one Handy.Dialog for configurations
> - create a GtkWindow with Handy.Leaflet's used for both 'tile'-pages 
> and
> config
> - create something based on a GtkStack(?)
> 
> One of my goal's is to keep the app really responsive, as in: I want 
> to
> be able to use it on for example a RaspberryPi or laptop touchscreen 
> too.
> 
> I'm happy to share current git version of the app with whowever is
> interested, but as it contains a connection some private info, I'm not
> ready yet to put it on gitlab/hub/whatever
> 
> I've been trying to look into the Purism examples, and can run them
> mostly, but more complex examples (like the ones in Gnome_builder) 
> fail
> to compile fully.
> 
> So in short: anybody interested in this MQTT client, and want's to 
> have
> a little chat with me, via whatever channel?
> 
> Regards,
> 
> Richard
> 
> [0] https://play.google.com/store/apps/details?id=net.routix.mqttdash
> 
> _______________________________________________
> Librem-5-dev mailing list
> Librem-5-dev at lists.community.puri.sm
> https://lists.community.puri.sm/listinfo/librem-5-dev





More information about the Librem-5-dev mailing list