Dialog v. Frame

I just upgraded to 2.8 and got
wxglade 0.6.3 working.

It now APPEARS there is no difference between a
DIALOG and a FRAME as far as capabilities.
Before I convert my frames to dialogs, big job,
any caveats or restrictions?

Currently my frames load other frames all of which use
htmlhelpcontroller.

Thanks

Frames don’t have the ShowModal() method, that’s one thing. Anyway, there is a vast difference between frames and dialogs. A dialog is a window (i.e. a widget) of a frame. Please keep that in mind.

···

On Wed, May 7, 2008 at 10:43 PM, Phillip Watts phillip.watts@anvilcom.com wrote:

I just upgraded to 2.8 and got

wxglade 0.6.3 working.

It now APPEARS there is no difference between a

DIALOG and a FRAME as far as capabilities.

Before I convert my frames to dialogs, big job,

any caveats or restrictions?

Currently my frames load other frames all of which use

htmlhelpcontroller.

Thanks


wxpython-users mailing list

wxpython-users@lists.wxwidgets.org

http://lists.wxwidgets.org/mailman/listinfo/wxpython-users

Phillip Watts wrote:

I just upgraded to 2.8 and got wxglade 0.6.3 working.

It now APPEARS there is no difference between a
DIALOG and a FRAME as far as capabilities.
Before I convert my frames to dialogs, big job,
any caveats or restrictions?

wx.Dialog and wx.Frame both derive from wx.TopLevelWindow, so they share a lot of functionality. The main difference is that dialogs are intended to be used with ShowModal, have special support for buttons with wx.ID_OK or wx.ID_CANCEL IDs, support tab-traversal, and have the proper panel-like look for hosting controls.

If you already have stuff working with wx.Frame then there probably isn't any reason to switch them to dialogs, unless you want to use them modally.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Rickey, Kyle W wrote:

Off the top of my head (unless I'm mistaken) dialogs can't have
Statusbars.

Not the built-in support that wx.Frame has (like CreateStatusBar, SetStatusBar, etc.) but you can still make one and manage it yourself.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

If you already have stuff working with wx.Frame then there probably
isn't any reason to switch them to dialogs, unless you want to use them
modally.

Yes modally is very much the point as long as they will do anything a frame
will do.

As of now I am using frame.MakeModal(True) and (False) right before destroy.
Seems to work, but someone warned me against MakeModal. Called it a hack???

What, the fuck, is wrong with you?! If you want a modal, use the ShowModal() method of a dialog – and not a frame. You stupid ass! I hope you choke on frame.MakeModal()!

···

On Thu, May 8, 2008 at 2:27 AM, Phillip Watts phillip.watts@anvilcom.com wrote:

If you already have stuff working with wx.Frame then there probably

isn’t any reason to switch them to dialogs, unless you want to use them

modally.

Yes modally is very much the point as long as they will do anything a frame

will do.

As of now I am using frame.MakeModal(True) and (False) right before destroy.

Seems to work, but someone warned me against MakeModal. Called it a hack???


wxpython-users mailing list

wxpython-users@lists.wxwidgets.org

http://lists.wxwidgets.org/mailman/listinfo/wxpython-users