Hello,
I tried to add some new params to Editje. Could you tell my why this
doesn't show a combo box as I expected. It only shows the "aspect mode" label,
but no combo box behind.
Index: editje/details_state.py
===================================================================
--- editje/details_state.py (Revision 66801)
+++ editje/details_state.py (Arbeitskopie)
@@ -64,6 +64,8 @@
group="editje/collapsable/part_state"):
EditjeDetails.__init__(self, parent, operation_stack_cb, group)
+ self._aspects = ['NONE', 'NEITHER', 'HORIZONTAL', 'VERTICAL', 'BOTH' ]
+
self._header_init(parent)
self.focus_custom_chain_set([self._header_table, self._box])
@@ -259,6 +261,14 @@
wid.tooltip_set("Part vertical align.<br>0.0 = top 1.0 = bottom")
prop.widget_add("y", wid)
self["main"].property_add(prop)
+
+ prop = Property(self._parent, "aspect_mode")
+ wid = WidgetCombo(self)
+ for null, i in enumerate(self._aspects):
+ wid.item_add(i)
+ wid.tooltip_set("set aspect mode of part")
+ prop.widget_add("a", wid)
+ self["main"].property_add(prop)
# 'fixed' not implemented in edje_edit
# 'aspect' and 'aspect_preference' missing
I'm also not sure how property values are mapped from text to int values. I
think this
param is an integer type in edje.
So is Combo the correct widget for this work? What is done wrong?
regards
Andreas
--
Technical Blog <http://andreasvolz.wordpress.com/>
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel