Module wxuniversal :: Class ComboBoxErg
[hide private]
[frames] | no frames]

Class ComboBoxErg

source code

     object --+                    
              |                    
wx._core.Object --+                
                  |                
wx._core.EvtHandler --+            
                      |            
        wx._core.Window --+        
                          |        
           wx._core.Control --+    
                              |    
                 object --+   |    
                          |   |    
     wx._core.ItemContainer --+    
                              |    
          wx._controls.ComboBox --+
                                  |
                 __Ergaenzung__ --+
                                  |
                                 ComboBoxErg

Klasse, die eine wx.ComboBox mit weiteren Funktionen versieht.

Instance Methods [hide private]
EvtHandler
__init__(self, parent, choices, style, Notizen)
__init__(Window parent, int id=-1, String value=EmptyString, Point pos=DefaultPosition, Size size=DefaultSize, List choices=EmptyList, long style=0, Validator validator=DefaultValidator, String name=ComboBoxNameStr) -> ComboBox
source code
Python-Objekt
gibDbId(self, lfdNr=None)
Mit Aufruf dieser Methode wird dbId des aktuell gewählten Eintrages zurückgegeben.
source code
 
gibWert(self)
Mit Aufruf dieser Methode wird der Wert der ComboBox zurückgegeben.
source code
 
loescheAlles(self)
Mit Aufruf dieser Methode werden alle Einträge aus der wx.ComboBox gelöscht, sowie self.istVomBenutzerGeaendert = False und self.istBenutzerAenderungJetzt gesetzt.
source code
 
nimmWert(self, wert, dbId)
Mit Aufruf dieser Methode wird der Wert der ComboBox übernommen.
source code
Boolean
selektiereWert(self, dbId)
Mit Aufruf dieser Methode wird der Wert der in ComboBox selektiert, dem dbId in clientData zugeordnet ist .
source code

Inherited from wx._controls.ComboBox: CanCopy, CanCut, CanPaste, CanRedo, CanUndo, Copy, Create, Cut, GetCurrentSelection, GetInsertionPoint, GetLastPosition, GetMark, GetValue, IsEditable, Paste, Redo, Remove, Replace, SelectAll, SetEditable, SetInsertionPoint, SetInsertionPointEnd, SetMark, SetStringSelection, SetValue, Undo, __repr__

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, ClientToWindowSize, Close, ConvertDialogPointToPixels, ConvertDialogSizeToPixels, ConvertPixelPointToDialog, ConvertPixelSizeToDialog, DLG_PNT, DLG_SZE, Destroy, DestroyChildren, Disable, DissociateHandle, DragAcceptFiles, Enable, FindWindowById, FindWindowByLabel, 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, WindowToClientSize

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

Inherited from wx._core.EvtHandler (private): _setOORInfo

Inherited from wx._core.Object: GetClassName, IsSameAs

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

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

Inherited from __Ergaenzung__: __ereignisAenderung__, __ereignisKMenueNicht__, __ereignisStatusleiste__, gibIstVomBenutzerGeaendert, nimmIstVomBenutzerGeaendert, nimmWerteStatusleiste

Static Methods [hide private]

Inherited from wx._controls.ComboBox: GetClassDefaultAttributes

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

Class Variables [hide private]

Inherited from __Ergaenzung__: istBenutzerAenderungJetzt, istVomBenutzerGeaendert

Properties [hide private]

Inherited from wx._controls.ComboBox: CurrentSelection, InsertionPoint, LastPosition, Mark, Value, thisown

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 [hide private]

__init__(self, parent, choices, style, Notizen)
(Constructor)

source code 

__init__(Window parent, int id=-1, String value=EmptyString,
    Point pos=DefaultPosition, Size size=DefaultSize,
    List choices=EmptyList, long style=0, Validator validator=DefaultValidator,
    String name=ComboBoxNameStr) -> ComboBox

Constructor, creates and shows a ComboBox control.

Returns: EvtHandler
Overrides: __Ergaenzung__.__init__

gibDbId(self, lfdNr=None)

source code 

Mit Aufruf dieser Methode wird dbId des aktuell gewählten Eintrages zurückgegeben.

Parameters:
  • lfdNr (Ganzzahl) - Es ist die lfd. Nummer des Eintrages anzugeben, dessen dbId zurückgegeben werden soll. Wird None angegeben, wird der aktuell ausgewählte Eintrag verwendet.
Returns: Python-Objekt
self.dbId

nimmWert(self, wert, dbId)

source code 

Mit Aufruf dieser Methode wird der Wert der ComboBox übernommen.

Parameters:
  • wert (Zeichenkette) - Es ist der Wert der ComboBox anzugeben.
  • dbId (Ganzzahl) - Eineindeutige Identifikationsnummer des Eintrages welche in der Datenbank verwendet wird. Einträge mit derselben Identifikationsnummer dürfen mehrfach auftreten.

selektiereWert(self, dbId)

source code 

Mit Aufruf dieser Methode wird der Wert der in ComboBox selektiert, dem dbId in clientData zugeordnet ist .

Parameters:
  • dbId (beliebig (meist Ganzzahl)) - Es ist die Identifikationsnummer in clientData des Eintrages der ComboBox anzugeben, der ausgewählt werden soll.
Returns: Boolean
True wenn der Wert selektiert werden konnte; sonst False.