Hi all,

In an app I'm working on, I've got a button which opens another form.  This
second form has a dScrollPanel object containing a dImage.  The image being
displayed in the widget will change all the time, so I can't use constrained
dimensions for anything, hence the scroll panel.  The only problem is that
when the second form opens, no scroll bars appear in the scroll panel until
the window gets resized by the user.

The way I set the image in the dImage widget is with this:

def afterInitAll(self):
    self.Picture = os.path.join("graphPics", "tempGraph.jpg")

So I need help doing one of the following to fix this behavior:

   - If the problem is with the dImage object, I need it to refresh itself
   somehow after the Picture property is set.  I did try putting self.refresh()
   after the code above, but it didn't change anything.  I think this has the
   highest chance of being the problem because the ScaleMode, Sizer_HAlign, and
   Sizer_VAlign property values appear to revert to the defaults as well,
   instead of what I changed them to, until the window gets resized like above.
   - I need the dScrollPanel to refresh itself or something so that it knows
   to display the scroll bars once the Picture property is set on the dImage
   object.  Again, I already tried putting a self.refresh() in
   afterInitAll(self) of this object.
   - I need to set the Picture property in a more accepted method so that
   this problem works itself out.

On my system, I'm running WinXP with Dabo rev 5592, Python 2.6, wxPython
latest.

Thanks,
Mike M.


--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to