/srv/irclogs.ubuntu.com/2012/07/14/#ubuntu-app-devel.txt

johhnnHello, I am using GtkEntry to get user input in my app. Is it possible to remember this input and set it to entrybox when the app is closed and launched again?10:43
johhnnThe text field resets when the app is launched again.10:43
commandolinejohhnn: how about saving the contents as a setting?10:58
johhnnHow to do that? I am making app for the first time :)10:59
commandolinehmm, just a moment, I'll see if I can find some details for GTK (I'm using Qt myself)11:01
commandolineok, it looks like a window has a 'delete-event' (that's how it's literally called in GTK)11:02
commandolineif you react on that by saving the setting, e.g. via the http://docs.python.org/library/configparser.html module if you're using python.11:04
commandolineand just read out the setting again when starting.11:04
johhnnI found a guide for gsettings --> http://www.micahcarrick.com/gsettings-python-gnome-3.html11:05
commandolinefine too11:05
johhnnyeah thanks for the link, i am reading it now :)11:06
commandolineThe last approach is what gnome apps would typically do, but it looks like a bit more work to me (writing a scheme first). Just use whatever you prefer.11:07
johhnncommandoline: hey thanks configparser works like charm, feels like magic :)11:43
imnicholI'm using quickly and I'd like to have a list of things, what widget should I use?19:55
commandolinehttp://python-gtk-3-tutorial.readthedocs.org/en/latest/treeview.html I'd think (but I'm not a GTK dev myself)19:58
commandolineimnichol: ^19:58
imnicholThanks commandoline19:58
Phoenix87any idea about how I can get rid of /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.py:391: Warning: g_object_set_property: construct property "type" for object `Window' can't be set after construction21:52
guinea-pigPhoenix87: it's not in your project22:27
guinea-pighttps://bugzilla.gnome.org/show_bug.cgi?id=67851022:29
guinea-pighttp://git.gnome.org/browse/pygobject/commit/?id=de4aa426002eeb09a060f8fd70bd6cb25a17766a22:29
ubot2Gnome bug 678510 in introspection "g_object_set_property: construct property "type" for object `Window' can't be set after construction" [Minor,Resolved: fixed]22:29
=== coolstar_ is now known as coolstar

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!