Re: Help with spanning widgets over multiple rows

Dietmar Schwertberger <[email protected]>
Newsgroups gmane.comp.python.wxglade
Message-ID <[email protected]>
On 02.01.2019 00:10, M A wrote:
> I installed Python 3.7.2 using brew: brew install python3. Then I 
> installed wxpython like this: pip3 install -U wxPython. I then ran 
> wxglade by double-clicking on the wxglade shell script. This launched 
> wxglade but the window that opens up was blank. After a couple of 
> tries the window started appearing normally. The about dialog for 
> wxGlade displays this information: Version 0.9.0b2 on Python 3.7.2 and 
> wxPython 4.0.3. 

On Windows, wxGlade does also register itself as handler for .wxg files. 
Not sure how to implement such for Mac Os.


> As a test I was able to span a button. The issue is the button does not expand when the wxEXPAND flag is set. It keeps the same sized shape instead.

This is probably a limitation of wx on Mac Os. It always keeps the same 
height, it seems. You should see the background filling the available 
space, though:

On e.g. Windows the button itself will be extended:


I have just noticed that weird things happen when you try to have a 
multi-line label on a button on Mac Os...

>   Also the "Pos" field in the properties window remains greyed out.

That's intentional. Enabling the re-enabling the Pos control would be a 
major effort with only a minor improvement in usability, I think. On 
revision 1.0 it would be easier to implement, but I don't think that I 
will do so.


> Since I can change the button's position using the tree view, I think being able to change it in the properties window should work also. I would also like to be able to move this button in the Design window as well.

This should work. You should be able to drag a widget from one slot to 
another. For copying, try with Shift or Ctrl or Command button. 
Cut/Copy/Paste should also work in the Design window.
Dragging may not work with all widget types, depending also on the 
platform. Some widgets might handle the mouse event and thus avoid a 
drag start.


> I would change the Layout tab's Span fields to have labels "Rows:" and "Columns:". This would make things more clear as to what these fields mean.

Thanks, I will do so, either for 0.9 or 1.0. Probably I should spend a 
help page for the GridBagSizer as well.

Also, the row-spanning seems to get lost on saving and re-loading. This 
needs to be fixed.


Regards,

Dietmar

_______________________________________________
wxGlade-general mailing list
wxGlade-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/wxglade-general
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.