This document contains a list of the most common wxPython functions, classes and Window
/ Sizer
methods which need to be changed to a new syntax in Phoenix; it presents the modification in a 2-columns,
space-separated table containing the old wxPython (Classic) name on the left and the new (if it exists)
Phoenix name on the right. I found it impressively useful while porting AGW to Phoenix.
Classic Name |
Phoenix Name |
---|---|
AboutBox |
|
AboutDialogInfo |
|
AcceleratorEntry_Create |
|
ANIHandler |
|
App_CleanUp |
|
ArtProvider_Delete |
|
ArtProvider_GetBitmap |
|
ArtProvider_GetIcon |
|
ArtProvider_GetIconBundle |
|
ArtProvider_GetMessageBoxIcon |
|
ArtProvider_GetMessageBoxIconId |
|
ArtProvider_GetNativeSizeHint |
|
ArtProvider_GetSizeHint |
|
ArtProvider_HasNativeProvider |
|
ArtProvider_Insert |
|
ArtProvider_Pop |
|
ArtProvider_Push |
|
ArtProvider_PushBack |
|
Bitmap.SetBitmapSelected |
|
BitmapFromBits |
|
BitmapFromIcon |
|
BitmapFromImage |
|
BitmapFromXPMData |
|
BMPHandler |
|
BookCtrlBase_GetClassDefaultAttributes |
|
BrushFromBitmap |
|
Button_GetClassDefaultAttributes |
|
Button_GetDefaultSize |
|
CalculateLayoutEvent |
|
Caret_GetBlinkTime |
|
Caret_SetBlinkTime |
|
CheckBox_GetClassDefaultAttributes |
|
Choice_GetClassDefaultAttributes |
|
ChoicebookEvent |
|
Clipboard_Get |
|
ClipboardEvent |
|
ClipboardLocker |
|
Colour.SetFromString |
|
ColourRGB |
|
ComboBox_GetClassDefaultAttributes |
|
CommandLinkButton |
|
ConfigBase_Create |
|
ConfigBase_DontCreateOnDemand |
|
ConfigBase_Get |
|
ConfigBase_Set |
|
Control_Ellipsize |
|
Control_EscapeMnemonics |
|
Control_FindAccelIndex |
|
Control_GetClassDefaultAttributes |
|
Control_GetCompositeControlsDefaultAttributes |
|
Control_RemoveMnemonics |
|
CPPFileSystemHandler |
|
CreateFileTipProvider |
|
CURHandler |
|
CursorFromImage |
|
CustomDataFormat |
|
DateEvent |
|
DatePickerCtrl |
|
DatePickerCtrlBase |
|
DateSpan_Day |
|
DateSpan_Days |
|
DateSpan_Month |
|
DateSpan_Months |
|
DateSpan_Week |
|
DateSpan_Weeks |
|
DateSpan_Year |
|
DateSpan_Years |
|
DateTime_ConvertYearToBC |
|
DateTime_GetAmPmStrings |
|
DateTime_GetBeginDST |
|
DateTime_GetCentury |
|
DateTime_GetCountry |
|
DateTime_GetCurrentMonth |
|
DateTime_GetCurrentYear |
|
DateTime_GetEndDST |
|
DateTime_GetEnglishMonthName |
|
DateTime_GetEnglishWeekDayName |
|
DateTime_GetMonthName |
|
DateTime_GetNumberOfDaysInMonth |
|
DateTime_GetNumberOfDaysinYear |
|
DateTime_GetWeekDayName |
|
DateTime_IsDSTApplicable |
|
DateTime_IsLeapYear |
|
DateTime_IsWestEuropeanCountry |
|
DateTime_Now |
|
DateTime_SetCountry |
|
DateTime_SetToWeekOfYear |
|
DateTime_Today |
|
DateTime_UNow |
|
DateTimeFromDateTime |
|
Dialog_EnableLayoutAdaptation |
|
Dialog_GetClassDefaultAttributes |
|
Dialog_GetLayoutAdapter |
|
Dialog_IsLayoutAdaptationEnabled |
|
Dialog_SetLayoutAdapter |
|
DirItemData |
|
Display_GetCount |
|
Display_GetFromPoint |
|
Display_GetFromWindow |
|
DragIcon |
|
DragListItem |
|
DragString |
|
DragTreeItem |
|
DROP_ICON |
|
EmptyBitmap |
|
EmptyIcon |
|
EmptyImage |
|
EncodingConverter |
|
EncodingConverter_CanConvert |
|
EncodingConverter_GetAllEquivalents |
|
EncodingConverter_GetPlatformEquivalents |
|
EventLoopBase_GetActive |
|
EventLoopBase_SetActive |
|
EventProcessInHandlerOnly |
|
EVT_COMMAND |
|
EVT_COMMAND_RANGE |
|
ExpandEnvVars |
|
FFontFromPixelSize |
|
FileConfig_GetGlobalFileName |
|
FileConfig_GetLocalFileName |
|
FileSystem_AddHandler |
|
FileSystem_CleanUpHandlers |
|
FileSystem_FileNameToURL |
|
FileSystem_RemoveHandler |
|
FileSystem_URLToFileName |
|
FileSystemHandler_GetAnchor |
|
FileSystemHandler_GetLeftLocation |
|
FileSystemHandler_GetMimeTypeFromExt |
|
FileSystemHandler_GetProtocol |
|
FileSystemHandler_GetRightLocation |
|
FileType_ExpandCommand |
|
FileTypeInfoSequence |
|
FindWindowById |
|
Font2 |
|
Font_AdjustToSymbolicSize |
|
Font_GetDefaultEncoding |
|
Font_SetDefaultEncoding |
|
FontEnumerator_GetEncodings |
|
FontEnumerator_GetFacenames |
|
FontEnumerator_IsValidFacename |
|
FontFromNativeInfo |
|
FontFromNativeInfoString |
|
FontFromPixelSize |
|
FontMapper_Get |
|
FontMapper_GetDefaultConfigPath |
|
FontMapper_GetEncoding |
|
FontMapper_GetEncodingDescription |
|
FontMapper_GetEncodingFromName |
|
FontMapper_GetEncodingName |
|
FontMapper_GetSupportedEncodingsCount |
|
FontMapper_Set |
|
Frame_GetClassDefaultAttributes |
|
FutureCall |
|
Gauge_GetClassDefaultAttributes |
|
GBSizerItemSizer |
|
GBSizerItemSpacer |
|
GBSizerItemWindow |
|
GDIObjListBase |
|
GenericFindWindowAtPoint |
|
GetAccelFromString |
|
GetCurrentId |
|
GetCurrentTime |
|
GetDefaultPyEncoding |
|
GetDisplayDepth |
|
GetFreeMemory |
|
GetLocale |
|
GetLocalTime |
|
GetLocalTimeMillis |
|
GetNativeFontEncoding |
|
GetNumberFromUser |
|
GetPasswordFromUser |
|
GetSingleChoiceIndex |
|
GetStockHelpString |
|
GetStockLabel |
|
GetTextFromUser |
|
GetUTCTime |
|
GetXDisplay |
|
GIFHandler |
|
GraphicsContext_Create |
|
GraphicsContext_CreateFromNative |
|
GraphicsContext_CreateFromNativeWindow |
|
GraphicsContext_CreateMeasuringContext |
|
GraphicsRenderer_GetCairoRenderer |
|
GraphicsRenderer_GetDefaultRenderer |
|
HelpProvider_Get |
|
HelpProvider_Set |
|
HtmlListBox |
|
HyperlinkCtrl |
|
HyperlinkEvent |
|
ICOHandler |
|
IconBundleFromFile |
|
IconBundleFromIcon |
|
IconBundleFromStream |
|
IconFromBitmap |
|
IconFromLocation |
|
IconFromXPMData |
|
IdleEvent_GetMode |
|
IdleEvent_SetMode |
|
Image_AddHandler |
|
Image_CanRead |
|
Image_CanReadStream |
|
Image_GetHandlers |
|
Image_GetImageCount |
|
Image_GetImageExtWildcard |
|
Image_HSVtoRGB |
|
Image_HSVValue |
|
Image_InsertHandler |
|
Image_RemoveHandler |
|
Image_RGBtoHSV |
|
Image_RGBValue |
|
ImageFromMime |
|
ImageFromStream |
|
ImageFromStreamMime |
|
ImageHistogram_MakeKey |
|
IsStockID |
|
IsStockLabel |
|
Joystick |
|
JPEGHandler |
|
KeyEvent.m_altDown |
|
KeyEvent.m_controlDown |
|
KeyEvent.m_keyCode |
|
KeyEvent.m_metaDown |
|
KeyEvent.m_shiftDown |
|
KeyEvent.m_x |
|
KeyEvent.m_y |
|
LayoutAlgorithm |
|
ListbookEvent |
|
ListBox_GetClassDefaultAttributes |
|
ListCtrl_GetClassDefaultAttributes |
|
ListCtrl_HasColumnOrderSupport |
|
ListEvent.m_code |
|
ListEvent.m_col |
|
ListEvent.m_item |
|
ListEvent.m_itemIndex |
|
ListEvent.m_oldItemIndex |
|
ListEvent.m_pointDrag |
|
ListItem.m_col |
|
ListItem.m_data |
|
ListItem.m_format |
|
ListItem.m_image |
|
ListItem.m_itemId |
|
ListItem.m_mask |
|
ListItem.m_state |
|
ListItem.m_stateMask |
|
ListItem.m_text |
|
ListItem.m_width |
|
Locale_AddCatalogLookupPathPrefix |
|
Locale_AddLanguage |
|
Locale_FindLanguageInfo |
|
Locale_GetInfo |
|
Locale_GetLanguageCanonicalName |
|
Locale_GetLanguageInfo |
|
Locale_GetLanguageName |
|
Locale_GetSystemEncoding |
|
Locale_GetSystemEncodingName |
|
Locale_GetSystemLanguage |
|
Locale_IsAvailable |
|
Log_AddTraceMask |
|
Log_ClearTraceMasks |
|
Log_DoCreateOnDemand |
|
Log_DontCreateOnDemand |
|
Log_EnableLogging |
|
Log_FlushActive |
|
Log_GetActiveTarget |
|
Log_GetComponentLevel |
|
Log_GetLogLevel |
|
Log_GetRepetitionCounting |
|
Log_GetTimestamp |
|
Log_GetTraceMask |
|
Log_GetTraceMasks |
|
Log_GetVerbose |
|
Log_IsAllowedTraceMask |
|
Log_IsEnabled |
|
Log_IsLevelEnabled |
|
Log_RemoveTraceMask |
|
Log_Resume |
|
Log_SetActiveTarget |
|
Log_SetComponentLevel |
|
Log_SetLogLevel |
|
Log_SetRepetitionCounting |
|
Log_SetTimestamp |
|
Log_SetTraceMask |
|
Log_SetVerbose |
|
Log_Suspend |
|
Log_TimeStamp |
|
LogInfo |
|
LogStatusFrame |
|
LogTrace |
|
MaskColour |
|
MemoryDCFromDC |
|
MemoryFSHandler_AddFile |
|
MemoryFSHandler_AddFileWithMimeType |
|
MemoryFSHandler_RemoveFile |
|
MenuBar_GetAutoWindowMenu |
|
MenuBar_MacSetCommonMenuBar |
|
MenuBar_SetAutoWindowMenu |
|
MenuItem_GetDefaultMarginWidth |
|
MenuItem_GetLabelText |
|
MetaFile |
|
MetafileDataObject |
|
MetaFileDC |
|
MimeTypesManager_IsOfType |
|
ModalEventLoop |
|
MutexGuiEnter |
|
MutexGuiLeave |
|
MutexGuiLocker |
|
NamedColour |
|
NativeEncodingInfo |
|
NcPaintEvent |
|
Notebook_GetClassDefaultAttributes |
|
NotebookEvent |
|
NotebookPage |
|
NotificationMessage |
|
NullFileTypeInfo |
|
Panel_GetClassDefaultAttributes |
|
PCXHandler |
|
PlatformInformation_GetOperatingSystemDirectory |
|
PNGHandler |
|
PNMHandler |
|
Point2DCopy |
|
Point2DFromPoint |
|
PreBitmapButton |
|
PreButton |
|
PreCheckBox |
|
PreCheckListBox |
|
PreChoice |
|
PreChoicebook |
|
PreCollapsiblePane |
|
PreColourPickerCtrl |
|
PreComboBox |
|
PreCommandLinkButton |
|
PreControl |
|
PreDatePickerCtrl |
|
PreDialog |
|
PreDirFilterListCtrl |
|
PreDirPickerCtrl |
|
PreFileCtrl |
|
PreFilePickerCtrl |
|
PreFindReplaceDialog |
|
PreFontPickerCtrl |
|
PreFrame |
|
PreGauge |
|
PreGenericDirCtrl |
|
PreHScrolledWindow |
|
PreHtmlListBox |
|
PreHVScrolledWindow |
|
PreHyperlinkCtrl |
|
PreInfoBar |
|
PreListbook |
|
PreListBox |
|
PreListCtrl |
|
PreListView |
|
PreMDIChildFrame |
|
PreMDIClientWindow |
|
PreMDIParentFrame |
|
PreMiniFrame |
|
PreNotebook |
|
PrePanel |
|
PrePopupTransientWindow |
|
PrePopupWindow |
|
PrePyAxBaseWindow |
|
PrePyControl |
|
PrePyPanel |
|
PrePyPickerBase |
|
PrePyScrolledWindow |
|
PrePyWindow |
|
PreRadioBox |
|
PreRadioButton |
|
PreSashLayoutWindow |
|
PreSashWindow |
|
PreScrollBar |
|
PreScrolledWindow |
|
PreSearchCtrl |
|
PreSimpleHtmlListBox |
|
PreSingleInstanceChecker |
|
PreSlider |
|
PreSpinButton |
|
PreSpinCtrl |
|
PreSpinCtrlDouble |
|
PreSplitterWindow |
|
PreStaticBitmap |
|
PreStaticBox |
|
PreStaticLine |
|
PreStaticText |
|
PreStatusBar |
|
PreTextCtrl |
|
PreToggleButton |
|
PreToolBar |
|
PreToolbook |
|
PreTreebook |
|
PreTreeCtrl |
|
PreVListBox |
|
PreVScrolledWindow |
|
PreWindow |
|
Printer_GetLastError |
|
Process_Exists |
|
Process_Kill |
|
Process_Open |
|
PseudoDC |
|
PyApp_GetComCtl32Version |
|
PyApp_GetMacAboutMenuItemId |
|
PyApp_GetMacExitMenuItemId |
|
PyApp_GetMacHelpMenuTitleName |
|
PyApp_GetMacPreferencesMenuItemId |
|
PyApp_GetMacSupportPCMenuShortcuts |
|
PyApp_GetShell32Version |
|
PyApp_GetTraitsIfExists |
|
PyApp_IsDisplayAvailable |
|
PyApp_IsMainLoopRunning |
|
PyApp_SetMacAboutMenuItemId |
|
PyApp_SetMacExitMenuItemId |
|
PyApp_SetMacHelpMenuTitleName |
|
PyApp_SetMacPreferencesMenuItemId |
|
PyApp_SetMacSupportPCMenuShortcuts |
|
PyAxBaseWindow_FromHWND |
|
PyBitmapDataObject |
|
PyControl |
|
PyDataObjectSimple |
|
PyDeadObjectError |
RuntimeError |
PyDropTarget |
|
PyEvtHandler |
|
PyImageHandler |
|
PyLocale |
|
PyLog |
|
PyPanel |
|
PyPickerBase |
|
PyPreviewControlBar |
|
PyPreviewFrame |
|
PyPrintPreview |
|
PyScrolledWindow |
|
PySimpleApp |
|
PyTextDataObject |
|
PyTimer |
|
PyTipProvider |
|
PyValidator |
|
PyWindow |
|
Quantize |
|
Quantize_Quantize |
|
QueryLayoutInfoEvent |
|
RadioBox_GetClassDefaultAttributes |
|
RadioButton_GetClassDefaultAttributes |
|
RectPP |
|
RectPS |
|
RectS |
|
Rect.OffsetXY |
|
RegionFromBitmap |
|
RegionFromBitmapColour |
|
RegionFromPoints |
|
RendererNative_Get |
|
RendererNative_GetDefault |
|
RendererNative_GetGeneric |
|
RendererNative_Set |
|
RendererVersion_IsCompatible |
|
SashEvent |
|
SashLayoutWindow |
|
SashWindow |
|
ScrollBar_GetClassDefaultAttributes |
|
ScrolledWindow_GetClassDefaultAttributes |
|
ScrollHelper |
|
SearchCtrlBase |
|
SetCursor |
|
SetDefaultPyEncoding |
|
SetBitmapSelected |
|
ShowTip |
|
SimpleHtmlListBox |
|
SizerFlags_GetDefaultBorder |
|
SizerItemSizer |
|
SizerItemSpacer |
|
SizerItemWindow |
|
Slider_GetClassDefaultAttributes |
|
Sound |
|
Sound_PlaySound |
|
Sound_Stop |
|
SoundFromData |
|
SpinButton_GetClassDefaultAttributes |
|
SpinCtrl_GetClassDefaultAttributes |
|
SplashScreen |
|
SplashScreenWindow |
|
SplitterWindow.SetSashSize |
|
SplitterWindow_GetClassDefaultAttributes |
|
StandardDialogLayoutAdapter |
|
StandardDialogLayoutAdapter_DoFitWithScrolling |
|
StandardDialogLayoutAdapter_DoMustScroll |
|
StandardDialogLayoutAdapter_DoReparentControls |
|
StandardPaths_Get |
|
StaticBitmap_GetClassDefaultAttributes |
|
StaticBox_GetClassDefaultAttributes |
|
StaticLine_GetClassDefaultAttributes |
|
StaticLine_GetDefaultSize |
|
StaticText_GetClassDefaultAttributes |
|
StatusBar_GetClassDefaultAttributes |
|
StockCursor |
|
StockGDI_DeleteAll |
|
StockGDI_GetBrush |
|
StockGDI_GetColour |
|
StockGDI_GetCursor |
|
StockGDI_GetPen |
|
StockGDI_instance |
|
StopWatch |
|
StyledTextCtrl.SetUseAntiAliasing |
|
SystemOptions_GetOption |
|
SystemOptions_GetOptionInt |
|
SystemOptions_HasOption |
|
SystemOptions_IsFalse |
|
SystemOptions_SetOption |
|
SystemOptions_SetOptionInt |
|
SystemSettings_GetColour |
|
SystemSettings_GetFont |
|
SystemSettings_GetMetric |
|
SystemSettings_GetScreenType |
|
SystemSettings_HasFeature |
|
SystemSettings_SetScreenType |
|
TaskBarIcon |
|
TaskBarIcon_IsAvailable |
|
TaskBarIconEvent |
|
TestFontEncoding |
|
TextAreaBase |
|
TextAttr_BitlistsEqPartial |
|
TextAttr_Combine |
|
TextAttr_CombineBitlists |
|
TextAttr_RemoveStyle |
|
TextAttr_SplitParaCharStyles |
|
TextAttr_TabsEq |
|
TextCtrl_GetClassDefaultAttributes |
|
TextCtrlBase |
|
TextCtrlIface |
|
TextEntryBase |
|
TextUrlEvent |
|
TGAHandler |
|
Thread_IsMain |
|
ThreadEvent |
|
TIFFHandler |
|
TimeSpan_Day |
|
TimeSpan_Days |
|
TimeSpan_Hour |
|
TimeSpan_Hours |
|
TimeSpan_Millisecond |
|
TimeSpan_Milliseconds |
|
TimeSpan_Minute |
|
TimeSpan_Minutes |
|
TimeSpan_Second |
|
TimeSpan_Seconds |
|
TimeSpan_Week |
|
TimeSpan_Weeks |
|
TipProvider |
|
ToggleButton_GetClassDefaultAttributes |
|
ToolBar_GetClassDefaultAttributes |
|
ToolbookEvent |
|
ToolTip_Enable |
|
ToolTip_SetAutoPop |
|
ToolTip_SetDelay |
|
ToolTip_SetMaxWidth |
|
ToolTip_SetReshow |
|
TopLevelWindow_GetDefaultSize |
|
Trap |
|
TreebookEvent |
|
TreeCtrl_GetClassDefaultAttributes |
|
TreeItemData |
|
UpdateUIEvent_CanUpdate |
|
UpdateUIEvent_GetMode |
|
UpdateUIEvent_GetUpdateInterval |
|
UpdateUIEvent_ResetUpdateTime |
|
UpdateUIEvent_SetMode |
|
UpdateUIEvent_SetUpdateInterval |
|
Validator_IsSilent |
|
Validator_SetBellOnError |
|
Validator_SuppressBellOnError |
|
WakeUpMainThread |
|
Window_FindFocus |
|
Window_FromHWND |
|
Window_GetCapture |
|
Window_GetClassDefaultAttributes |
|
Window_NewControlId |
|
Window_UnreserveControlId |
|
XPMHandler |
|
YieldIfNeeded |
|
wx.DC
Modifications¶Classic Name |
Phoenix Name |
---|---|
BeginDrawing |
|
BlitPointSize |
|
CalcBoundingBoxPoint |
|
CrossHairPoint |
|
DrawArcPoint |
|
DrawBitmapPoint |
|
DrawCheckMarkRect |
|
DrawCirclePoint |
|
DrawEllipsePointSize |
|
DrawEllipseRect |
|
DrawEllipticArcPointSize |
|
DrawIconPoint |
|
DrawLinePoint |
|
DrawPointPoint |
|
DrawRectanglePointSize |
|
DrawRectangleRect |
|
DrawRotatedTextPoint |
|
DrawRoundedRectanglePointSize |
|
DrawRoundedRectangleRect |
|
DrawTextPoint |
|
EndDrawing |
|
FloodFillPoint |
|
GetDeviceOriginTuple |
|
GetImpl |
|
GetLogicalOriginTuple |
|
GetMultiLineTextExtent |
|
GetOptimization |
|
GetPixelPoint |
|
GetResolution |
|
GetSizeMMTuple |
|
Ok |
|
SetClippingRect |
|
SetClippingRegionAsRegion |
|
SetClippingRegionPointSize |
|
SetDeviceOriginPoint |
|
SetLogicalOriginPoint |
|
SetOptimization |
|
StretchBlitPointSize |
wx.Window
Modifications¶Classic Name |
Phoenix Name |
---|---|
ClientToScreenXY |
|
ConvertDialogPointToPixels |
|
ConvertDialogSizeToPixels |
|
GetAdjustedBestSize |
|
GetBestFittingSize |
|
GetBestSizeTuple |
|
GetClientSizeTuple |
|
GetScreenPositionTuple |
|
GetSizeTuple |
|
GetToolTipString |
|
HitTestXY |
|
IsExposedPoint |
|
IsExposedRect |
|
MakeModal |
|
PopupMenuXY |
|
ScreenToClientXY |
|
SetBestFittingSize |
|
SetClientSizeWH |
|
SetDimensions |
|
SetHelpTextForId |
|
SetSizeHintsSz |
|
SetToolTipString |
|
SetVirtualSizeHints |
|
SetVirtualSizeHintsSz |
|
wx.Sizer
Modifications¶Classic Name |
Phoenix Name |
---|---|
AddF |
|
AddItem |
|
AddSizer |
|
AddWindow |
|
DeleteWindows |
|
GetItemIndex |
|
GetMinSizeTuple |
|
GetPositionTuple |
|
InsertF |
|
InsertItem |
|
InsertSizer |
|
InsertWindow |
|
PrependF |
|
PrependItem |
|
PrependSizer |
|
PrependWindow |
|
RemovePos |
|
RemoveSizer |
|
RemoveWindow |
Classic Name |
Phoenix Name |
---|---|
wx.lib.buttonpanel |
|
wx.lib.customtreectrl |
|
wx.lib.flatnotebook |
|
wx.lib.foldpanelbar |
|
wx.lib.hyperlink |
|
wx.lib.grids |
|
wx.lib.pyshell |
|
wx.lib.rightalign |
|
wx.lib.shell |
|
wx.lib.splashscreen |
|
wx.lib.wxPlotCanvas |
|
Classic Name |
Phoenix Name |
---|---|
wx.calendar.CalendarCtrl |
|
wx.animate.Animation |
|
wx.animate.AnimationCtrl |
|
wx.combo.OwnerDrawnComboBox |
|
wx.gizmos.EditableListBox |
|
wx.gizmos.TreeListCtrl |
|
wx.AboutBox |
|
wx.AboutDialogInfo |
|
wx.DatePickerCtrl |
|
wx.GenericDatePickerCtrl |
|
wx.TaskBarIcon |
|
wx.SplashScreen |
|
wx.wizard.Wizard |