Results 1 to 2 of 2

Thread: wxPython Font, Controls and Sizer Problems

  1. #1
    Join Date
    Jan 2009
    Beans
    34

    Question wxPython Font, Controls and Sizer Problems

    Hello, I'm having trouble with sizers

    My program needs to allow for font size changes, and I've had some problems getting the results I need.
    Either my buttons are not resizing right, or the text is going off them, or the frame isn't resizing properly.
    I've googled for hours with no solution, and a lot of confusion.

    For my program, I want this layout.
    http://bayimg.com/kaPlBaADn

    The width of A,B,C,D and E should all be as long as the longest button in this group. The A button has the longest label length
    The A-E button's height will either be one or two lines, the height size can be different for each, or all the same, it doesn't matter much.

    F should be as long as the buttons in A-E
    G-J will all be in the middle, and their width should be the total width of A and F.
    Finally the window has to then be resized to fit it all

    So I'm wanting a window where all the controls are automatically sized to fit the text, and then the frame is set to that final size.

    I've tried mixing sizers and using wx.EXPAND, but after hours of experimenting, I have no idea how to do this.
    It seems like a really simple problem.

  2. #2
    Join Date
    Jan 2009
    Beans
    34

    Re: wxPython Font, Controls and Sizer Problems

    bumpity bump bump

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •