Package gui :: Package input_elements :: Module sequence :: Class Sequence_window
[hide private]
[frames] | no frames]

Class Sequence_window

source code


The Python sequence object editor window.

Instance Methods [hide private]
EvtHandler
__init__(self, parent=None, name='', seq_type='list', value_type='str', dim=None, titles=None)
Set up the string list editor window.
source code
sequence type
GetValue(self)
Return the values as a sequence of values.
source code
 
SetValue(self, values)
Set up the list values.
source code
 
add_buttons(self, sizer)
Add the buttons to the sizer.
source code
 
add_element(self, event=None)
Append a new row to the list.
source code
 
add_list(self, sizer)
Set up the list control.
source code
 
close(self, event)
Close the window.
source code
 
delete(self, event)
Remove the last item from the list.
source code
 
delete_all(self, event)
Remove all items from the list.
source code

Inherited from wx._windows.Dialog: AddMainButtonId, CanDoLayoutAdaptation, Create, CreateButtonSizer, CreateSeparatedButtonSizer, CreateSeparatedSizer, CreateStdDialogButtonSizer, CreateTextSizer, DoLayoutAdaptation, EndModal, GetAffirmativeId, GetContentWindow, GetEscapeId, GetLayoutAdaptationDone, GetLayoutAdaptationLevel, GetLayoutAdaptationMode, GetMainButtonIds, GetModality, GetParentForModalDialog, GetReturnCode, IsMainButtonId, IsModal, SendWindowModalDialogEvent, SetAffirmativeId, SetEscapeId, SetLayoutAdaptationDone, SetLayoutAdaptationLevel, SetLayoutAdaptationMode, SetReturnCode, ShowModal, ShowWindowModal, __enter__, __exit__

Inherited from wx._windows.Dialog (private): _CreateButtonSizer

Inherited from wx._windows.TopLevelWindow: CenterOnScreen, CentreOnScreen, EnableCloseButton, GetDefaultItem, GetIcon, GetTitle, GetTmpDefaultItem, Iconize, IsActive, IsAlwaysMaximized, IsFullScreen, IsIconized, IsMaximized, MacGetMetalAppearance, MacGetTopLevelWindowRef, MacGetUnifiedAppearance, MacSetMetalAppearance, Maximize, OSXIsModified, OSXSetModified, RequestUserAttention, Restore, SetDefaultItem, SetIcon, SetIcons, SetRepresentedFilename, SetShape, SetTitle, SetTmpDefaultItem, ShowFullScreen, ShowWithoutActivating, __repr__

Inherited from wx._core.Window: AcceptsFocus, AcceptsFocusFromKeyboard, AddChild, AdjustForLayoutDirection, AlwaysShowScrollbars, AssociateHandle, CacheBestSize, CanAcceptFocus, CanAcceptFocusFromKeyboard, CanApplyThemeBorder, CanBeOutsideClientArea, CanScroll, 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, GetMainWindowOfCompositeControl, GetMaxClientSize, GetMaxHeight, GetMaxSize, GetMaxWidth, GetMinClientSize, GetMinHeight, GetMinSize, GetMinWidth, GetName, GetNextSibling, GetParent, GetPopupMenuSelectionFromUser, GetPosition, GetPositionTuple, GetPrevSibling, GetRect, GetScreenPosition, GetScreenPositionTuple, GetScreenRect, GetScrollPos, GetScrollRange, GetScrollThumb, GetSize, GetSizeTuple, GetSizer, GetTextExtent, GetThemeEnabled, GetToolTip, GetToolTipString, GetTopLevelParent, GetUpdateClientRect, GetUpdateRegion, GetValidator, GetVirtualSize, GetVirtualSizeTuple, GetWindowBorderSize, GetWindowStyle, GetWindowStyleFlag, GetWindowVariant, HandleAsNavigationKey, HandleWindowEvent, HasCapture, HasExtraStyle, HasFlag, HasFocus, HasMultiplePages, HasScrollbar, HasTransparentBackground, Hide, HideWithEffect, HitTest, HitTestXY, InformFirstDirection, InheritAttributes, InheritsBackgroundColour, InitDialog, InvalidateBestSize, IsBeingDeleted, IsDoubleBuffered, IsEnabled, IsExposed, IsExposedPoint, IsExposedRect, IsFrozen, IsRetained, IsScrollbarAlwaysShown, IsShown, IsShownOnScreen, IsThisEnabled, IsTopLevel, Layout, LineDown, LineUp, Lower, MakeModal, Move, MoveAfterInTabOrder, MoveBeforeInTabOrder, MoveXY, Navigate, NavigateIn, PageDown, PageUp, PopEventHandler, PopupMenu, PopupMenuXY, PostCreate, PostSizeEvent, PostSizeEventToParent, ProcessWindowEvent, PushEventHandler, Raise, Refresh, RefreshRect, RegisterHotKey, ReleaseMouse, RemoveChild, RemoveEventHandler, Reparent, ScreenToClient, ScreenToClientXY, ScrollLines, ScrollPages, ScrollWindow, SendIdleEvents, SendSizeEvent, SendSizeEventToParent, SetAcceleratorTable, SetAutoLayout, SetBackgroundColour, SetBackgroundStyle, SetBestFittingSize, SetCanFocus, SetCaret, SetClientRect, SetClientSize, SetClientSizeWH, SetConstraints, SetContainingSizer, SetCursor, SetDimensions, SetDoubleBuffered, SetDropTarget, SetEventHandler, SetExtraStyle, SetFocus, SetFocusFromKbd, SetFont, SetForegroundColour, SetHelpText, SetHelpTextForId, SetId, SetInitialSize, SetLabel, SetLayoutDirection, SetMaxClientSize, SetMaxSize, SetMinClientSize, 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, ShowWithEffect, Thaw, ToggleWindowStyle, TransferDataFromWindow, TransferDataToWindow, UnregisterHotKey, UnsetToolTip, Update, UpdateWindowUI, UseBgCol, Validate, WarpPointer, WindowToClientSize

Inherited from wx._core.EvtHandler: AddPendingEvent, Bind, Connect, DeletePendingEvents, Disconnect, GetEvtHandlerEnabled, GetNextHandler, GetPreviousHandler, IsUnlinked, ProcessEvent, ProcessEventLocally, ProcessPendingEvents, QueueEvent, SafelyProcessEvent, SetEvtHandlerEnabled, SetNextHandler, SetPreviousHandler, Unbind, Unlink

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

Inherited from wx._core.Object: GetClassName, IsSameAs

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

Static Methods [hide private]

Inherited from wx._windows.Dialog: EnableLayoutAdaptation, GetClassDefaultAttributes, GetLayoutAdapter, IsLayoutAdaptationEnabled, SetLayoutAdapter

Inherited from wx._windows.TopLevelWindow: GetDefaultSize

Inherited from wx._core.Window: FindFocus, GetCapture, NewControlId, ReleaseControlId, UnreserveControlId

Class Variables [hide private]
  SIZE = (800, 600)
  BORDER = 10
  SIZE_BUTTON = (150, 33)
Properties [hide private]

Inherited from wx._windows.Dialog: AffirmativeId, EscapeId, ReturnCode, thisown

Inherited from wx._windows.TopLevelWindow: DefaultItem, Icon, OSXModified, Title, TmpDefaultItem

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, MaxClientSize, MaxHeight, MaxSize, MaxWidth, MinClientSize, MinHeight, MinSize, MinWidth, Name, Parent, Position, Rect, ScreenPosition, ScreenRect, Shown, Size, Sizer, ThemeEnabled, ToolTip, ToolTipString, 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 object: __class__

Method Details [hide private]

__init__(self, parent=None, name='', seq_type='list', value_type='str', dim=None, titles=None)
(Constructor)

source code 

Set up the string list editor window.

Parameters:
  • parent (wx.Window instance or None) - The parent GUI element.
  • name (str) - The name of the window.
  • seq_type (str) - The type of Python sequence. This should be one of 'list' or 'tuple'.
  • value_type (str) - The type of Python data expected in the sequence. This should be one of 'float', 'int', or 'str'.
  • dim (int or None) - The fixed dimension that the sequence must conform to.
  • titles (list of str) - The titles of each of the elements of the fixed dimension elements.
Returns: EvtHandler
Overrides: object.__init__

GetValue(self)

source code 

Return the values as a sequence of values.

Returns: sequence type
The sequence of values.

SetValue(self, values)

source code 

Set up the list values.

Parameters:
  • values (list of str or None) - The list of values to add to the list.

add_buttons(self, sizer)

source code 

Add the buttons to the sizer.

Parameters:
  • sizer (wx.Sizer instance) - A sizer object.

add_element(self, event=None)

source code 

Append a new row to the list.

Parameters:
  • event (wx event) - The wx event.

add_list(self, sizer)

source code 

Set up the list control.

Parameters:
  • sizer (wx.Sizer instance) - A sizer object.

close(self, event)

source code 

Close the window.

Parameters:
  • event (wx event) - The wx event.

delete(self, event)

source code 

Remove the last item from the list.

Parameters:
  • event (wx event) - The wx event.

delete_all(self, event)

source code 

Remove all items from the list.

Parameters:
  • event (wx event) - The wx event.