Package peppy :: Package i18n :: Class LangListCombo
[frames] | no frames]

Class LangListCombo

     object --+                            
              |                            
wx._core.Object --+                        
                  |                        
wx._core.EvtHandler --+                    
                      |                    
        wx._core.Window --+                
                          |                
           wx._core.Control --+            
                              |            
             wx.combo.ComboCtrl --+        
                                  |        
                     object --+   |        
                              |   |        
         wx._core.ItemContainer --+        
                                  |        
        wx.combo.OwnerDrawnComboBox --+    
                                      |    
                wx.combo.BitmapComboBox --+
                                          |
                                         LangListCombo

Combines a langlist and a BitmapComboBox

Borrowed and modified from Editra.

Instance Methods
EvtHandler
__init__(self, parent, id=-1, default=None, langs=[])
Creates a combobox with a list of all translations for the editor as well as displaying the countries flag next to the item in the list.
 
setCatalog(self, locale)
 
getCatalog(self)

Inherited from wx.combo.BitmapComboBox: Append, Create, GetBitmapSize, GetItemBitmap, Insert, SetItemBitmap, __repr__

Inherited from wx.combo.OwnerDrawnComboBox: GetWidestItem, GetWidestItemWidth, OnDrawBackground, OnDrawItem, OnMeasureItem, OnMeasureItemWidth, SetMark

Inherited from wx.combo.ComboCtrl: AnimateShow, Copy, Cut, DoShowPopup, EnablePopupAnimation, GetBitmapDisabled, GetBitmapHover, GetBitmapNormal, GetBitmapPressed, GetButton, GetButtonSize, GetCustomPaintWidth, GetInsertionPoint, GetInternalFlags, GetLastPosition, GetMainWindowOfCompositeControl, GetPopupControl, GetPopupWindow, GetPopupWindowState, GetTextCtrl, GetTextIndent, GetTextRect, GetValue, HidePopup, IsCreated, IsKeyPopupToggle, IsPopupShown, IsPopupWindowState, OnButtonClick, OnPopupDismiss, Paste, PrepareBackground, Remove, Replace, SetButtonBitmaps, SetButtonPosition, SetCtrlMainWnd, SetCustomPaintWidth, SetInsertionPoint, SetInsertionPointEnd, SetPopupAnchor, SetPopupControl, SetPopupExtents, SetPopupMaxHeight, SetPopupMinWidth, SetText, SetTextIndent, SetValue, SetValueWithEvent, ShouldDrawFocus, ShowPopup, Undo, UseAltPopupWindow

Inherited from wx._core.Control: Command, GetAlignment, GetLabelText

Inherited from wx._core.Window: AcceptsFocus, AcceptsFocusFromKeyboard, AddChild, AdjustForLayoutDirection, AssociateHandle, CacheBestSize, CanSetTransparent, CaptureMouse, Center, CenterOnParent, Centre, CentreOnParent, ClearBackground, ClientToScreen, ClientToScreenXY, Close, ConvertDialogPointToPixels, ConvertDialogSizeToPixels, ConvertPixelPointToDialog, ConvertPixelSizeToDialog, DLG_PNT, DLG_SZE, Destroy, DestroyChildren, Disable, DissociateHandle, DragAcceptFiles, Enable, FindWindowById, FindWindowByName, Fit, FitInside, Freeze, GetAcceleratorTable, GetAdjustedBestSize, GetAutoLayout, GetBackgroundColour, GetBackgroundStyle, GetBestFittingSize, GetBestSize, GetBestSizeTuple, GetBestVirtualSize, GetBorder, GetCaret, GetCharHeight, GetCharWidth, GetChildren, GetClientAreaOrigin, GetClientRect, GetClientSize, GetClientSizeTuple, GetConstraints, GetContainingSizer, GetCursor, GetDefaultAttributes, GetDropTarget, GetEffectiveMinSize, GetEventHandler, GetExtraStyle, GetFont, GetForegroundColour, GetFullTextExtent, GetGrandParent, GetGtkWidget, GetHandle, GetHelpText, GetHelpTextAtPoint, GetId, GetLabel, GetLayoutDirection, GetMaxHeight, GetMaxSize, GetMaxWidth, GetMinHeight, GetMinSize, GetMinWidth, GetName, GetParent, GetPosition, GetPositionTuple, GetRect, GetScreenPosition, GetScreenPositionTuple, GetScreenRect, GetScrollPos, GetScrollRange, GetScrollThumb, GetSize, GetSizeTuple, GetSizer, GetTextExtent, GetThemeEnabled, GetToolTip, GetTopLevelParent, GetUpdateClientRect, GetUpdateRegion, GetValidator, GetVirtualSize, GetVirtualSizeTuple, GetWindowBorderSize, GetWindowStyle, GetWindowStyleFlag, GetWindowVariant, HasCapture, HasFlag, HasMultiplePages, HasScrollbar, HasTransparentBackground, Hide, HitTest, HitTestXY, InheritAttributes, InheritsBackgroundColour, InitDialog, InvalidateBestSize, IsBeingDeleted, IsDoubleBuffered, IsEnabled, IsExposed, IsExposedPoint, IsExposedRect, IsFrozen, IsRetained, IsShown, IsShownOnScreen, IsTopLevel, Layout, LineDown, LineUp, Lower, MakeModal, Move, MoveAfterInTabOrder, MoveBeforeInTabOrder, MoveXY, Navigate, PageDown, PageUp, PopEventHandler, PopupMenu, PopupMenuXY, PostCreate, PrepareDC, PushEventHandler, Raise, Refresh, RefreshRect, RegisterHotKey, ReleaseMouse, RemoveChild, RemoveEventHandler, Reparent, ScreenToClient, ScreenToClientXY, ScrollLines, ScrollPages, ScrollWindow, SendSizeEvent, SetAcceleratorTable, SetAutoLayout, SetBackgroundColour, SetBackgroundStyle, SetBestFittingSize, SetCaret, SetClientRect, SetClientSize, SetClientSizeWH, SetConstraints, SetContainingSizer, SetCursor, SetDimensions, SetDoubleBuffered, SetDropTarget, SetEventHandler, SetExtraStyle, SetFocus, SetFocusFromKbd, SetFont, SetForegroundColour, SetHelpText, SetHelpTextForId, SetId, SetInitialSize, SetLabel, SetLayoutDirection, SetMaxSize, SetMinSize, SetName, SetOwnBackgroundColour, SetOwnFont, SetOwnForegroundColour, SetPosition, SetRect, SetScrollPos, SetScrollbar, SetSize, SetSizeHints, SetSizeHintsSz, SetSizeWH, SetSizer, SetSizerAndFit, SetThemeEnabled, SetToolTip, SetToolTipString, SetTransparent, SetValidator, SetVirtualSize, SetVirtualSizeHints, SetVirtualSizeHintsSz, SetVirtualSizeWH, SetWindowStyle, SetWindowStyleFlag, SetWindowVariant, ShouldInheritColours, Show, Thaw, ToggleWindowStyle, TransferDataFromWindow, TransferDataToWindow, UnregisterHotKey, Update, UpdateWindowUI, UseBgCol, Validate, WarpPointer

Inherited from wx._core.EvtHandler: AddPendingEvent, Bind, Connect, Disconnect, GetEvtHandlerEnabled, GetNextHandler, GetPreviousHandler, ProcessEvent, ProcessPendingEvents, SetEvtHandlerEnabled, SetNextHandler, SetPreviousHandler, Unbind

Inherited from wx._core.Object: GetClassName, IsSameAs

Inherited from wx._core.ItemContainer: AppendItems, Clear, Delete, FindString, GetClientData, GetCount, GetItems, GetSelection, GetString, GetStringSelection, GetStrings, IsEmpty, Select, SetClientData, SetItems, SetSelection, SetString, SetStringSelection

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__

Static Methods

Inherited from wx.combo.ComboCtrl: GetFeatures

Inherited from wx._core.Control: GetClassDefaultAttributes

Inherited from wx._core.Window: FindFocus, GetCapture, NewControlId, NextControlId, PrevControlId

Class Variables

Inherited from wx.combo.ComboCtrl: Animating, CanDeferShow, Hidden, ShowAbove, ShowBelow, Visible

Properties

Inherited from wx.combo.BitmapComboBox: thisown

Inherited from wx.combo.ComboCtrl: BitmapDisabled, BitmapHover, BitmapNormal, BitmapPressed, Button, ButtonSize, CustomPaintWidth, InsertionPoint, PopupControl, PopupWindow, PopupWindowState, TextCtrl, TextIndent, TextRect, Value

Inherited from wx._core.Control: Alignment, LabelText

Inherited from wx._core.Window: AcceleratorTable, AutoLayout, BackgroundColour, BackgroundStyle, BestSize, BestVirtualSize, Border, Caret, CharHeight, CharWidth, Children, ClientAreaOrigin, ClientRect, ClientSize, Constraints, ContainingSizer, Cursor, DefaultAttributes, DropTarget, EffectiveMinSize, Enabled, EventHandler, ExtraStyle, Font, ForegroundColour, GrandParent, GtkWidget, Handle, HelpText, Id, Label, LayoutDirection, MaxHeight, MaxSize, MaxWidth, MinHeight, MinSize, MinWidth, Name, Parent, Position, Rect, ScreenPosition, ScreenRect, Shown, Size, Sizer, ThemeEnabled, ToolTip, TopLevel, TopLevelParent, UpdateClientRect, UpdateRegion, Validator, VirtualSize, WindowStyle, WindowStyleFlag, WindowVariant

Inherited from wx._core.EvtHandler: EvtHandlerEnabled, NextHandler, PreviousHandler

Inherited from wx._core.Object: ClassName

Inherited from wx._core.ItemContainer: Count, Items, Selection, StringSelection, Strings

Inherited from object: __class__

Method Details

__init__(self, parent, id=-1, default=None, langs=[])
(Constructor)

 

Creates a combobox with a list of all translations for the editor as well as displaying the countries flag next to the item in the list.

Parameters:
  • default - The default item to show in the combo box
Returns: EvtHandler
Overrides: object.__init__