Question about packed an aspect frame into a vbox



Hello everyone

    First ,I apologize for my poor English

   I wirte a dial widget ,and packed it into an aspect frame widget
   The aspect frame's ratio is    width:height = 4:3
  There is a spin button wroked with the dial widget
  So,I want to pack the frame widget and the spin button into a vbox
  And ,i want the spin button immediately under the frame widget,no
space between them

   The problem is: The vbox widget is packed into a table
   When the table's cell's space changed,
   there are some space between the spin button and the aspect frame widget

   What I want to achieve is that no matter where the vbox is packed
into,and nomatter how the user change the application's main window's
sharp, there are no space between the spin button and the aspect frame
widget.
   It is even betther If we can keep the spin button's width always
equal to the aspect frame's width.

                            I want it like this ,and keep the
ratio,no space between the spin and the frame
                                                   _________________
                                                    |
                       |
                                                    |     aspect
                 |
                                                    |     frame
                 |
                                                    |
_______________|
                                                    | spin button
              |
                                                   -----------------



                               But it some time like this: there
aresome space between them
                                                   _________________
                                                    |
                       |
                                                    |     aspect
                 |
                                                    |     frame
                 |
                                                    | _______________|
                                                    | ___space _________|
                                                    | spin button
              |
                                                   -----------------


   And sometime ,it even like this, the spin's width larger than the
frame's width,so ugly
                                                   _________________
                                                    |
                       |
                                                    |     aspect
                 |
                                                    |     frame
                 |
                                                    | _______________|
                                                    | ___space _________|
                                    |                  spin button
                                  |
                                     ------------------------------

I did not know what to do,I need your help
Any comments would be much appreciated ,and thanks in advance



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]