The file property seems ok now, will see...
This commit is contained in:
parent
31320ca2e8
commit
6015567953
|
@ -25,12 +25,10 @@ TODO
|
|||
* add all the supported widget to KLASSES
|
||||
* documentation for this module
|
||||
* fix (in erigo) the label with markup
|
||||
|
||||
* properties that need to be fixed:
|
||||
- visibility
|
||||
- file
|
||||
|
||||
* What when we create the same widget more than one time ?
|
||||
- visibility (will be fixed in eo)
|
||||
* how to manage translations??
|
||||
* what when we create the same widget more than one time ?
|
||||
|
||||
"""
|
||||
|
||||
|
@ -143,7 +141,6 @@ def _widget_generate(self, name, parent_name=None):
|
|||
p_vals = _params_list_parse(mod, p_vals)
|
||||
if p_name == 'file':
|
||||
p_vals = _resource_find(self, p_vals)
|
||||
p_vals = (p_vals[0]) # ARGHHHHHHHHHHH TODO FIX THE FILE PROP
|
||||
if len(p_vals) == 1:
|
||||
setattr(w, p_name, p_vals[0])
|
||||
else:
|
||||
|
@ -232,9 +229,8 @@ def _property_modify_cb(obj, self, widget_name, prop_name, values):
|
|||
if prop_name == 'visibility': # TODO remove this hack when Eo will be fixed
|
||||
prop_name = 'visible'
|
||||
|
||||
if prop_name == 'file':
|
||||
elif prop_name == 'file':
|
||||
values = _resource_find(self, values)
|
||||
values = (values[0]) # ARGHHHHHHHHHHH TODO FIX THE FILE PROP
|
||||
setattr(w, prop_name, values[0] if len(values) == 1 else values)
|
||||
|
||||
|
||||
|
|
|
@ -27,7 +27,8 @@
|
|||
"Desc":
|
||||
{
|
||||
"parent":null,
|
||||
"class":"Elm_Win"
|
||||
"class":"Elm_Win",
|
||||
"public":true
|
||||
},
|
||||
"Properties":
|
||||
{
|
||||
|
|
|
@ -40,6 +40,9 @@ def erigo_clicked(obj):
|
|||
egui.elm_label1.text = 'GUI Generated in %.5f seconds' % \
|
||||
(time.time() - start_time)
|
||||
|
||||
if obj is None:
|
||||
egui.elm_win1.callback_delete_request_add(lambda o: elementary.exit())
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
elementary.init()
|
||||
|
|
Loading…
Reference in New Issue