On Fri, Mar 16, 2012 at 7:42 PM, Nick Porter
<[email protected]> wrote:
>> Luke said:
>>the SimplePanel is excessive.  its purpose is to help turn widgets
>> that don't have certain kinds of DOM characteristics (can't accept
>> focus for example) to compensate for that lack.  you don't need it.
>>
>> ...
>>
>> .panelname {
>>    margin: 15px;
>> }
>>
>> that should do the trick.  the alternative is to use the "Spacing"
>> parameter or "Padding" parameter.
>
> when I  read this my thoughts were at first like a 5-year-old-kid's
> "well duh I know what padding is, duh. I'm gonna show why just using
> those isn't working, and for that very same reason, it's not going to
> work without a div, cause there's no way its the div causing the
> problem" and so then I made a simple HTML mockup of the situation with
> two divs, and then one with only one div.
>
> And for the second one the CSS worked as it was supposd to work....
> groan. oh man... i'm such an idiot sometimes. That was what I was
> doing wrong this whole time. Removing those excess panels actually
> solved most of the incredibly messy problems I was having (and made
> redundant the crazy selector I was using to get to an Hbox cell). The
> only problems that remained were ones which required trial-and-error
> on my hobbyist part. Thanks.

 teehee.  remember that the pyjamas source code is your friend.  this
isn't like pygtk where it's a shim on top of a c library: you can
actually go in and look at the source code of the functions for a
particular widget and actually stand a chance of working out what it
does.

 after almost 4 years of working with pyjamas i *still* open up the
file of the widget(s) and their base classes in order to check the
parameters and the function names.

> I'll probably send in a nice link to the app next week after some
> debugging (though there'll still be plenty of development to be done,
> maybe be at version 0.3 or 0.2.5, still far from any release)

 yeayy.

 you know what would help?  is if you could document what you've done,
and the experiences that you had.  that would help other pygtk
programmers who might not be "getting it".

 i would make special mention of the fact that you found it easy to
conceptually convert to pyjamas event handling because you're familiar
with it from the pygtk gui world.

 i would _especially_ make a big meal out of the CSS hell thing, and
what helped you to get it in the end :)

 l.

Reply via email to