Does anyone have a good recipe for temporarily disabling the resizing of a frame. I'm locking up the interface temporarily while doing a longish calculation in another thread. wx.BeginBusyCursor does most of the work, but I'd also like to prevent resizing of the frame since that's causing me some headaches.
Does anyone have a good recipe for temporarily disabling the resizing of a frame. I'm locking up the interface temporarily while doing a longish calculation in another thread. wx.BeginBusyCursor does most of the work, but I'd also like to prevent resizing of the frame since that's causing me some headaches.
Never mind. I should have been using WindowDisabler, not BusyCursor. However, when using WindowDisabler it appears that the cursor always ends up as an arrow, setting it to an hourglass doesn't work. A couple of other approaches almost worked, but turned out to be fragile, so I just punted and went with ProgressDialog.
Does anyone have a good recipe for temporarily disabling the resizing of a frame. I'm locking up the interface temporarily while doing a longish calculation in another thread. wx.BeginBusyCursor does most of the work, but I'd also like to prevent resizing of the frame since that's causing me some headaches.
You can use frame.SetSizeHints to limit frame resizing.
ยทยทยท
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!