Hello,

I'm working on porting Canola to Maemo 5 (N900) and part of my project I
have to change the old etk widgets to elementary. I have done most of the
things but I have some theming problems.
I want to add some padding to some widgets(buttons for example) using
size_hint_padding_set() but it doesn't seem to work. I have tried with a
simple example, starting from an example from python-elementary source code.
The code I'm using is : http://pastebin.com/w9MFAgZL . The only difference
between this code and the file (python-elementary/tests/test_button.py from
repository) is the line 30 where i set the padding.

Another problem I have faced is related to the alignment of some buttons.
Basically I want to arrange them in the following way:
--------------------------------------------
| OK           |            Cancel |
--------------------------------------------
So the OK button should be left aligned, and Cancel right-aligned. I have
tried to achieve this by using a homogeneous horizontal box. The strange
problem I have noticed is that the horizontal box doesn't distribute all the
available space to the cells. The width of the horizontal box is reported to
be ~400 but the size of the cells only ~100. So both cells use only half the
space. Which would be the way to make the above alignment? If the cells were
given the entire space then using size_hint_align on the buttons or using in
intermediary box would be probably easy to align them.

Thanks,
-- 
Andrei Mirestean
------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to