I'm learning wxPython so most of the libraries and classes are new to me.
I'm creating a Preferences dialog class but don't know the best way to make sure the OK/Cancel (or Save/Close) buttons are in the correct order for the platform. This program is intended to run both on GNOME and Windows, so I want to make sure that the buttons are in the correct order for each platform.
Does wxPython provide functionality that prevents me from doing a if platform.system() == 'Linux' kind of hack?
The appearance of a dialog can change only if you use stock dialogs (like wx.FileDialog), if you make your own the layout will stay the same on every platform.
wx.Dialog has a CreateStdDialogButtonSizer method that creates a wx.StdDialogButtonSizer with standard buttons where you might see differences in layout on different platforms but you don't have to use that.
WxPython: Cross-Platform Way to Conform Ok/Cancel Button Order