# This file was created automatically by SWIG.
# Don't modify this file, modify the SWIG interface instead.
-import _core_
+import __core
+
+def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
+ if (name == "this"):
+ if isinstance(value, class_type):
+ self.__dict__[name] = value.this
+ if hasattr(value,"thisown"): self.__dict__["thisown"] = value.thisown
+ del value.thisown
+ return
+ method = class_type.__swig_setmethods__.get(name,None)
+ if method: return method(self,value)
+ if (not static) or hasattr(self,name) or (name == "thisown"):
+ self.__dict__[name] = value
+ else:
+ raise AttributeError("You cannot add attributes to %s" % self)
+
+def _swig_setattr(self,class_type,name,value):
+ return _swig_setattr_nondynamic(self,class_type,name,value,0)
+
+def _swig_getattr(self,class_type,name):
+ method = class_type.__swig_getmethods__.get(name,None)
+ if method: return method(self)
+ raise AttributeError,name
+
+import types
+try:
+ _object = types.ObjectType
+ _newclass = 1
+except AttributeError:
+ class _object : pass
+ _newclass = 0
+del types
+
+
+def _swig_setattr_nondynamic_method(set):
+ def set_attr(self,name,value):
+ if hasattr(self,name) or (name in ("this", "thisown")):
+ set(self,name,value)
+ else:
+ raise AttributeError("You cannot add attributes to %s" % self)
+ return set_attr
+
#// Give a reference to the dictionary of this module to the C++ extension
#// code.
#----------------------------------------------------------------------------
-NOT_FOUND = _core_.NOT_FOUND
-VSCROLL = _core_.VSCROLL
-HSCROLL = _core_.HSCROLL
-CAPTION = _core_.CAPTION
-DOUBLE_BORDER = _core_.DOUBLE_BORDER
-SUNKEN_BORDER = _core_.SUNKEN_BORDER
-RAISED_BORDER = _core_.RAISED_BORDER
-BORDER = _core_.BORDER
-SIMPLE_BORDER = _core_.SIMPLE_BORDER
-STATIC_BORDER = _core_.STATIC_BORDER
-TRANSPARENT_WINDOW = _core_.TRANSPARENT_WINDOW
-NO_BORDER = _core_.NO_BORDER
-TAB_TRAVERSAL = _core_.TAB_TRAVERSAL
-WANTS_CHARS = _core_.WANTS_CHARS
-POPUP_WINDOW = _core_.POPUP_WINDOW
-CENTER_FRAME = _core_.CENTER_FRAME
-CENTRE_ON_SCREEN = _core_.CENTRE_ON_SCREEN
-CENTER_ON_SCREEN = _core_.CENTER_ON_SCREEN
-ED_CLIENT_MARGIN = _core_.ED_CLIENT_MARGIN
-ED_BUTTONS_BOTTOM = _core_.ED_BUTTONS_BOTTOM
-ED_BUTTONS_RIGHT = _core_.ED_BUTTONS_RIGHT
-ED_STATIC_LINE = _core_.ED_STATIC_LINE
-EXT_DIALOG_STYLE = _core_.EXT_DIALOG_STYLE
-CLIP_CHILDREN = _core_.CLIP_CHILDREN
-CLIP_SIBLINGS = _core_.CLIP_SIBLINGS
-ALWAYS_SHOW_SB = _core_.ALWAYS_SHOW_SB
-RETAINED = _core_.RETAINED
-BACKINGSTORE = _core_.BACKINGSTORE
-COLOURED = _core_.COLOURED
-FIXED_LENGTH = _core_.FIXED_LENGTH
-LB_NEEDED_SB = _core_.LB_NEEDED_SB
-LB_ALWAYS_SB = _core_.LB_ALWAYS_SB
-LB_SORT = _core_.LB_SORT
-LB_SINGLE = _core_.LB_SINGLE
-LB_MULTIPLE = _core_.LB_MULTIPLE
-LB_EXTENDED = _core_.LB_EXTENDED
-LB_OWNERDRAW = _core_.LB_OWNERDRAW
-LB_HSCROLL = _core_.LB_HSCROLL
-PROCESS_ENTER = _core_.PROCESS_ENTER
-PASSWORD = _core_.PASSWORD
-CB_SIMPLE = _core_.CB_SIMPLE
-CB_DROPDOWN = _core_.CB_DROPDOWN
-CB_SORT = _core_.CB_SORT
-CB_READONLY = _core_.CB_READONLY
-RA_HORIZONTAL = _core_.RA_HORIZONTAL
-RA_VERTICAL = _core_.RA_VERTICAL
-RA_SPECIFY_ROWS = _core_.RA_SPECIFY_ROWS
-RA_SPECIFY_COLS = _core_.RA_SPECIFY_COLS
-RB_GROUP = _core_.RB_GROUP
-RB_SINGLE = _core_.RB_SINGLE
-SL_HORIZONTAL = _core_.SL_HORIZONTAL
-SL_VERTICAL = _core_.SL_VERTICAL
-SL_AUTOTICKS = _core_.SL_AUTOTICKS
-SL_LABELS = _core_.SL_LABELS
-SL_LEFT = _core_.SL_LEFT
-SL_TOP = _core_.SL_TOP
-SL_RIGHT = _core_.SL_RIGHT
-SL_BOTTOM = _core_.SL_BOTTOM
-SL_BOTH = _core_.SL_BOTH
-SL_SELRANGE = _core_.SL_SELRANGE
-SB_HORIZONTAL = _core_.SB_HORIZONTAL
-SB_VERTICAL = _core_.SB_VERTICAL
-ST_SIZEGRIP = _core_.ST_SIZEGRIP
-ST_NO_AUTORESIZE = _core_.ST_NO_AUTORESIZE
-FLOOD_SURFACE = _core_.FLOOD_SURFACE
-FLOOD_BORDER = _core_.FLOOD_BORDER
-ODDEVEN_RULE = _core_.ODDEVEN_RULE
-WINDING_RULE = _core_.WINDING_RULE
-TOOL_TOP = _core_.TOOL_TOP
-TOOL_BOTTOM = _core_.TOOL_BOTTOM
-TOOL_LEFT = _core_.TOOL_LEFT
-TOOL_RIGHT = _core_.TOOL_RIGHT
-OK = _core_.OK
-YES_NO = _core_.YES_NO
-CANCEL = _core_.CANCEL
-YES = _core_.YES
-NO = _core_.NO
-NO_DEFAULT = _core_.NO_DEFAULT
-YES_DEFAULT = _core_.YES_DEFAULT
-ICON_EXCLAMATION = _core_.ICON_EXCLAMATION
-ICON_HAND = _core_.ICON_HAND
-ICON_QUESTION = _core_.ICON_QUESTION
-ICON_INFORMATION = _core_.ICON_INFORMATION
-ICON_STOP = _core_.ICON_STOP
-ICON_ASTERISK = _core_.ICON_ASTERISK
-ICON_MASK = _core_.ICON_MASK
-ICON_WARNING = _core_.ICON_WARNING
-ICON_ERROR = _core_.ICON_ERROR
-FORWARD = _core_.FORWARD
-BACKWARD = _core_.BACKWARD
-RESET = _core_.RESET
-HELP = _core_.HELP
-MORE = _core_.MORE
-SETUP = _core_.SETUP
-SIZE_AUTO_WIDTH = _core_.SIZE_AUTO_WIDTH
-SIZE_AUTO_HEIGHT = _core_.SIZE_AUTO_HEIGHT
-SIZE_AUTO = _core_.SIZE_AUTO
-SIZE_USE_EXISTING = _core_.SIZE_USE_EXISTING
-SIZE_ALLOW_MINUS_ONE = _core_.SIZE_ALLOW_MINUS_ONE
-PORTRAIT = _core_.PORTRAIT
-LANDSCAPE = _core_.LANDSCAPE
-PRINT_QUALITY_HIGH = _core_.PRINT_QUALITY_HIGH
-PRINT_QUALITY_MEDIUM = _core_.PRINT_QUALITY_MEDIUM
-PRINT_QUALITY_LOW = _core_.PRINT_QUALITY_LOW
-PRINT_QUALITY_DRAFT = _core_.PRINT_QUALITY_DRAFT
-ID_ANY = _core_.ID_ANY
-ID_SEPARATOR = _core_.ID_SEPARATOR
-ID_LOWEST = _core_.ID_LOWEST
-ID_OPEN = _core_.ID_OPEN
-ID_CLOSE = _core_.ID_CLOSE
-ID_NEW = _core_.ID_NEW
-ID_SAVE = _core_.ID_SAVE
-ID_SAVEAS = _core_.ID_SAVEAS
-ID_REVERT = _core_.ID_REVERT
-ID_EXIT = _core_.ID_EXIT
-ID_UNDO = _core_.ID_UNDO
-ID_REDO = _core_.ID_REDO
-ID_HELP = _core_.ID_HELP
-ID_PRINT = _core_.ID_PRINT
-ID_PRINT_SETUP = _core_.ID_PRINT_SETUP
-ID_PREVIEW = _core_.ID_PREVIEW
-ID_ABOUT = _core_.ID_ABOUT
-ID_HELP_CONTENTS = _core_.ID_HELP_CONTENTS
-ID_HELP_COMMANDS = _core_.ID_HELP_COMMANDS
-ID_HELP_PROCEDURES = _core_.ID_HELP_PROCEDURES
-ID_HELP_CONTEXT = _core_.ID_HELP_CONTEXT
-ID_CLOSE_ALL = _core_.ID_CLOSE_ALL
-ID_PREFERENCES = _core_.ID_PREFERENCES
-ID_CUT = _core_.ID_CUT
-ID_COPY = _core_.ID_COPY
-ID_PASTE = _core_.ID_PASTE
-ID_CLEAR = _core_.ID_CLEAR
-ID_FIND = _core_.ID_FIND
-ID_DUPLICATE = _core_.ID_DUPLICATE
-ID_SELECTALL = _core_.ID_SELECTALL
-ID_DELETE = _core_.ID_DELETE
-ID_REPLACE = _core_.ID_REPLACE
-ID_REPLACE_ALL = _core_.ID_REPLACE_ALL
-ID_PROPERTIES = _core_.ID_PROPERTIES
-ID_VIEW_DETAILS = _core_.ID_VIEW_DETAILS
-ID_VIEW_LARGEICONS = _core_.ID_VIEW_LARGEICONS
-ID_VIEW_SMALLICONS = _core_.ID_VIEW_SMALLICONS
-ID_VIEW_LIST = _core_.ID_VIEW_LIST
-ID_VIEW_SORTDATE = _core_.ID_VIEW_SORTDATE
-ID_VIEW_SORTNAME = _core_.ID_VIEW_SORTNAME
-ID_VIEW_SORTSIZE = _core_.ID_VIEW_SORTSIZE
-ID_VIEW_SORTTYPE = _core_.ID_VIEW_SORTTYPE
-ID_FILE1 = _core_.ID_FILE1
-ID_FILE2 = _core_.ID_FILE2
-ID_FILE3 = _core_.ID_FILE3
-ID_FILE4 = _core_.ID_FILE4
-ID_FILE5 = _core_.ID_FILE5
-ID_FILE6 = _core_.ID_FILE6
-ID_FILE7 = _core_.ID_FILE7
-ID_FILE8 = _core_.ID_FILE8
-ID_FILE9 = _core_.ID_FILE9
-ID_OK = _core_.ID_OK
-ID_CANCEL = _core_.ID_CANCEL
-ID_APPLY = _core_.ID_APPLY
-ID_YES = _core_.ID_YES
-ID_NO = _core_.ID_NO
-ID_STATIC = _core_.ID_STATIC
-ID_FORWARD = _core_.ID_FORWARD
-ID_BACKWARD = _core_.ID_BACKWARD
-ID_DEFAULT = _core_.ID_DEFAULT
-ID_MORE = _core_.ID_MORE
-ID_SETUP = _core_.ID_SETUP
-ID_RESET = _core_.ID_RESET
-ID_CONTEXT_HELP = _core_.ID_CONTEXT_HELP
-ID_YESTOALL = _core_.ID_YESTOALL
-ID_NOTOALL = _core_.ID_NOTOALL
-ID_ABORT = _core_.ID_ABORT
-ID_RETRY = _core_.ID_RETRY
-ID_IGNORE = _core_.ID_IGNORE
-ID_ADD = _core_.ID_ADD
-ID_REMOVE = _core_.ID_REMOVE
-ID_UP = _core_.ID_UP
-ID_DOWN = _core_.ID_DOWN
-ID_HOME = _core_.ID_HOME
-ID_REFRESH = _core_.ID_REFRESH
-ID_STOP = _core_.ID_STOP
-ID_INDEX = _core_.ID_INDEX
-ID_BOLD = _core_.ID_BOLD
-ID_ITALIC = _core_.ID_ITALIC
-ID_JUSTIFY_CENTER = _core_.ID_JUSTIFY_CENTER
-ID_JUSTIFY_FILL = _core_.ID_JUSTIFY_FILL
-ID_JUSTIFY_RIGHT = _core_.ID_JUSTIFY_RIGHT
-ID_JUSTIFY_LEFT = _core_.ID_JUSTIFY_LEFT
-ID_UNDERLINE = _core_.ID_UNDERLINE
-ID_INDENT = _core_.ID_INDENT
-ID_UNINDENT = _core_.ID_UNINDENT
-ID_ZOOM_100 = _core_.ID_ZOOM_100
-ID_ZOOM_FIT = _core_.ID_ZOOM_FIT
-ID_ZOOM_IN = _core_.ID_ZOOM_IN
-ID_ZOOM_OUT = _core_.ID_ZOOM_OUT
-ID_UNDELETE = _core_.ID_UNDELETE
-ID_REVERT_TO_SAVED = _core_.ID_REVERT_TO_SAVED
-ID_HIGHEST = _core_.ID_HIGHEST
-OPEN = _core_.OPEN
-SAVE = _core_.SAVE
-HIDE_READONLY = _core_.HIDE_READONLY
-OVERWRITE_PROMPT = _core_.OVERWRITE_PROMPT
-FILE_MUST_EXIST = _core_.FILE_MUST_EXIST
-MULTIPLE = _core_.MULTIPLE
-CHANGE_DIR = _core_.CHANGE_DIR
-ACCEL_ALT = _core_.ACCEL_ALT
-ACCEL_CTRL = _core_.ACCEL_CTRL
-ACCEL_SHIFT = _core_.ACCEL_SHIFT
-ACCEL_NORMAL = _core_.ACCEL_NORMAL
-PD_AUTO_HIDE = _core_.PD_AUTO_HIDE
-PD_APP_MODAL = _core_.PD_APP_MODAL
-PD_CAN_ABORT = _core_.PD_CAN_ABORT
-PD_ELAPSED_TIME = _core_.PD_ELAPSED_TIME
-PD_ESTIMATED_TIME = _core_.PD_ESTIMATED_TIME
-PD_REMAINING_TIME = _core_.PD_REMAINING_TIME
-DD_NEW_DIR_BUTTON = _core_.DD_NEW_DIR_BUTTON
-DD_DEFAULT_STYLE = _core_.DD_DEFAULT_STYLE
-MENU_TEAROFF = _core_.MENU_TEAROFF
-MB_DOCKABLE = _core_.MB_DOCKABLE
-NO_FULL_REPAINT_ON_RESIZE = _core_.NO_FULL_REPAINT_ON_RESIZE
-FULL_REPAINT_ON_RESIZE = _core_.FULL_REPAINT_ON_RESIZE
-LI_HORIZONTAL = _core_.LI_HORIZONTAL
-LI_VERTICAL = _core_.LI_VERTICAL
-WS_EX_VALIDATE_RECURSIVELY = _core_.WS_EX_VALIDATE_RECURSIVELY
-WS_EX_BLOCK_EVENTS = _core_.WS_EX_BLOCK_EVENTS
-WS_EX_TRANSIENT = _core_.WS_EX_TRANSIENT
-WS_EX_THEMED_BACKGROUND = _core_.WS_EX_THEMED_BACKGROUND
-WS_EX_PROCESS_IDLE = _core_.WS_EX_PROCESS_IDLE
-WS_EX_PROCESS_UI_UPDATES = _core_.WS_EX_PROCESS_UI_UPDATES
-MM_TEXT = _core_.MM_TEXT
-MM_LOMETRIC = _core_.MM_LOMETRIC
-MM_HIMETRIC = _core_.MM_HIMETRIC
-MM_LOENGLISH = _core_.MM_LOENGLISH
-MM_HIENGLISH = _core_.MM_HIENGLISH
-MM_TWIPS = _core_.MM_TWIPS
-MM_ISOTROPIC = _core_.MM_ISOTROPIC
-MM_ANISOTROPIC = _core_.MM_ANISOTROPIC
-MM_POINTS = _core_.MM_POINTS
-MM_METRIC = _core_.MM_METRIC
-CENTRE = _core_.CENTRE
-CENTER = _core_.CENTER
-HORIZONTAL = _core_.HORIZONTAL
-VERTICAL = _core_.VERTICAL
-BOTH = _core_.BOTH
-LEFT = _core_.LEFT
-RIGHT = _core_.RIGHT
-UP = _core_.UP
-DOWN = _core_.DOWN
-TOP = _core_.TOP
-BOTTOM = _core_.BOTTOM
-NORTH = _core_.NORTH
-SOUTH = _core_.SOUTH
-WEST = _core_.WEST
-EAST = _core_.EAST
-ALL = _core_.ALL
-ALIGN_NOT = _core_.ALIGN_NOT
-ALIGN_CENTER_HORIZONTAL = _core_.ALIGN_CENTER_HORIZONTAL
-ALIGN_CENTRE_HORIZONTAL = _core_.ALIGN_CENTRE_HORIZONTAL
-ALIGN_LEFT = _core_.ALIGN_LEFT
-ALIGN_TOP = _core_.ALIGN_TOP
-ALIGN_RIGHT = _core_.ALIGN_RIGHT
-ALIGN_BOTTOM = _core_.ALIGN_BOTTOM
-ALIGN_CENTER_VERTICAL = _core_.ALIGN_CENTER_VERTICAL
-ALIGN_CENTRE_VERTICAL = _core_.ALIGN_CENTRE_VERTICAL
-ALIGN_CENTER = _core_.ALIGN_CENTER
-ALIGN_CENTRE = _core_.ALIGN_CENTRE
-ALIGN_MASK = _core_.ALIGN_MASK
-STRETCH_NOT = _core_.STRETCH_NOT
-SHRINK = _core_.SHRINK
-GROW = _core_.GROW
-EXPAND = _core_.EXPAND
-SHAPED = _core_.SHAPED
-FIXED_MINSIZE = _core_.FIXED_MINSIZE
-TILE = _core_.TILE
-ADJUST_MINSIZE = _core_.ADJUST_MINSIZE
-BORDER_DEFAULT = _core_.BORDER_DEFAULT
-BORDER_NONE = _core_.BORDER_NONE
-BORDER_STATIC = _core_.BORDER_STATIC
-BORDER_SIMPLE = _core_.BORDER_SIMPLE
-BORDER_RAISED = _core_.BORDER_RAISED
-BORDER_SUNKEN = _core_.BORDER_SUNKEN
-BORDER_DOUBLE = _core_.BORDER_DOUBLE
-BORDER_MASK = _core_.BORDER_MASK
-BG_STYLE_SYSTEM = _core_.BG_STYLE_SYSTEM
-BG_STYLE_COLOUR = _core_.BG_STYLE_COLOUR
-BG_STYLE_CUSTOM = _core_.BG_STYLE_CUSTOM
-DEFAULT = _core_.DEFAULT
-DECORATIVE = _core_.DECORATIVE
-ROMAN = _core_.ROMAN
-SCRIPT = _core_.SCRIPT
-SWISS = _core_.SWISS
-MODERN = _core_.MODERN
-TELETYPE = _core_.TELETYPE
-VARIABLE = _core_.VARIABLE
-FIXED = _core_.FIXED
-NORMAL = _core_.NORMAL
-LIGHT = _core_.LIGHT
-BOLD = _core_.BOLD
-ITALIC = _core_.ITALIC
-SLANT = _core_.SLANT
-SOLID = _core_.SOLID
-DOT = _core_.DOT
-LONG_DASH = _core_.LONG_DASH
-SHORT_DASH = _core_.SHORT_DASH
-DOT_DASH = _core_.DOT_DASH
-USER_DASH = _core_.USER_DASH
-TRANSPARENT = _core_.TRANSPARENT
-STIPPLE = _core_.STIPPLE
-BDIAGONAL_HATCH = _core_.BDIAGONAL_HATCH
-CROSSDIAG_HATCH = _core_.CROSSDIAG_HATCH
-FDIAGONAL_HATCH = _core_.FDIAGONAL_HATCH
-CROSS_HATCH = _core_.CROSS_HATCH
-HORIZONTAL_HATCH = _core_.HORIZONTAL_HATCH
-VERTICAL_HATCH = _core_.VERTICAL_HATCH
-JOIN_BEVEL = _core_.JOIN_BEVEL
-JOIN_MITER = _core_.JOIN_MITER
-JOIN_ROUND = _core_.JOIN_ROUND
-CAP_ROUND = _core_.CAP_ROUND
-CAP_PROJECTING = _core_.CAP_PROJECTING
-CAP_BUTT = _core_.CAP_BUTT
-CLEAR = _core_.CLEAR
-XOR = _core_.XOR
-INVERT = _core_.INVERT
-OR_REVERSE = _core_.OR_REVERSE
-AND_REVERSE = _core_.AND_REVERSE
-COPY = _core_.COPY
-AND = _core_.AND
-AND_INVERT = _core_.AND_INVERT
-NO_OP = _core_.NO_OP
-NOR = _core_.NOR
-EQUIV = _core_.EQUIV
-SRC_INVERT = _core_.SRC_INVERT
-OR_INVERT = _core_.OR_INVERT
-NAND = _core_.NAND
-OR = _core_.OR
-SET = _core_.SET
-WXK_BACK = _core_.WXK_BACK
-WXK_TAB = _core_.WXK_TAB
-WXK_RETURN = _core_.WXK_RETURN
-WXK_ESCAPE = _core_.WXK_ESCAPE
-WXK_SPACE = _core_.WXK_SPACE
-WXK_DELETE = _core_.WXK_DELETE
-WXK_START = _core_.WXK_START
-WXK_LBUTTON = _core_.WXK_LBUTTON
-WXK_RBUTTON = _core_.WXK_RBUTTON
-WXK_CANCEL = _core_.WXK_CANCEL
-WXK_MBUTTON = _core_.WXK_MBUTTON
-WXK_CLEAR = _core_.WXK_CLEAR
-WXK_SHIFT = _core_.WXK_SHIFT
-WXK_ALT = _core_.WXK_ALT
-WXK_CONTROL = _core_.WXK_CONTROL
-WXK_MENU = _core_.WXK_MENU
-WXK_PAUSE = _core_.WXK_PAUSE
-WXK_CAPITAL = _core_.WXK_CAPITAL
-WXK_PRIOR = _core_.WXK_PRIOR
-WXK_NEXT = _core_.WXK_NEXT
-WXK_END = _core_.WXK_END
-WXK_HOME = _core_.WXK_HOME
-WXK_LEFT = _core_.WXK_LEFT
-WXK_UP = _core_.WXK_UP
-WXK_RIGHT = _core_.WXK_RIGHT
-WXK_DOWN = _core_.WXK_DOWN
-WXK_SELECT = _core_.WXK_SELECT
-WXK_PRINT = _core_.WXK_PRINT
-WXK_EXECUTE = _core_.WXK_EXECUTE
-WXK_SNAPSHOT = _core_.WXK_SNAPSHOT
-WXK_INSERT = _core_.WXK_INSERT
-WXK_HELP = _core_.WXK_HELP
-WXK_NUMPAD0 = _core_.WXK_NUMPAD0
-WXK_NUMPAD1 = _core_.WXK_NUMPAD1
-WXK_NUMPAD2 = _core_.WXK_NUMPAD2
-WXK_NUMPAD3 = _core_.WXK_NUMPAD3
-WXK_NUMPAD4 = _core_.WXK_NUMPAD4
-WXK_NUMPAD5 = _core_.WXK_NUMPAD5
-WXK_NUMPAD6 = _core_.WXK_NUMPAD6
-WXK_NUMPAD7 = _core_.WXK_NUMPAD7
-WXK_NUMPAD8 = _core_.WXK_NUMPAD8
-WXK_NUMPAD9 = _core_.WXK_NUMPAD9
-WXK_MULTIPLY = _core_.WXK_MULTIPLY
-WXK_ADD = _core_.WXK_ADD
-WXK_SEPARATOR = _core_.WXK_SEPARATOR
-WXK_SUBTRACT = _core_.WXK_SUBTRACT
-WXK_DECIMAL = _core_.WXK_DECIMAL
-WXK_DIVIDE = _core_.WXK_DIVIDE
-WXK_F1 = _core_.WXK_F1
-WXK_F2 = _core_.WXK_F2
-WXK_F3 = _core_.WXK_F3
-WXK_F4 = _core_.WXK_F4
-WXK_F5 = _core_.WXK_F5
-WXK_F6 = _core_.WXK_F6
-WXK_F7 = _core_.WXK_F7
-WXK_F8 = _core_.WXK_F8
-WXK_F9 = _core_.WXK_F9
-WXK_F10 = _core_.WXK_F10
-WXK_F11 = _core_.WXK_F11
-WXK_F12 = _core_.WXK_F12
-WXK_F13 = _core_.WXK_F13
-WXK_F14 = _core_.WXK_F14
-WXK_F15 = _core_.WXK_F15
-WXK_F16 = _core_.WXK_F16
-WXK_F17 = _core_.WXK_F17
-WXK_F18 = _core_.WXK_F18
-WXK_F19 = _core_.WXK_F19
-WXK_F20 = _core_.WXK_F20
-WXK_F21 = _core_.WXK_F21
-WXK_F22 = _core_.WXK_F22
-WXK_F23 = _core_.WXK_F23
-WXK_F24 = _core_.WXK_F24
-WXK_NUMLOCK = _core_.WXK_NUMLOCK
-WXK_SCROLL = _core_.WXK_SCROLL
-WXK_PAGEUP = _core_.WXK_PAGEUP
-WXK_PAGEDOWN = _core_.WXK_PAGEDOWN
-WXK_NUMPAD_SPACE = _core_.WXK_NUMPAD_SPACE
-WXK_NUMPAD_TAB = _core_.WXK_NUMPAD_TAB
-WXK_NUMPAD_ENTER = _core_.WXK_NUMPAD_ENTER
-WXK_NUMPAD_F1 = _core_.WXK_NUMPAD_F1
-WXK_NUMPAD_F2 = _core_.WXK_NUMPAD_F2
-WXK_NUMPAD_F3 = _core_.WXK_NUMPAD_F3
-WXK_NUMPAD_F4 = _core_.WXK_NUMPAD_F4
-WXK_NUMPAD_HOME = _core_.WXK_NUMPAD_HOME
-WXK_NUMPAD_LEFT = _core_.WXK_NUMPAD_LEFT
-WXK_NUMPAD_UP = _core_.WXK_NUMPAD_UP
-WXK_NUMPAD_RIGHT = _core_.WXK_NUMPAD_RIGHT
-WXK_NUMPAD_DOWN = _core_.WXK_NUMPAD_DOWN
-WXK_NUMPAD_PRIOR = _core_.WXK_NUMPAD_PRIOR
-WXK_NUMPAD_PAGEUP = _core_.WXK_NUMPAD_PAGEUP
-WXK_NUMPAD_NEXT = _core_.WXK_NUMPAD_NEXT
-WXK_NUMPAD_PAGEDOWN = _core_.WXK_NUMPAD_PAGEDOWN
-WXK_NUMPAD_END = _core_.WXK_NUMPAD_END
-WXK_NUMPAD_BEGIN = _core_.WXK_NUMPAD_BEGIN
-WXK_NUMPAD_INSERT = _core_.WXK_NUMPAD_INSERT
-WXK_NUMPAD_DELETE = _core_.WXK_NUMPAD_DELETE
-WXK_NUMPAD_EQUAL = _core_.WXK_NUMPAD_EQUAL
-WXK_NUMPAD_MULTIPLY = _core_.WXK_NUMPAD_MULTIPLY
-WXK_NUMPAD_ADD = _core_.WXK_NUMPAD_ADD
-WXK_NUMPAD_SEPARATOR = _core_.WXK_NUMPAD_SEPARATOR
-WXK_NUMPAD_SUBTRACT = _core_.WXK_NUMPAD_SUBTRACT
-WXK_NUMPAD_DECIMAL = _core_.WXK_NUMPAD_DECIMAL
-WXK_NUMPAD_DIVIDE = _core_.WXK_NUMPAD_DIVIDE
-WXK_WINDOWS_LEFT = _core_.WXK_WINDOWS_LEFT
-WXK_WINDOWS_RIGHT = _core_.WXK_WINDOWS_RIGHT
-WXK_WINDOWS_MENU = _core_.WXK_WINDOWS_MENU
-PAPER_NONE = _core_.PAPER_NONE
-PAPER_LETTER = _core_.PAPER_LETTER
-PAPER_LEGAL = _core_.PAPER_LEGAL
-PAPER_A4 = _core_.PAPER_A4
-PAPER_CSHEET = _core_.PAPER_CSHEET
-PAPER_DSHEET = _core_.PAPER_DSHEET
-PAPER_ESHEET = _core_.PAPER_ESHEET
-PAPER_LETTERSMALL = _core_.PAPER_LETTERSMALL
-PAPER_TABLOID = _core_.PAPER_TABLOID
-PAPER_LEDGER = _core_.PAPER_LEDGER
-PAPER_STATEMENT = _core_.PAPER_STATEMENT
-PAPER_EXECUTIVE = _core_.PAPER_EXECUTIVE
-PAPER_A3 = _core_.PAPER_A3
-PAPER_A4SMALL = _core_.PAPER_A4SMALL
-PAPER_A5 = _core_.PAPER_A5
-PAPER_B4 = _core_.PAPER_B4
-PAPER_B5 = _core_.PAPER_B5
-PAPER_FOLIO = _core_.PAPER_FOLIO
-PAPER_QUARTO = _core_.PAPER_QUARTO
-PAPER_10X14 = _core_.PAPER_10X14
-PAPER_11X17 = _core_.PAPER_11X17
-PAPER_NOTE = _core_.PAPER_NOTE
-PAPER_ENV_9 = _core_.PAPER_ENV_9
-PAPER_ENV_10 = _core_.PAPER_ENV_10
-PAPER_ENV_11 = _core_.PAPER_ENV_11
-PAPER_ENV_12 = _core_.PAPER_ENV_12
-PAPER_ENV_14 = _core_.PAPER_ENV_14
-PAPER_ENV_DL = _core_.PAPER_ENV_DL
-PAPER_ENV_C5 = _core_.PAPER_ENV_C5
-PAPER_ENV_C3 = _core_.PAPER_ENV_C3
-PAPER_ENV_C4 = _core_.PAPER_ENV_C4
-PAPER_ENV_C6 = _core_.PAPER_ENV_C6
-PAPER_ENV_C65 = _core_.PAPER_ENV_C65
-PAPER_ENV_B4 = _core_.PAPER_ENV_B4
-PAPER_ENV_B5 = _core_.PAPER_ENV_B5
-PAPER_ENV_B6 = _core_.PAPER_ENV_B6
-PAPER_ENV_ITALY = _core_.PAPER_ENV_ITALY
-PAPER_ENV_MONARCH = _core_.PAPER_ENV_MONARCH
-PAPER_ENV_PERSONAL = _core_.PAPER_ENV_PERSONAL
-PAPER_FANFOLD_US = _core_.PAPER_FANFOLD_US
-PAPER_FANFOLD_STD_GERMAN = _core_.PAPER_FANFOLD_STD_GERMAN
-PAPER_FANFOLD_LGL_GERMAN = _core_.PAPER_FANFOLD_LGL_GERMAN
-PAPER_ISO_B4 = _core_.PAPER_ISO_B4
-PAPER_JAPANESE_POSTCARD = _core_.PAPER_JAPANESE_POSTCARD
-PAPER_9X11 = _core_.PAPER_9X11
-PAPER_10X11 = _core_.PAPER_10X11
-PAPER_15X11 = _core_.PAPER_15X11
-PAPER_ENV_INVITE = _core_.PAPER_ENV_INVITE
-PAPER_LETTER_EXTRA = _core_.PAPER_LETTER_EXTRA
-PAPER_LEGAL_EXTRA = _core_.PAPER_LEGAL_EXTRA
-PAPER_TABLOID_EXTRA = _core_.PAPER_TABLOID_EXTRA
-PAPER_A4_EXTRA = _core_.PAPER_A4_EXTRA
-PAPER_LETTER_TRANSVERSE = _core_.PAPER_LETTER_TRANSVERSE
-PAPER_A4_TRANSVERSE = _core_.PAPER_A4_TRANSVERSE
-PAPER_LETTER_EXTRA_TRANSVERSE = _core_.PAPER_LETTER_EXTRA_TRANSVERSE
-PAPER_A_PLUS = _core_.PAPER_A_PLUS
-PAPER_B_PLUS = _core_.PAPER_B_PLUS
-PAPER_LETTER_PLUS = _core_.PAPER_LETTER_PLUS
-PAPER_A4_PLUS = _core_.PAPER_A4_PLUS
-PAPER_A5_TRANSVERSE = _core_.PAPER_A5_TRANSVERSE
-PAPER_B5_TRANSVERSE = _core_.PAPER_B5_TRANSVERSE
-PAPER_A3_EXTRA = _core_.PAPER_A3_EXTRA
-PAPER_A5_EXTRA = _core_.PAPER_A5_EXTRA
-PAPER_B5_EXTRA = _core_.PAPER_B5_EXTRA
-PAPER_A2 = _core_.PAPER_A2
-PAPER_A3_TRANSVERSE = _core_.PAPER_A3_TRANSVERSE
-PAPER_A3_EXTRA_TRANSVERSE = _core_.PAPER_A3_EXTRA_TRANSVERSE
-DUPLEX_SIMPLEX = _core_.DUPLEX_SIMPLEX
-DUPLEX_HORIZONTAL = _core_.DUPLEX_HORIZONTAL
-DUPLEX_VERTICAL = _core_.DUPLEX_VERTICAL
-ITEM_SEPARATOR = _core_.ITEM_SEPARATOR
-ITEM_NORMAL = _core_.ITEM_NORMAL
-ITEM_CHECK = _core_.ITEM_CHECK
-ITEM_RADIO = _core_.ITEM_RADIO
-ITEM_MAX = _core_.ITEM_MAX
-HT_NOWHERE = _core_.HT_NOWHERE
-HT_SCROLLBAR_FIRST = _core_.HT_SCROLLBAR_FIRST
-HT_SCROLLBAR_ARROW_LINE_1 = _core_.HT_SCROLLBAR_ARROW_LINE_1
-HT_SCROLLBAR_ARROW_LINE_2 = _core_.HT_SCROLLBAR_ARROW_LINE_2
-HT_SCROLLBAR_ARROW_PAGE_1 = _core_.HT_SCROLLBAR_ARROW_PAGE_1
-HT_SCROLLBAR_ARROW_PAGE_2 = _core_.HT_SCROLLBAR_ARROW_PAGE_2
-HT_SCROLLBAR_THUMB = _core_.HT_SCROLLBAR_THUMB
-HT_SCROLLBAR_BAR_1 = _core_.HT_SCROLLBAR_BAR_1
-HT_SCROLLBAR_BAR_2 = _core_.HT_SCROLLBAR_BAR_2
-HT_SCROLLBAR_LAST = _core_.HT_SCROLLBAR_LAST
-HT_WINDOW_OUTSIDE = _core_.HT_WINDOW_OUTSIDE
-HT_WINDOW_INSIDE = _core_.HT_WINDOW_INSIDE
-HT_WINDOW_VERT_SCROLLBAR = _core_.HT_WINDOW_VERT_SCROLLBAR
-HT_WINDOW_HORZ_SCROLLBAR = _core_.HT_WINDOW_HORZ_SCROLLBAR
-HT_WINDOW_CORNER = _core_.HT_WINDOW_CORNER
-HT_MAX = _core_.HT_MAX
-MOD_NONE = _core_.MOD_NONE
-MOD_ALT = _core_.MOD_ALT
-MOD_CONTROL = _core_.MOD_CONTROL
-MOD_SHIFT = _core_.MOD_SHIFT
-MOD_WIN = _core_.MOD_WIN
-UPDATE_UI_NONE = _core_.UPDATE_UI_NONE
-UPDATE_UI_RECURSE = _core_.UPDATE_UI_RECURSE
-UPDATE_UI_FROMIDLE = _core_.UPDATE_UI_FROMIDLE
+wxNOT_FOUND = __core.wxNOT_FOUND
+wxVSCROLL = __core.wxVSCROLL
+wxHSCROLL = __core.wxHSCROLL
+wxCAPTION = __core.wxCAPTION
+wxDOUBLE_BORDER = __core.wxDOUBLE_BORDER
+wxSUNKEN_BORDER = __core.wxSUNKEN_BORDER
+wxRAISED_BORDER = __core.wxRAISED_BORDER
+wxBORDER = __core.wxBORDER
+wxSIMPLE_BORDER = __core.wxSIMPLE_BORDER
+wxSTATIC_BORDER = __core.wxSTATIC_BORDER
+wxTRANSPARENT_WINDOW = __core.wxTRANSPARENT_WINDOW
+wxNO_BORDER = __core.wxNO_BORDER
+wxTAB_TRAVERSAL = __core.wxTAB_TRAVERSAL
+wxWANTS_CHARS = __core.wxWANTS_CHARS
+wxPOPUP_WINDOW = __core.wxPOPUP_WINDOW
+wxCENTER_FRAME = __core.wxCENTER_FRAME
+wxCENTRE_ON_SCREEN = __core.wxCENTRE_ON_SCREEN
+wxCENTER_ON_SCREEN = __core.wxCENTER_ON_SCREEN
+wxCLIP_CHILDREN = __core.wxCLIP_CHILDREN
+wxCLIP_SIBLINGS = __core.wxCLIP_SIBLINGS
+wxALWAYS_SHOW_SB = __core.wxALWAYS_SHOW_SB
+wxRETAINED = __core.wxRETAINED
+wxBACKINGSTORE = __core.wxBACKINGSTORE
+wxCOLOURED = __core.wxCOLOURED
+wxFIXED_LENGTH = __core.wxFIXED_LENGTH
+wxLB_NEEDED_SB = __core.wxLB_NEEDED_SB
+wxLB_ALWAYS_SB = __core.wxLB_ALWAYS_SB
+wxLB_SORT = __core.wxLB_SORT
+wxLB_SINGLE = __core.wxLB_SINGLE
+wxLB_MULTIPLE = __core.wxLB_MULTIPLE
+wxLB_EXTENDED = __core.wxLB_EXTENDED
+wxLB_OWNERDRAW = __core.wxLB_OWNERDRAW
+wxLB_HSCROLL = __core.wxLB_HSCROLL
+wxPROCESS_ENTER = __core.wxPROCESS_ENTER
+wxPASSWORD = __core.wxPASSWORD
+wxCB_SIMPLE = __core.wxCB_SIMPLE
+wxCB_DROPDOWN = __core.wxCB_DROPDOWN
+wxCB_SORT = __core.wxCB_SORT
+wxCB_READONLY = __core.wxCB_READONLY
+wxRA_HORIZONTAL = __core.wxRA_HORIZONTAL
+wxRA_VERTICAL = __core.wxRA_VERTICAL
+wxRA_SPECIFY_ROWS = __core.wxRA_SPECIFY_ROWS
+wxRA_SPECIFY_COLS = __core.wxRA_SPECIFY_COLS
+wxRA_USE_CHECKBOX = __core.wxRA_USE_CHECKBOX
+wxRB_GROUP = __core.wxRB_GROUP
+wxRB_SINGLE = __core.wxRB_SINGLE
+wxSB_HORIZONTAL = __core.wxSB_HORIZONTAL
+wxSB_VERTICAL = __core.wxSB_VERTICAL
+wxRB_USE_CHECKBOX = __core.wxRB_USE_CHECKBOX
+wxST_SIZEGRIP = __core.wxST_SIZEGRIP
+wxST_NO_AUTORESIZE = __core.wxST_NO_AUTORESIZE
+wxFLOOD_SURFACE = __core.wxFLOOD_SURFACE
+wxFLOOD_BORDER = __core.wxFLOOD_BORDER
+wxODDEVEN_RULE = __core.wxODDEVEN_RULE
+wxWINDING_RULE = __core.wxWINDING_RULE
+wxTOOL_TOP = __core.wxTOOL_TOP
+wxTOOL_BOTTOM = __core.wxTOOL_BOTTOM
+wxTOOL_LEFT = __core.wxTOOL_LEFT
+wxTOOL_RIGHT = __core.wxTOOL_RIGHT
+wxOK = __core.wxOK
+wxYES_NO = __core.wxYES_NO
+wxCANCEL = __core.wxCANCEL
+wxYES = __core.wxYES
+wxNO = __core.wxNO
+wxNO_DEFAULT = __core.wxNO_DEFAULT
+wxYES_DEFAULT = __core.wxYES_DEFAULT
+wxICON_EXCLAMATION = __core.wxICON_EXCLAMATION
+wxICON_HAND = __core.wxICON_HAND
+wxICON_QUESTION = __core.wxICON_QUESTION
+wxICON_INFORMATION = __core.wxICON_INFORMATION
+wxICON_STOP = __core.wxICON_STOP
+wxICON_ASTERISK = __core.wxICON_ASTERISK
+wxICON_MASK = __core.wxICON_MASK
+wxICON_WARNING = __core.wxICON_WARNING
+wxICON_ERROR = __core.wxICON_ERROR
+wxFORWARD = __core.wxFORWARD
+wxBACKWARD = __core.wxBACKWARD
+wxRESET = __core.wxRESET
+wxHELP = __core.wxHELP
+wxMORE = __core.wxMORE
+wxSETUP = __core.wxSETUP
+wxSIZE_AUTO_WIDTH = __core.wxSIZE_AUTO_WIDTH
+wxSIZE_AUTO_HEIGHT = __core.wxSIZE_AUTO_HEIGHT
+wxSIZE_AUTO = __core.wxSIZE_AUTO
+wxSIZE_USE_EXISTING = __core.wxSIZE_USE_EXISTING
+wxSIZE_ALLOW_MINUS_ONE = __core.wxSIZE_ALLOW_MINUS_ONE
+wxPORTRAIT = __core.wxPORTRAIT
+wxLANDSCAPE = __core.wxLANDSCAPE
+wxPRINT_QUALITY_HIGH = __core.wxPRINT_QUALITY_HIGH
+wxPRINT_QUALITY_MEDIUM = __core.wxPRINT_QUALITY_MEDIUM
+wxPRINT_QUALITY_LOW = __core.wxPRINT_QUALITY_LOW
+wxPRINT_QUALITY_DRAFT = __core.wxPRINT_QUALITY_DRAFT
+wxID_ANY = __core.wxID_ANY
+wxID_SEPARATOR = __core.wxID_SEPARATOR
+wxID_LOWEST = __core.wxID_LOWEST
+wxID_OPEN = __core.wxID_OPEN
+wxID_CLOSE = __core.wxID_CLOSE
+wxID_NEW = __core.wxID_NEW
+wxID_SAVE = __core.wxID_SAVE
+wxID_SAVEAS = __core.wxID_SAVEAS
+wxID_REVERT = __core.wxID_REVERT
+wxID_EXIT = __core.wxID_EXIT
+wxID_UNDO = __core.wxID_UNDO
+wxID_REDO = __core.wxID_REDO
+wxID_HELP = __core.wxID_HELP
+wxID_PRINT = __core.wxID_PRINT
+wxID_PRINT_SETUP = __core.wxID_PRINT_SETUP
+wxID_PREVIEW = __core.wxID_PREVIEW
+wxID_ABOUT = __core.wxID_ABOUT
+wxID_HELP_CONTENTS = __core.wxID_HELP_CONTENTS
+wxID_HELP_COMMANDS = __core.wxID_HELP_COMMANDS
+wxID_HELP_PROCEDURES = __core.wxID_HELP_PROCEDURES
+wxID_HELP_CONTEXT = __core.wxID_HELP_CONTEXT
+wxID_CLOSE_ALL = __core.wxID_CLOSE_ALL
+wxID_PREFERENCES = __core.wxID_PREFERENCES
+wxID_CUT = __core.wxID_CUT
+wxID_COPY = __core.wxID_COPY
+wxID_PASTE = __core.wxID_PASTE
+wxID_CLEAR = __core.wxID_CLEAR
+wxID_FIND = __core.wxID_FIND
+wxID_DUPLICATE = __core.wxID_DUPLICATE
+wxID_SELECTALL = __core.wxID_SELECTALL
+wxID_DELETE = __core.wxID_DELETE
+wxID_REPLACE = __core.wxID_REPLACE
+wxID_REPLACE_ALL = __core.wxID_REPLACE_ALL
+wxID_PROPERTIES = __core.wxID_PROPERTIES
+wxID_VIEW_DETAILS = __core.wxID_VIEW_DETAILS
+wxID_VIEW_LARGEICONS = __core.wxID_VIEW_LARGEICONS
+wxID_VIEW_SMALLICONS = __core.wxID_VIEW_SMALLICONS
+wxID_VIEW_LIST = __core.wxID_VIEW_LIST
+wxID_VIEW_SORTDATE = __core.wxID_VIEW_SORTDATE
+wxID_VIEW_SORTNAME = __core.wxID_VIEW_SORTNAME
+wxID_VIEW_SORTSIZE = __core.wxID_VIEW_SORTSIZE
+wxID_VIEW_SORTTYPE = __core.wxID_VIEW_SORTTYPE
+wxID_FILE1 = __core.wxID_FILE1
+wxID_FILE2 = __core.wxID_FILE2
+wxID_FILE3 = __core.wxID_FILE3
+wxID_FILE4 = __core.wxID_FILE4
+wxID_FILE5 = __core.wxID_FILE5
+wxID_FILE6 = __core.wxID_FILE6
+wxID_FILE7 = __core.wxID_FILE7
+wxID_FILE8 = __core.wxID_FILE8
+wxID_FILE9 = __core.wxID_FILE9
+wxID_OK = __core.wxID_OK
+wxID_CANCEL = __core.wxID_CANCEL
+wxID_APPLY = __core.wxID_APPLY
+wxID_YES = __core.wxID_YES
+wxID_NO = __core.wxID_NO
+wxID_STATIC = __core.wxID_STATIC
+wxID_FORWARD = __core.wxID_FORWARD
+wxID_BACKWARD = __core.wxID_BACKWARD
+wxID_DEFAULT = __core.wxID_DEFAULT
+wxID_MORE = __core.wxID_MORE
+wxID_SETUP = __core.wxID_SETUP
+wxID_RESET = __core.wxID_RESET
+wxID_CONTEXT_HELP = __core.wxID_CONTEXT_HELP
+wxID_YESTOALL = __core.wxID_YESTOALL
+wxID_NOTOALL = __core.wxID_NOTOALL
+wxID_ABORT = __core.wxID_ABORT
+wxID_RETRY = __core.wxID_RETRY
+wxID_IGNORE = __core.wxID_IGNORE
+wxID_ADD = __core.wxID_ADD
+wxID_REMOVE = __core.wxID_REMOVE
+wxID_UP = __core.wxID_UP
+wxID_DOWN = __core.wxID_DOWN
+wxID_HOME = __core.wxID_HOME
+wxID_REFRESH = __core.wxID_REFRESH
+wxID_STOP = __core.wxID_STOP
+wxID_INDEX = __core.wxID_INDEX
+wxID_BOLD = __core.wxID_BOLD
+wxID_ITALIC = __core.wxID_ITALIC
+wxID_JUSTIFY_CENTER = __core.wxID_JUSTIFY_CENTER
+wxID_JUSTIFY_FILL = __core.wxID_JUSTIFY_FILL
+wxID_JUSTIFY_RIGHT = __core.wxID_JUSTIFY_RIGHT
+wxID_JUSTIFY_LEFT = __core.wxID_JUSTIFY_LEFT
+wxID_UNDERLINE = __core.wxID_UNDERLINE
+wxID_INDENT = __core.wxID_INDENT
+wxID_UNINDENT = __core.wxID_UNINDENT
+wxID_ZOOM_100 = __core.wxID_ZOOM_100
+wxID_ZOOM_FIT = __core.wxID_ZOOM_FIT
+wxID_ZOOM_IN = __core.wxID_ZOOM_IN
+wxID_ZOOM_OUT = __core.wxID_ZOOM_OUT
+wxID_UNDELETE = __core.wxID_UNDELETE
+wxID_REVERT_TO_SAVED = __core.wxID_REVERT_TO_SAVED
+wxID_HIGHEST = __core.wxID_HIGHEST
+wxOPEN = __core.wxOPEN
+wxSAVE = __core.wxSAVE
+wxHIDE_READONLY = __core.wxHIDE_READONLY
+wxOVERWRITE_PROMPT = __core.wxOVERWRITE_PROMPT
+wxFILE_MUST_EXIST = __core.wxFILE_MUST_EXIST
+wxMULTIPLE = __core.wxMULTIPLE
+wxCHANGE_DIR = __core.wxCHANGE_DIR
+wxACCEL_ALT = __core.wxACCEL_ALT
+wxACCEL_CTRL = __core.wxACCEL_CTRL
+wxACCEL_SHIFT = __core.wxACCEL_SHIFT
+wxACCEL_NORMAL = __core.wxACCEL_NORMAL
+wxPD_AUTO_HIDE = __core.wxPD_AUTO_HIDE
+wxPD_APP_MODAL = __core.wxPD_APP_MODAL
+wxPD_CAN_ABORT = __core.wxPD_CAN_ABORT
+wxPD_ELAPSED_TIME = __core.wxPD_ELAPSED_TIME
+wxPD_ESTIMATED_TIME = __core.wxPD_ESTIMATED_TIME
+wxPD_REMAINING_TIME = __core.wxPD_REMAINING_TIME
+wxPD_SMOOTH = __core.wxPD_SMOOTH
+wxPD_CAN_SKIP = __core.wxPD_CAN_SKIP
+wxDD_NEW_DIR_BUTTON = __core.wxDD_NEW_DIR_BUTTON
+wxDD_DEFAULT_STYLE = __core.wxDD_DEFAULT_STYLE
+wxMENU_TEAROFF = __core.wxMENU_TEAROFF
+wxMB_DOCKABLE = __core.wxMB_DOCKABLE
+wxNO_FULL_REPAINT_ON_RESIZE = __core.wxNO_FULL_REPAINT_ON_RESIZE
+wxFULL_REPAINT_ON_RESIZE = __core.wxFULL_REPAINT_ON_RESIZE
+wxLI_HORIZONTAL = __core.wxLI_HORIZONTAL
+wxLI_VERTICAL = __core.wxLI_VERTICAL
+wxWS_EX_VALIDATE_RECURSIVELY = __core.wxWS_EX_VALIDATE_RECURSIVELY
+wxWS_EX_BLOCK_EVENTS = __core.wxWS_EX_BLOCK_EVENTS
+wxWS_EX_TRANSIENT = __core.wxWS_EX_TRANSIENT
+wxWS_EX_THEMED_BACKGROUND = __core.wxWS_EX_THEMED_BACKGROUND
+wxWS_EX_PROCESS_IDLE = __core.wxWS_EX_PROCESS_IDLE
+wxWS_EX_PROCESS_UI_UPDATES = __core.wxWS_EX_PROCESS_UI_UPDATES
+wxMM_TEXT = __core.wxMM_TEXT
+wxMM_LOMETRIC = __core.wxMM_LOMETRIC
+wxMM_HIMETRIC = __core.wxMM_HIMETRIC
+wxMM_LOENGLISH = __core.wxMM_LOENGLISH
+wxMM_HIENGLISH = __core.wxMM_HIENGLISH
+wxMM_TWIPS = __core.wxMM_TWIPS
+wxMM_ISOTROPIC = __core.wxMM_ISOTROPIC
+wxMM_ANISOTROPIC = __core.wxMM_ANISOTROPIC
+wxMM_POINTS = __core.wxMM_POINTS
+wxMM_METRIC = __core.wxMM_METRIC
+wxCENTRE = __core.wxCENTRE
+wxCENTER = __core.wxCENTER
+wxHORIZONTAL = __core.wxHORIZONTAL
+wxVERTICAL = __core.wxVERTICAL
+wxBOTH = __core.wxBOTH
+wxLEFT = __core.wxLEFT
+wxRIGHT = __core.wxRIGHT
+wxUP = __core.wxUP
+wxDOWN = __core.wxDOWN
+wxTOP = __core.wxTOP
+wxBOTTOM = __core.wxBOTTOM
+wxNORTH = __core.wxNORTH
+wxSOUTH = __core.wxSOUTH
+wxWEST = __core.wxWEST
+wxEAST = __core.wxEAST
+wxALL = __core.wxALL
+wxALIGN_NOT = __core.wxALIGN_NOT
+wxALIGN_CENTER_HORIZONTAL = __core.wxALIGN_CENTER_HORIZONTAL
+wxALIGN_CENTRE_HORIZONTAL = __core.wxALIGN_CENTRE_HORIZONTAL
+wxALIGN_LEFT = __core.wxALIGN_LEFT
+wxALIGN_TOP = __core.wxALIGN_TOP
+wxALIGN_RIGHT = __core.wxALIGN_RIGHT
+wxALIGN_BOTTOM = __core.wxALIGN_BOTTOM
+wxALIGN_CENTER_VERTICAL = __core.wxALIGN_CENTER_VERTICAL
+wxALIGN_CENTRE_VERTICAL = __core.wxALIGN_CENTRE_VERTICAL
+wxALIGN_CENTER = __core.wxALIGN_CENTER
+wxALIGN_CENTRE = __core.wxALIGN_CENTRE
+wxALIGN_MASK = __core.wxALIGN_MASK
+wxSTRETCH_NOT = __core.wxSTRETCH_NOT
+wxSHRINK = __core.wxSHRINK
+wxGROW = __core.wxGROW
+wxEXPAND = __core.wxEXPAND
+wxSHAPED = __core.wxSHAPED
+wxFIXED_MINSIZE = __core.wxFIXED_MINSIZE
+wxTILE = __core.wxTILE
+wxADJUST_MINSIZE = __core.wxADJUST_MINSIZE
+wxBORDER_DEFAULT = __core.wxBORDER_DEFAULT
+wxBORDER_NONE = __core.wxBORDER_NONE
+wxBORDER_STATIC = __core.wxBORDER_STATIC
+wxBORDER_SIMPLE = __core.wxBORDER_SIMPLE
+wxBORDER_RAISED = __core.wxBORDER_RAISED
+wxBORDER_SUNKEN = __core.wxBORDER_SUNKEN
+wxBORDER_DOUBLE = __core.wxBORDER_DOUBLE
+wxBORDER_MASK = __core.wxBORDER_MASK
+wxBG_STYLE_SYSTEM = __core.wxBG_STYLE_SYSTEM
+wxBG_STYLE_COLOUR = __core.wxBG_STYLE_COLOUR
+wxBG_STYLE_CUSTOM = __core.wxBG_STYLE_CUSTOM
+wxDEFAULT = __core.wxDEFAULT
+wxDECORATIVE = __core.wxDECORATIVE
+wxROMAN = __core.wxROMAN
+wxSCRIPT = __core.wxSCRIPT
+wxSWISS = __core.wxSWISS
+wxMODERN = __core.wxMODERN
+wxTELETYPE = __core.wxTELETYPE
+wxVARIABLE = __core.wxVARIABLE
+wxFIXED = __core.wxFIXED
+wxNORMAL = __core.wxNORMAL
+wxLIGHT = __core.wxLIGHT
+wxBOLD = __core.wxBOLD
+wxITALIC = __core.wxITALIC
+wxSLANT = __core.wxSLANT
+wxSOLID = __core.wxSOLID
+wxDOT = __core.wxDOT
+wxLONG_DASH = __core.wxLONG_DASH
+wxSHORT_DASH = __core.wxSHORT_DASH
+wxDOT_DASH = __core.wxDOT_DASH
+wxUSER_DASH = __core.wxUSER_DASH
+wxTRANSPARENT = __core.wxTRANSPARENT
+wxSTIPPLE = __core.wxSTIPPLE
+wxBDIAGONAL_HATCH = __core.wxBDIAGONAL_HATCH
+wxCROSSDIAG_HATCH = __core.wxCROSSDIAG_HATCH
+wxFDIAGONAL_HATCH = __core.wxFDIAGONAL_HATCH
+wxCROSS_HATCH = __core.wxCROSS_HATCH
+wxHORIZONTAL_HATCH = __core.wxHORIZONTAL_HATCH
+wxVERTICAL_HATCH = __core.wxVERTICAL_HATCH
+wxJOIN_BEVEL = __core.wxJOIN_BEVEL
+wxJOIN_MITER = __core.wxJOIN_MITER
+wxJOIN_ROUND = __core.wxJOIN_ROUND
+wxCAP_ROUND = __core.wxCAP_ROUND
+wxCAP_PROJECTING = __core.wxCAP_PROJECTING
+wxCAP_BUTT = __core.wxCAP_BUTT
+wxCLEAR = __core.wxCLEAR
+wxXOR = __core.wxXOR
+wxINVERT = __core.wxINVERT
+wxOR_REVERSE = __core.wxOR_REVERSE
+wxAND_REVERSE = __core.wxAND_REVERSE
+wxCOPY = __core.wxCOPY
+wxAND = __core.wxAND
+wxAND_INVERT = __core.wxAND_INVERT
+wxNO_OP = __core.wxNO_OP
+wxNOR = __core.wxNOR
+wxEQUIV = __core.wxEQUIV
+wxSRC_INVERT = __core.wxSRC_INVERT
+wxOR_INVERT = __core.wxOR_INVERT
+wxNAND = __core.wxNAND
+wxOR = __core.wxOR
+wxSET = __core.wxSET
+WXK_BACK = __core.WXK_BACK
+WXK_TAB = __core.WXK_TAB
+WXK_RETURN = __core.WXK_RETURN
+WXK_ESCAPE = __core.WXK_ESCAPE
+WXK_SPACE = __core.WXK_SPACE
+WXK_DELETE = __core.WXK_DELETE
+WXK_START = __core.WXK_START
+WXK_LBUTTON = __core.WXK_LBUTTON
+WXK_RBUTTON = __core.WXK_RBUTTON
+WXK_CANCEL = __core.WXK_CANCEL
+WXK_MBUTTON = __core.WXK_MBUTTON
+WXK_CLEAR = __core.WXK_CLEAR
+WXK_SHIFT = __core.WXK_SHIFT
+WXK_ALT = __core.WXK_ALT
+WXK_CONTROL = __core.WXK_CONTROL
+WXK_MENU = __core.WXK_MENU
+WXK_PAUSE = __core.WXK_PAUSE
+WXK_CAPITAL = __core.WXK_CAPITAL
+WXK_PRIOR = __core.WXK_PRIOR
+WXK_NEXT = __core.WXK_NEXT
+WXK_END = __core.WXK_END
+WXK_HOME = __core.WXK_HOME
+WXK_LEFT = __core.WXK_LEFT
+WXK_UP = __core.WXK_UP
+WXK_RIGHT = __core.WXK_RIGHT
+WXK_DOWN = __core.WXK_DOWN
+WXK_SELECT = __core.WXK_SELECT
+WXK_PRINT = __core.WXK_PRINT
+WXK_EXECUTE = __core.WXK_EXECUTE
+WXK_SNAPSHOT = __core.WXK_SNAPSHOT
+WXK_INSERT = __core.WXK_INSERT
+WXK_HELP = __core.WXK_HELP
+WXK_NUMPAD0 = __core.WXK_NUMPAD0
+WXK_NUMPAD1 = __core.WXK_NUMPAD1
+WXK_NUMPAD2 = __core.WXK_NUMPAD2
+WXK_NUMPAD3 = __core.WXK_NUMPAD3
+WXK_NUMPAD4 = __core.WXK_NUMPAD4
+WXK_NUMPAD5 = __core.WXK_NUMPAD5
+WXK_NUMPAD6 = __core.WXK_NUMPAD6
+WXK_NUMPAD7 = __core.WXK_NUMPAD7
+WXK_NUMPAD8 = __core.WXK_NUMPAD8
+WXK_NUMPAD9 = __core.WXK_NUMPAD9
+WXK_MULTIPLY = __core.WXK_MULTIPLY
+WXK_ADD = __core.WXK_ADD
+WXK_SEPARATOR = __core.WXK_SEPARATOR
+WXK_SUBTRACT = __core.WXK_SUBTRACT
+WXK_DECIMAL = __core.WXK_DECIMAL
+WXK_DIVIDE = __core.WXK_DIVIDE
+WXK_F1 = __core.WXK_F1
+WXK_F2 = __core.WXK_F2
+WXK_F3 = __core.WXK_F3
+WXK_F4 = __core.WXK_F4
+WXK_F5 = __core.WXK_F5
+WXK_F6 = __core.WXK_F6
+WXK_F7 = __core.WXK_F7
+WXK_F8 = __core.WXK_F8
+WXK_F9 = __core.WXK_F9
+WXK_F10 = __core.WXK_F10
+WXK_F11 = __core.WXK_F11
+WXK_F12 = __core.WXK_F12
+WXK_F13 = __core.WXK_F13
+WXK_F14 = __core.WXK_F14
+WXK_F15 = __core.WXK_F15
+WXK_F16 = __core.WXK_F16
+WXK_F17 = __core.WXK_F17
+WXK_F18 = __core.WXK_F18
+WXK_F19 = __core.WXK_F19
+WXK_F20 = __core.WXK_F20
+WXK_F21 = __core.WXK_F21
+WXK_F22 = __core.WXK_F22
+WXK_F23 = __core.WXK_F23
+WXK_F24 = __core.WXK_F24
+WXK_NUMLOCK = __core.WXK_NUMLOCK
+WXK_SCROLL = __core.WXK_SCROLL
+WXK_PAGEUP = __core.WXK_PAGEUP
+WXK_PAGEDOWN = __core.WXK_PAGEDOWN
+WXK_NUMPAD_SPACE = __core.WXK_NUMPAD_SPACE
+WXK_NUMPAD_TAB = __core.WXK_NUMPAD_TAB
+WXK_NUMPAD_ENTER = __core.WXK_NUMPAD_ENTER
+WXK_NUMPAD_F1 = __core.WXK_NUMPAD_F1
+WXK_NUMPAD_F2 = __core.WXK_NUMPAD_F2
+WXK_NUMPAD_F3 = __core.WXK_NUMPAD_F3
+WXK_NUMPAD_F4 = __core.WXK_NUMPAD_F4
+WXK_NUMPAD_HOME = __core.WXK_NUMPAD_HOME
+WXK_NUMPAD_LEFT = __core.WXK_NUMPAD_LEFT
+WXK_NUMPAD_UP = __core.WXK_NUMPAD_UP
+WXK_NUMPAD_RIGHT = __core.WXK_NUMPAD_RIGHT
+WXK_NUMPAD_DOWN = __core.WXK_NUMPAD_DOWN
+WXK_NUMPAD_PRIOR = __core.WXK_NUMPAD_PRIOR
+WXK_NUMPAD_PAGEUP = __core.WXK_NUMPAD_PAGEUP
+WXK_NUMPAD_NEXT = __core.WXK_NUMPAD_NEXT
+WXK_NUMPAD_PAGEDOWN = __core.WXK_NUMPAD_PAGEDOWN
+WXK_NUMPAD_END = __core.WXK_NUMPAD_END
+WXK_NUMPAD_BEGIN = __core.WXK_NUMPAD_BEGIN
+WXK_NUMPAD_INSERT = __core.WXK_NUMPAD_INSERT
+WXK_NUMPAD_DELETE = __core.WXK_NUMPAD_DELETE
+WXK_NUMPAD_EQUAL = __core.WXK_NUMPAD_EQUAL
+WXK_NUMPAD_MULTIPLY = __core.WXK_NUMPAD_MULTIPLY
+WXK_NUMPAD_ADD = __core.WXK_NUMPAD_ADD
+WXK_NUMPAD_SEPARATOR = __core.WXK_NUMPAD_SEPARATOR
+WXK_NUMPAD_SUBTRACT = __core.WXK_NUMPAD_SUBTRACT
+WXK_NUMPAD_DECIMAL = __core.WXK_NUMPAD_DECIMAL
+WXK_NUMPAD_DIVIDE = __core.WXK_NUMPAD_DIVIDE
+WXK_WINDOWS_LEFT = __core.WXK_WINDOWS_LEFT
+WXK_WINDOWS_RIGHT = __core.WXK_WINDOWS_RIGHT
+WXK_WINDOWS_MENU = __core.WXK_WINDOWS_MENU
+WXK_COMMAND = __core.WXK_COMMAND
+WXK_SPECIAL1 = __core.WXK_SPECIAL1
+WXK_SPECIAL2 = __core.WXK_SPECIAL2
+WXK_SPECIAL3 = __core.WXK_SPECIAL3
+WXK_SPECIAL4 = __core.WXK_SPECIAL4
+WXK_SPECIAL5 = __core.WXK_SPECIAL5
+WXK_SPECIAL6 = __core.WXK_SPECIAL6
+WXK_SPECIAL7 = __core.WXK_SPECIAL7
+WXK_SPECIAL8 = __core.WXK_SPECIAL8
+WXK_SPECIAL9 = __core.WXK_SPECIAL9
+WXK_SPECIAL10 = __core.WXK_SPECIAL10
+WXK_SPECIAL11 = __core.WXK_SPECIAL11
+WXK_SPECIAL12 = __core.WXK_SPECIAL12
+WXK_SPECIAL13 = __core.WXK_SPECIAL13
+WXK_SPECIAL14 = __core.WXK_SPECIAL14
+WXK_SPECIAL15 = __core.WXK_SPECIAL15
+WXK_SPECIAL16 = __core.WXK_SPECIAL16
+WXK_SPECIAL17 = __core.WXK_SPECIAL17
+WXK_SPECIAL18 = __core.WXK_SPECIAL18
+WXK_SPECIAL19 = __core.WXK_SPECIAL19
+WXK_SPECIAL20 = __core.WXK_SPECIAL20
+wxPAPER_NONE = __core.wxPAPER_NONE
+wxPAPER_LETTER = __core.wxPAPER_LETTER
+wxPAPER_LEGAL = __core.wxPAPER_LEGAL
+wxPAPER_A4 = __core.wxPAPER_A4
+wxPAPER_CSHEET = __core.wxPAPER_CSHEET
+wxPAPER_DSHEET = __core.wxPAPER_DSHEET
+wxPAPER_ESHEET = __core.wxPAPER_ESHEET
+wxPAPER_LETTERSMALL = __core.wxPAPER_LETTERSMALL
+wxPAPER_TABLOID = __core.wxPAPER_TABLOID
+wxPAPER_LEDGER = __core.wxPAPER_LEDGER
+wxPAPER_STATEMENT = __core.wxPAPER_STATEMENT
+wxPAPER_EXECUTIVE = __core.wxPAPER_EXECUTIVE
+wxPAPER_A3 = __core.wxPAPER_A3
+wxPAPER_A4SMALL = __core.wxPAPER_A4SMALL
+wxPAPER_A5 = __core.wxPAPER_A5
+wxPAPER_B4 = __core.wxPAPER_B4
+wxPAPER_B5 = __core.wxPAPER_B5
+wxPAPER_FOLIO = __core.wxPAPER_FOLIO
+wxPAPER_QUARTO = __core.wxPAPER_QUARTO
+wxPAPER_10X14 = __core.wxPAPER_10X14
+wxPAPER_11X17 = __core.wxPAPER_11X17
+wxPAPER_NOTE = __core.wxPAPER_NOTE
+wxPAPER_ENV_9 = __core.wxPAPER_ENV_9
+wxPAPER_ENV_10 = __core.wxPAPER_ENV_10
+wxPAPER_ENV_11 = __core.wxPAPER_ENV_11
+wxPAPER_ENV_12 = __core.wxPAPER_ENV_12
+wxPAPER_ENV_14 = __core.wxPAPER_ENV_14
+wxPAPER_ENV_DL = __core.wxPAPER_ENV_DL
+wxPAPER_ENV_C5 = __core.wxPAPER_ENV_C5
+wxPAPER_ENV_C3 = __core.wxPAPER_ENV_C3
+wxPAPER_ENV_C4 = __core.wxPAPER_ENV_C4
+wxPAPER_ENV_C6 = __core.wxPAPER_ENV_C6
+wxPAPER_ENV_C65 = __core.wxPAPER_ENV_C65
+wxPAPER_ENV_B4 = __core.wxPAPER_ENV_B4
+wxPAPER_ENV_B5 = __core.wxPAPER_ENV_B5
+wxPAPER_ENV_B6 = __core.wxPAPER_ENV_B6
+wxPAPER_ENV_ITALY = __core.wxPAPER_ENV_ITALY
+wxPAPER_ENV_MONARCH = __core.wxPAPER_ENV_MONARCH
+wxPAPER_ENV_PERSONAL = __core.wxPAPER_ENV_PERSONAL
+wxPAPER_FANFOLD_US = __core.wxPAPER_FANFOLD_US
+wxPAPER_FANFOLD_STD_GERMAN = __core.wxPAPER_FANFOLD_STD_GERMAN
+wxPAPER_FANFOLD_LGL_GERMAN = __core.wxPAPER_FANFOLD_LGL_GERMAN
+wxPAPER_ISO_B4 = __core.wxPAPER_ISO_B4
+wxPAPER_JAPANESE_POSTCARD = __core.wxPAPER_JAPANESE_POSTCARD
+wxPAPER_9X11 = __core.wxPAPER_9X11
+wxPAPER_10X11 = __core.wxPAPER_10X11
+wxPAPER_15X11 = __core.wxPAPER_15X11
+wxPAPER_ENV_INVITE = __core.wxPAPER_ENV_INVITE
+wxPAPER_LETTER_EXTRA = __core.wxPAPER_LETTER_EXTRA
+wxPAPER_LEGAL_EXTRA = __core.wxPAPER_LEGAL_EXTRA
+wxPAPER_TABLOID_EXTRA = __core.wxPAPER_TABLOID_EXTRA
+wxPAPER_A4_EXTRA = __core.wxPAPER_A4_EXTRA
+wxPAPER_LETTER_TRANSVERSE = __core.wxPAPER_LETTER_TRANSVERSE
+wxPAPER_A4_TRANSVERSE = __core.wxPAPER_A4_TRANSVERSE
+wxPAPER_LETTER_EXTRA_TRANSVERSE = __core.wxPAPER_LETTER_EXTRA_TRANSVERSE
+wxPAPER_A_PLUS = __core.wxPAPER_A_PLUS
+wxPAPER_B_PLUS = __core.wxPAPER_B_PLUS
+wxPAPER_LETTER_PLUS = __core.wxPAPER_LETTER_PLUS
+wxPAPER_A4_PLUS = __core.wxPAPER_A4_PLUS
+wxPAPER_A5_TRANSVERSE = __core.wxPAPER_A5_TRANSVERSE
+wxPAPER_B5_TRANSVERSE = __core.wxPAPER_B5_TRANSVERSE
+wxPAPER_A3_EXTRA = __core.wxPAPER_A3_EXTRA
+wxPAPER_A5_EXTRA = __core.wxPAPER_A5_EXTRA
+wxPAPER_B5_EXTRA = __core.wxPAPER_B5_EXTRA
+wxPAPER_A2 = __core.wxPAPER_A2
+wxPAPER_A3_TRANSVERSE = __core.wxPAPER_A3_TRANSVERSE
+wxPAPER_A3_EXTRA_TRANSVERSE = __core.wxPAPER_A3_EXTRA_TRANSVERSE
+wxDUPLEX_SIMPLEX = __core.wxDUPLEX_SIMPLEX
+wxDUPLEX_HORIZONTAL = __core.wxDUPLEX_HORIZONTAL
+wxDUPLEX_VERTICAL = __core.wxDUPLEX_VERTICAL
+wxITEM_SEPARATOR = __core.wxITEM_SEPARATOR
+wxITEM_NORMAL = __core.wxITEM_NORMAL
+wxITEM_CHECK = __core.wxITEM_CHECK
+wxITEM_RADIO = __core.wxITEM_RADIO
+wxITEM_MAX = __core.wxITEM_MAX
+wxHT_NOWHERE = __core.wxHT_NOWHERE
+wxHT_SCROLLBAR_FIRST = __core.wxHT_SCROLLBAR_FIRST
+wxHT_SCROLLBAR_ARROW_LINE_1 = __core.wxHT_SCROLLBAR_ARROW_LINE_1
+wxHT_SCROLLBAR_ARROW_LINE_2 = __core.wxHT_SCROLLBAR_ARROW_LINE_2
+wxHT_SCROLLBAR_ARROW_PAGE_1 = __core.wxHT_SCROLLBAR_ARROW_PAGE_1
+wxHT_SCROLLBAR_ARROW_PAGE_2 = __core.wxHT_SCROLLBAR_ARROW_PAGE_2
+wxHT_SCROLLBAR_THUMB = __core.wxHT_SCROLLBAR_THUMB
+wxHT_SCROLLBAR_BAR_1 = __core.wxHT_SCROLLBAR_BAR_1
+wxHT_SCROLLBAR_BAR_2 = __core.wxHT_SCROLLBAR_BAR_2
+wxHT_SCROLLBAR_LAST = __core.wxHT_SCROLLBAR_LAST
+wxHT_WINDOW_OUTSIDE = __core.wxHT_WINDOW_OUTSIDE
+wxHT_WINDOW_INSIDE = __core.wxHT_WINDOW_INSIDE
+wxHT_WINDOW_VERT_SCROLLBAR = __core.wxHT_WINDOW_VERT_SCROLLBAR
+wxHT_WINDOW_HORZ_SCROLLBAR = __core.wxHT_WINDOW_HORZ_SCROLLBAR
+wxHT_WINDOW_CORNER = __core.wxHT_WINDOW_CORNER
+wxHT_MAX = __core.wxHT_MAX
+wxMOD_NONE = __core.wxMOD_NONE
+wxMOD_ALT = __core.wxMOD_ALT
+wxMOD_CONTROL = __core.wxMOD_CONTROL
+wxMOD_SHIFT = __core.wxMOD_SHIFT
+wxMOD_WIN = __core.wxMOD_WIN
+wxUPDATE_UI_NONE = __core.wxUPDATE_UI_NONE
+wxUPDATE_UI_RECURSE = __core.wxUPDATE_UI_RECURSE
+wxUPDATE_UI_FROMIDLE = __core.wxUPDATE_UI_FROMIDLE
#---------------------------------------------------------------------------
-class Object(object):
+class wxObject(object):
"""
The base class for most wx objects, although in wxPython not
much functionality is needed nor exposed.
return "<%s.%s; proxy of C++ wxObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def GetClassName(*args, **kwargs):
"""
- GetClassName(self) -> String
+ GetClassName(self) -> wxString
Returns the class name of the C++ class using wxRTTI.
"""
- return _core_.Object_GetClassName(*args, **kwargs)
+ return __core.wxObject_GetClassName(*args, **kwargs)
def Destroy(*args, **kwargs):
"""
Deletes the C++ object this Python object is a proxy for.
"""
- return _core_.Object_Destroy(*args, **kwargs)
+ return __core.wxObject_Destroy(*args, **kwargs)
-class ObjectPtr(Object):
+class wxObjectPtr(wxObject):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = Object
-_core_.Object_swigregister(ObjectPtr)
-_wxPySetDictionary = _core_._wxPySetDictionary
+ self.__class__ = wxObject
+__core.wxObject_swigregister(wxObjectPtr)
+_wxPySetDictionary = __core._wxPySetDictionary
-_wxPyFixStockObjects = _core_._wxPyFixStockObjects
+_wxPyFixStockObjects = __core._wxPyFixStockObjects
-cvar = _core_.cvar
+cvar = __core.cvar
EmptyString = cvar.EmptyString
#---------------------------------------------------------------------------
-BITMAP_TYPE_INVALID = _core_.BITMAP_TYPE_INVALID
-BITMAP_TYPE_BMP = _core_.BITMAP_TYPE_BMP
-BITMAP_TYPE_ICO = _core_.BITMAP_TYPE_ICO
-BITMAP_TYPE_CUR = _core_.BITMAP_TYPE_CUR
-BITMAP_TYPE_XBM = _core_.BITMAP_TYPE_XBM
-BITMAP_TYPE_XBM_DATA = _core_.BITMAP_TYPE_XBM_DATA
-BITMAP_TYPE_XPM = _core_.BITMAP_TYPE_XPM
-BITMAP_TYPE_XPM_DATA = _core_.BITMAP_TYPE_XPM_DATA
-BITMAP_TYPE_TIF = _core_.BITMAP_TYPE_TIF
-BITMAP_TYPE_GIF = _core_.BITMAP_TYPE_GIF
-BITMAP_TYPE_PNG = _core_.BITMAP_TYPE_PNG
-BITMAP_TYPE_JPEG = _core_.BITMAP_TYPE_JPEG
-BITMAP_TYPE_PNM = _core_.BITMAP_TYPE_PNM
-BITMAP_TYPE_PCX = _core_.BITMAP_TYPE_PCX
-BITMAP_TYPE_PICT = _core_.BITMAP_TYPE_PICT
-BITMAP_TYPE_ICON = _core_.BITMAP_TYPE_ICON
-BITMAP_TYPE_ANI = _core_.BITMAP_TYPE_ANI
-BITMAP_TYPE_IFF = _core_.BITMAP_TYPE_IFF
-BITMAP_TYPE_MACCURSOR = _core_.BITMAP_TYPE_MACCURSOR
-BITMAP_TYPE_ANY = _core_.BITMAP_TYPE_ANY
-CURSOR_NONE = _core_.CURSOR_NONE
-CURSOR_ARROW = _core_.CURSOR_ARROW
-CURSOR_RIGHT_ARROW = _core_.CURSOR_RIGHT_ARROW
-CURSOR_BULLSEYE = _core_.CURSOR_BULLSEYE
-CURSOR_CHAR = _core_.CURSOR_CHAR
-CURSOR_CROSS = _core_.CURSOR_CROSS
-CURSOR_HAND = _core_.CURSOR_HAND
-CURSOR_IBEAM = _core_.CURSOR_IBEAM
-CURSOR_LEFT_BUTTON = _core_.CURSOR_LEFT_BUTTON
-CURSOR_MAGNIFIER = _core_.CURSOR_MAGNIFIER
-CURSOR_MIDDLE_BUTTON = _core_.CURSOR_MIDDLE_BUTTON
-CURSOR_NO_ENTRY = _core_.CURSOR_NO_ENTRY
-CURSOR_PAINT_BRUSH = _core_.CURSOR_PAINT_BRUSH
-CURSOR_PENCIL = _core_.CURSOR_PENCIL
-CURSOR_POINT_LEFT = _core_.CURSOR_POINT_LEFT
-CURSOR_POINT_RIGHT = _core_.CURSOR_POINT_RIGHT
-CURSOR_QUESTION_ARROW = _core_.CURSOR_QUESTION_ARROW
-CURSOR_RIGHT_BUTTON = _core_.CURSOR_RIGHT_BUTTON
-CURSOR_SIZENESW = _core_.CURSOR_SIZENESW
-CURSOR_SIZENS = _core_.CURSOR_SIZENS
-CURSOR_SIZENWSE = _core_.CURSOR_SIZENWSE
-CURSOR_SIZEWE = _core_.CURSOR_SIZEWE
-CURSOR_SIZING = _core_.CURSOR_SIZING
-CURSOR_SPRAYCAN = _core_.CURSOR_SPRAYCAN
-CURSOR_WAIT = _core_.CURSOR_WAIT
-CURSOR_WATCH = _core_.CURSOR_WATCH
-CURSOR_BLANK = _core_.CURSOR_BLANK
-CURSOR_DEFAULT = _core_.CURSOR_DEFAULT
-CURSOR_COPY_ARROW = _core_.CURSOR_COPY_ARROW
-CURSOR_ARROWWAIT = _core_.CURSOR_ARROWWAIT
-CURSOR_MAX = _core_.CURSOR_MAX
+wxBITMAP_TYPE_INVALID = __core.wxBITMAP_TYPE_INVALID
+wxBITMAP_TYPE_BMP = __core.wxBITMAP_TYPE_BMP
+wxBITMAP_TYPE_ICO = __core.wxBITMAP_TYPE_ICO
+wxBITMAP_TYPE_CUR = __core.wxBITMAP_TYPE_CUR
+wxBITMAP_TYPE_XBM = __core.wxBITMAP_TYPE_XBM
+wxBITMAP_TYPE_XBM_DATA = __core.wxBITMAP_TYPE_XBM_DATA
+wxBITMAP_TYPE_XPM = __core.wxBITMAP_TYPE_XPM
+wxBITMAP_TYPE_XPM_DATA = __core.wxBITMAP_TYPE_XPM_DATA
+wxBITMAP_TYPE_TIF = __core.wxBITMAP_TYPE_TIF
+wxBITMAP_TYPE_GIF = __core.wxBITMAP_TYPE_GIF
+wxBITMAP_TYPE_PNG = __core.wxBITMAP_TYPE_PNG
+wxBITMAP_TYPE_JPEG = __core.wxBITMAP_TYPE_JPEG
+wxBITMAP_TYPE_PNM = __core.wxBITMAP_TYPE_PNM
+wxBITMAP_TYPE_PCX = __core.wxBITMAP_TYPE_PCX
+wxBITMAP_TYPE_PICT = __core.wxBITMAP_TYPE_PICT
+wxBITMAP_TYPE_ICON = __core.wxBITMAP_TYPE_ICON
+wxBITMAP_TYPE_ANI = __core.wxBITMAP_TYPE_ANI
+wxBITMAP_TYPE_IFF = __core.wxBITMAP_TYPE_IFF
+wxBITMAP_TYPE_MACCURSOR = __core.wxBITMAP_TYPE_MACCURSOR
+wxBITMAP_TYPE_ANY = __core.wxBITMAP_TYPE_ANY
+wxCURSOR_NONE = __core.wxCURSOR_NONE
+wxCURSOR_ARROW = __core.wxCURSOR_ARROW
+wxCURSOR_RIGHT_ARROW = __core.wxCURSOR_RIGHT_ARROW
+wxCURSOR_BULLSEYE = __core.wxCURSOR_BULLSEYE
+wxCURSOR_CHAR = __core.wxCURSOR_CHAR
+wxCURSOR_CROSS = __core.wxCURSOR_CROSS
+wxCURSOR_HAND = __core.wxCURSOR_HAND
+wxCURSOR_IBEAM = __core.wxCURSOR_IBEAM
+wxCURSOR_LEFT_BUTTON = __core.wxCURSOR_LEFT_BUTTON
+wxCURSOR_MAGNIFIER = __core.wxCURSOR_MAGNIFIER
+wxCURSOR_MIDDLE_BUTTON = __core.wxCURSOR_MIDDLE_BUTTON
+wxCURSOR_NO_ENTRY = __core.wxCURSOR_NO_ENTRY
+wxCURSOR_PAINT_BRUSH = __core.wxCURSOR_PAINT_BRUSH
+wxCURSOR_PENCIL = __core.wxCURSOR_PENCIL
+wxCURSOR_POINT_LEFT = __core.wxCURSOR_POINT_LEFT
+wxCURSOR_POINT_RIGHT = __core.wxCURSOR_POINT_RIGHT
+wxCURSOR_QUESTION_ARROW = __core.wxCURSOR_QUESTION_ARROW
+wxCURSOR_RIGHT_BUTTON = __core.wxCURSOR_RIGHT_BUTTON
+wxCURSOR_SIZENESW = __core.wxCURSOR_SIZENESW
+wxCURSOR_SIZENS = __core.wxCURSOR_SIZENS
+wxCURSOR_SIZENWSE = __core.wxCURSOR_SIZENWSE
+wxCURSOR_SIZEWE = __core.wxCURSOR_SIZEWE
+wxCURSOR_SIZING = __core.wxCURSOR_SIZING
+wxCURSOR_SPRAYCAN = __core.wxCURSOR_SPRAYCAN
+wxCURSOR_WAIT = __core.wxCURSOR_WAIT
+wxCURSOR_WATCH = __core.wxCURSOR_WATCH
+wxCURSOR_BLANK = __core.wxCURSOR_BLANK
+wxCURSOR_DEFAULT = __core.wxCURSOR_DEFAULT
+wxCURSOR_COPY_ARROW = __core.wxCURSOR_COPY_ARROW
+wxCURSOR_ARROWWAIT = __core.wxCURSOR_ARROWWAIT
+wxCURSOR_MAX = __core.wxCURSOR_MAX
#---------------------------------------------------------------------------
-class Size(object):
+class wxSize(object):
"""
wx.Size is a useful data structure used to represent the size of
- something. It simply contians integer width and height proprtites.
- In most places in wxPython where a wx.Size is expected a
- (width,height) tuple can be used instead.
+ something. It simply contians integer width and height
+ proprtites. In most places in wxPython where a wx.Size is
+ expected a (width, height) tuple can be used instead.
"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxSize instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
- width = property(_core_.Size_width_get, _core_.Size_width_set)
- height = property(_core_.Size_height_get, _core_.Size_height_set)
+ width = property(__core.wxSize_width_get, __core.wxSize_width_set)
+ height = property(__core.wxSize_height_get, __core.wxSize_height_set)
x = width; y = height
def __init__(self, *args, **kwargs):
"""
- __init__(self, int w=0, int h=0) -> Size
+ __init__(self, int w=0, int h=0) -> wxSize
Creates a size object.
"""
- newobj = _core_.new_Size(*args, **kwargs)
+ newobj = __core.new_wxSize(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
- def __del__(self, destroy=_core_.delete_Size):
+ def __del__(self, destroy=__core.delete_wxSize):
"""__del__(self)"""
try:
if self.thisown: destroy(self)
def __eq__(*args, **kwargs):
"""
- __eq__(self, Size sz) -> bool
+ __eq__(self, wxSize sz) -> bool
Test for equality of wx.Size objects.
"""
- return _core_.Size___eq__(*args, **kwargs)
+ return __core.wxSize___eq__(*args, **kwargs)
def __ne__(*args, **kwargs):
"""
- __ne__(self, Size sz) -> bool
+ __ne__(self, wxSize sz) -> bool
Test for inequality.
"""
- return _core_.Size___ne__(*args, **kwargs)
+ return __core.wxSize___ne__(*args, **kwargs)
def __add__(*args, **kwargs):
"""
- __add__(self, Size sz) -> Size
+ __add__(self, wxSize sz) -> wxSize
Add sz's proprties to this and return the result.
"""
- return _core_.Size___add__(*args, **kwargs)
+ return __core.wxSize___add__(*args, **kwargs)
def __sub__(*args, **kwargs):
"""
- __sub__(self, Size sz) -> Size
+ __sub__(self, wxSize sz) -> wxSize
Subtract sz's properties from this and return the result.
"""
- return _core_.Size___sub__(*args, **kwargs)
+ return __core.wxSize___sub__(*args, **kwargs)
def IncTo(*args, **kwargs):
"""
- IncTo(self, Size sz)
+ IncTo(self, wxSize sz)
Increments this object so that both of its dimensions are not less
than the corresponding dimensions of the size.
"""
- return _core_.Size_IncTo(*args, **kwargs)
+ return __core.wxSize_IncTo(*args, **kwargs)
def DecTo(*args, **kwargs):
"""
- DecTo(self, Size sz)
+ DecTo(self, wxSize sz)
Decrements this object so that both of its dimensions are not greater
than the corresponding dimensions of the size.
"""
- return _core_.Size_DecTo(*args, **kwargs)
+ return __core.wxSize_DecTo(*args, **kwargs)
def Set(*args, **kwargs):
"""
Set both width and height.
"""
- return _core_.Size_Set(*args, **kwargs)
+ return __core.wxSize_Set(*args, **kwargs)
def SetWidth(*args, **kwargs):
"""SetWidth(self, int w)"""
- return _core_.Size_SetWidth(*args, **kwargs)
+ return __core.wxSize_SetWidth(*args, **kwargs)
def SetHeight(*args, **kwargs):
"""SetHeight(self, int h)"""
- return _core_.Size_SetHeight(*args, **kwargs)
+ return __core.wxSize_SetHeight(*args, **kwargs)
def GetWidth(*args, **kwargs):
"""GetWidth(self) -> int"""
- return _core_.Size_GetWidth(*args, **kwargs)
+ return __core.wxSize_GetWidth(*args, **kwargs)
def GetHeight(*args, **kwargs):
"""GetHeight(self) -> int"""
- return _core_.Size_GetHeight(*args, **kwargs)
+ return __core.wxSize_GetHeight(*args, **kwargs)
def IsFullySpecified(*args, **kwargs):
"""
Returns True if both components of the size are non-default values.
"""
- return _core_.Size_IsFullySpecified(*args, **kwargs)
+ return __core.wxSize_IsFullySpecified(*args, **kwargs)
def SetDefaults(*args, **kwargs):
"""
- SetDefaults(self, Size size)
+ SetDefaults(self, wxSize size)
Combine this size with the other one replacing the default components
of this object (i.e. equal to -1) with those of the other.
"""
- return _core_.Size_SetDefaults(*args, **kwargs)
+ return __core.wxSize_SetDefaults(*args, **kwargs)
def Get(*args, **kwargs):
"""
Returns the width and height properties as a tuple.
"""
- return _core_.Size_Get(*args, **kwargs)
+ return __core.wxSize_Get(*args, **kwargs)
asTuple = wx._deprecated(Get, "asTuple is deprecated, use `Get` instead")
def __str__(self): return str(self.Get())
def __reduce__(self): return (wx.Size, self.Get())
-class SizePtr(Size):
+class wxSizePtr(wxSize):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = Size
-_core_.Size_swigregister(SizePtr)
+ self.__class__ = wxSize
+__core.wxSize_swigregister(wxSizePtr)
#---------------------------------------------------------------------------
-class RealPoint(object):
+class wxRealPoint(object):
"""
A data structure for representing a point or position with floating
point x and y properties. In wxPython most places that expect a
"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxRealPoint instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
- x = property(_core_.RealPoint_x_get, _core_.RealPoint_x_set)
- y = property(_core_.RealPoint_y_get, _core_.RealPoint_y_set)
+ x = property(__core.wxRealPoint_x_get, __core.wxRealPoint_x_set)
+ y = property(__core.wxRealPoint_y_get, __core.wxRealPoint_y_set)
def __init__(self, *args, **kwargs):
"""
- __init__(self, double x=0.0, double y=0.0) -> RealPoint
+ __init__(self, double x=0.0, double y=0.0) -> wxRealPoint
Create a wx.RealPoint object
"""
- newobj = _core_.new_RealPoint(*args, **kwargs)
+ newobj = __core.new_wxRealPoint(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
- def __del__(self, destroy=_core_.delete_RealPoint):
+ def __del__(self, destroy=__core.delete_wxRealPoint):
"""__del__(self)"""
try:
if self.thisown: destroy(self)
def __eq__(*args, **kwargs):
"""
- __eq__(self, RealPoint pt) -> bool
+ __eq__(self, wxRealPoint pt) -> bool
Test for equality of wx.RealPoint objects.
"""
- return _core_.RealPoint___eq__(*args, **kwargs)
+ return __core.wxRealPoint___eq__(*args, **kwargs)
def __ne__(*args, **kwargs):
"""
- __ne__(self, RealPoint pt) -> bool
+ __ne__(self, wxRealPoint pt) -> bool
Test for inequality of wx.RealPoint objects.
"""
- return _core_.RealPoint___ne__(*args, **kwargs)
+ return __core.wxRealPoint___ne__(*args, **kwargs)
def __add__(*args, **kwargs):
"""
- __add__(self, RealPoint pt) -> RealPoint
+ __add__(self, wxRealPoint pt) -> wxRealPoint
Add pt's proprties to this and return the result.
"""
- return _core_.RealPoint___add__(*args, **kwargs)
+ return __core.wxRealPoint___add__(*args, **kwargs)
def __sub__(*args, **kwargs):
"""
- __sub__(self, RealPoint pt) -> RealPoint
+ __sub__(self, wxRealPoint pt) -> wxRealPoint
Subtract pt's proprties from this and return the result
"""
- return _core_.RealPoint___sub__(*args, **kwargs)
+ return __core.wxRealPoint___sub__(*args, **kwargs)
def Set(*args, **kwargs):
"""
Set both the x and y properties
"""
- return _core_.RealPoint_Set(*args, **kwargs)
+ return __core.wxRealPoint_Set(*args, **kwargs)
def Get(*args, **kwargs):
"""
Return the x and y properties as a tuple.
"""
- return _core_.RealPoint_Get(*args, **kwargs)
+ return __core.wxRealPoint_Get(*args, **kwargs)
asTuple = wx._deprecated(Get, "asTuple is deprecated, use `Get` instead")
def __str__(self): return str(self.Get())
def __reduce__(self): return (wx.RealPoint, self.Get())
-class RealPointPtr(RealPoint):
+class wxRealPointPtr(wxRealPoint):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = RealPoint
-_core_.RealPoint_swigregister(RealPointPtr)
+ self.__class__ = wxRealPoint
+__core.wxRealPoint_swigregister(wxRealPointPtr)
#---------------------------------------------------------------------------
-class Point(object):
+class wxPoint(object):
"""
A data structure for representing a point or position with integer x
and y properties. Most places in wxPython that expect a wx.Point can
"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxPoint instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
- x = property(_core_.Point_x_get, _core_.Point_x_set)
- y = property(_core_.Point_y_get, _core_.Point_y_set)
+ x = property(__core.wxPoint_x_get, __core.wxPoint_x_set)
+ y = property(__core.wxPoint_y_get, __core.wxPoint_y_set)
def __init__(self, *args, **kwargs):
"""
- __init__(self, int x=0, int y=0) -> Point
+ __init__(self, int x=0, int y=0) -> wxPoint
Create a wx.Point object
"""
- newobj = _core_.new_Point(*args, **kwargs)
+ newobj = __core.new_wxPoint(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
- def __del__(self, destroy=_core_.delete_Point):
+ def __del__(self, destroy=__core.delete_wxPoint):
"""__del__(self)"""
try:
if self.thisown: destroy(self)
def __eq__(*args, **kwargs):
"""
- __eq__(self, Point pt) -> bool
+ __eq__(self, wxPoint pt) -> bool
Test for equality of wx.Point objects.
"""
- return _core_.Point___eq__(*args, **kwargs)
+ return __core.wxPoint___eq__(*args, **kwargs)
def __ne__(*args, **kwargs):
"""
- __ne__(self, Point pt) -> bool
+ __ne__(self, wxPoint pt) -> bool
Test for inequality of wx.Point objects.
"""
- return _core_.Point___ne__(*args, **kwargs)
+ return __core.wxPoint___ne__(*args, **kwargs)
def __add__(*args, **kwargs):
"""
- __add__(self, Point pt) -> Point
+ __add__(self, wxPoint pt) -> wxPoint
Add pt's proprties to this and return the result.
"""
- return _core_.Point___add__(*args, **kwargs)
+ return __core.wxPoint___add__(*args, **kwargs)
def __sub__(*args, **kwargs):
"""
- __sub__(self, Point pt) -> Point
+ __sub__(self, wxPoint pt) -> wxPoint
Subtract pt's proprties from this and return the result
"""
- return _core_.Point___sub__(*args, **kwargs)
+ return __core.wxPoint___sub__(*args, **kwargs)
def __iadd__(*args, **kwargs):
"""
- __iadd__(self, Point pt) -> Point
+ __iadd__(self, wxPoint pt) -> wxPoint
Add pt to this object.
"""
- return _core_.Point___iadd__(*args, **kwargs)
+ return __core.wxPoint___iadd__(*args, **kwargs)
def __isub__(*args, **kwargs):
"""
- __isub__(self, Point pt) -> Point
+ __isub__(self, wxPoint pt) -> wxPoint
Subtract pt from this object.
"""
- return _core_.Point___isub__(*args, **kwargs)
+ return __core.wxPoint___isub__(*args, **kwargs)
def Set(*args, **kwargs):
"""
Set both the x and y properties
"""
- return _core_.Point_Set(*args, **kwargs)
+ return __core.wxPoint_Set(*args, **kwargs)
def Get(*args, **kwargs):
"""
Return the x and y properties as a tuple.
"""
- return _core_.Point_Get(*args, **kwargs)
+ return __core.wxPoint_Get(*args, **kwargs)
asTuple = wx._deprecated(Get, "asTuple is deprecated, use `Get` instead")
def __str__(self): return str(self.Get())
def __reduce__(self): return (wx.Point, self.Get())
-class PointPtr(Point):
+class wxPointPtr(wxPoint):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = Point
-_core_.Point_swigregister(PointPtr)
+ self.__class__ = wxPoint
+__core.wxPoint_swigregister(wxPointPtr)
#---------------------------------------------------------------------------
-class Rect(object):
+class wxRect(object):
"""
A class for representing and manipulating rectangles. It has x, y,
width and height properties. In wxPython most palces that expect a
return "<%s.%s; proxy of C++ wxRect instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
"""
- __init__(self, int x=0, int y=0, int width=0, int height=0) -> Rect
+ __init__(self, int x=0, int y=0, int width=0, int height=0) -> wxRect
Create a new Rect object.
"""
- newobj = _core_.new_Rect(*args, **kwargs)
+ newobj = __core.new_wxRect(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
- def __del__(self, destroy=_core_.delete_Rect):
+ def __del__(self, destroy=__core.delete_wxRect):
"""__del__(self)"""
try:
if self.thisown: destroy(self)
def GetX(*args, **kwargs):
"""GetX(self) -> int"""
- return _core_.Rect_GetX(*args, **kwargs)
+ return __core.wxRect_GetX(*args, **kwargs)
def SetX(*args, **kwargs):
"""SetX(self, int x)"""
- return _core_.Rect_SetX(*args, **kwargs)
+ return __core.wxRect_SetX(*args, **kwargs)
def GetY(*args, **kwargs):
"""GetY(self) -> int"""
- return _core_.Rect_GetY(*args, **kwargs)
+ return __core.wxRect_GetY(*args, **kwargs)
def SetY(*args, **kwargs):
"""SetY(self, int y)"""
- return _core_.Rect_SetY(*args, **kwargs)
+ return __core.wxRect_SetY(*args, **kwargs)
def GetWidth(*args, **kwargs):
"""GetWidth(self) -> int"""
- return _core_.Rect_GetWidth(*args, **kwargs)
+ return __core.wxRect_GetWidth(*args, **kwargs)
def SetWidth(*args, **kwargs):
"""SetWidth(self, int w)"""
- return _core_.Rect_SetWidth(*args, **kwargs)
+ return __core.wxRect_SetWidth(*args, **kwargs)
def GetHeight(*args, **kwargs):
"""GetHeight(self) -> int"""
- return _core_.Rect_GetHeight(*args, **kwargs)
+ return __core.wxRect_GetHeight(*args, **kwargs)
def SetHeight(*args, **kwargs):
"""SetHeight(self, int h)"""
- return _core_.Rect_SetHeight(*args, **kwargs)
+ return __core.wxRect_SetHeight(*args, **kwargs)
def GetPosition(*args, **kwargs):
- """GetPosition(self) -> Point"""
- return _core_.Rect_GetPosition(*args, **kwargs)
+ """GetPosition(self) -> wxPoint"""
+ return __core.wxRect_GetPosition(*args, **kwargs)
def SetPosition(*args, **kwargs):
- """SetPosition(self, Point p)"""
- return _core_.Rect_SetPosition(*args, **kwargs)
+ """SetPosition(self, wxPoint p)"""
+ return __core.wxRect_SetPosition(*args, **kwargs)
def GetSize(*args, **kwargs):
- """GetSize(self) -> Size"""
- return _core_.Rect_GetSize(*args, **kwargs)
+ """GetSize(self) -> wxSize"""
+ return __core.wxRect_GetSize(*args, **kwargs)
def SetSize(*args, **kwargs):
- """SetSize(self, Size s)"""
- return _core_.Rect_SetSize(*args, **kwargs)
+ """SetSize(self, wxSize s)"""
+ return __core.wxRect_SetSize(*args, **kwargs)
+
+ def IsEmpty(*args, **kwargs):
+ """IsEmpty(self) -> bool"""
+ return __core.wxRect_IsEmpty(*args, **kwargs)
def GetTopLeft(*args, **kwargs):
- """GetTopLeft(self) -> Point"""
- return _core_.Rect_GetTopLeft(*args, **kwargs)
+ """GetTopLeft(self) -> wxPoint"""
+ return __core.wxRect_GetTopLeft(*args, **kwargs)
def SetTopLeft(*args, **kwargs):
- """SetTopLeft(self, Point p)"""
- return _core_.Rect_SetTopLeft(*args, **kwargs)
+ """SetTopLeft(self, wxPoint p)"""
+ return __core.wxRect_SetTopLeft(*args, **kwargs)
def GetBottomRight(*args, **kwargs):
- """GetBottomRight(self) -> Point"""
- return _core_.Rect_GetBottomRight(*args, **kwargs)
+ """GetBottomRight(self) -> wxPoint"""
+ return __core.wxRect_GetBottomRight(*args, **kwargs)
def SetBottomRight(*args, **kwargs):
- """SetBottomRight(self, Point p)"""
- return _core_.Rect_SetBottomRight(*args, **kwargs)
+ """SetBottomRight(self, wxPoint p)"""
+ return __core.wxRect_SetBottomRight(*args, **kwargs)
def GetLeft(*args, **kwargs):
"""GetLeft(self) -> int"""
- return _core_.Rect_GetLeft(*args, **kwargs)
+ return __core.wxRect_GetLeft(*args, **kwargs)
def GetTop(*args, **kwargs):
"""GetTop(self) -> int"""
- return _core_.Rect_GetTop(*args, **kwargs)
+ return __core.wxRect_GetTop(*args, **kwargs)
def GetBottom(*args, **kwargs):
"""GetBottom(self) -> int"""
- return _core_.Rect_GetBottom(*args, **kwargs)
+ return __core.wxRect_GetBottom(*args, **kwargs)
def GetRight(*args, **kwargs):
"""GetRight(self) -> int"""
- return _core_.Rect_GetRight(*args, **kwargs)
+ return __core.wxRect_GetRight(*args, **kwargs)
def SetLeft(*args, **kwargs):
"""SetLeft(self, int left)"""
- return _core_.Rect_SetLeft(*args, **kwargs)
+ return __core.wxRect_SetLeft(*args, **kwargs)
def SetRight(*args, **kwargs):
"""SetRight(self, int right)"""
- return _core_.Rect_SetRight(*args, **kwargs)
+ return __core.wxRect_SetRight(*args, **kwargs)
def SetTop(*args, **kwargs):
"""SetTop(self, int top)"""
- return _core_.Rect_SetTop(*args, **kwargs)
+ return __core.wxRect_SetTop(*args, **kwargs)
def SetBottom(*args, **kwargs):
"""SetBottom(self, int bottom)"""
- return _core_.Rect_SetBottom(*args, **kwargs)
+ return __core.wxRect_SetBottom(*args, **kwargs)
position = property(GetPosition, SetPosition)
size = property(GetSize, SetSize)
def Inflate(*args, **kwargs):
"""
- Inflate(self, int dx, int dy) -> Rect
+ Inflate(self, int dx, int dy) -> wxRect
+
+ Increases the size of the rectangle.
+
+ The left border is moved farther left and the right border is moved
+ farther right by ``dx``. The upper border is moved farther up and the
+ bottom border is moved farther down by ``dy``. (Note the the width and
+ height of the rectangle thus change by ``2*dx`` and ``2*dy``,
+ respectively.) If one or both of ``dx`` and ``dy`` are negative, the
+ opposite happens: the rectangle size decreases in the respective
+ direction.
+
+ The change is made to the rectangle inplace, if instead you need a
+ copy that is inflated, preserving the original then make the copy
+ first::
+
+ copy = wx.Rect(*original)
+ copy.Inflate(10,15)
+
- Increase the rectangle size by dx in x direction and dy in y
- direction. Both or one of) parameters may be negative to decrease the
- rectangle size.
"""
- return _core_.Rect_Inflate(*args, **kwargs)
+ return __core.wxRect_Inflate(*args, **kwargs)
def Deflate(*args, **kwargs):
"""
- Deflate(self, int dx, int dy) -> Rect
+ Deflate(self, int dx, int dy) -> wxRect
- Decrease the rectangle size by dx in x direction and dy in y
- direction. Both or one of) parameters may be negative to increase the
- rectngle size. This method is the opposite of Inflate.
+ Decrease the rectangle size. This method is the opposite of `Inflate`
+ in that Deflate(a,b) is equivalent to Inflate(-a,-b). Please refer to
+ `Inflate` for a full description.
"""
- return _core_.Rect_Deflate(*args, **kwargs)
+ return __core.wxRect_Deflate(*args, **kwargs)
def OffsetXY(*args, **kwargs):
"""
rectangle is moved to the right, if dy is positive, it is moved to the
bottom, otherwise it is moved to the left or top respectively.
"""
- return _core_.Rect_OffsetXY(*args, **kwargs)
+ return __core.wxRect_OffsetXY(*args, **kwargs)
def Offset(*args, **kwargs):
"""
- Offset(self, Point pt)
+ Offset(self, wxPoint pt)
Same as OffsetXY but uses dx,dy from Point
"""
- return _core_.Rect_Offset(*args, **kwargs)
+ return __core.wxRect_Offset(*args, **kwargs)
def Intersect(*args, **kwargs):
"""
- Intersect(self, Rect rect) -> Rect
+ Intersect(self, wxRect rect) -> wxRect
+
+ Returns the intersectsion of this rectangle and rect.
+ """
+ return __core.wxRect_Intersect(*args, **kwargs)
+
+ def Union(*args, **kwargs):
+ """
+ Union(self, wxRect rect) -> wxRect
- Return the intersectsion of this rectangle and rect.
+ Returns the union of this rectangle and rect.
"""
- return _core_.Rect_Intersect(*args, **kwargs)
+ return __core.wxRect_Union(*args, **kwargs)
def __add__(*args, **kwargs):
"""
- __add__(self, Rect rect) -> Rect
+ __add__(self, wxRect rect) -> wxRect
Add the properties of rect to this rectangle and return the result.
"""
- return _core_.Rect___add__(*args, **kwargs)
+ return __core.wxRect___add__(*args, **kwargs)
def __iadd__(*args, **kwargs):
"""
- __iadd__(self, Rect rect) -> Rect
+ __iadd__(self, wxRect rect) -> wxRect
Add the properties of rect to this rectangle, updating this rectangle.
"""
- return _core_.Rect___iadd__(*args, **kwargs)
+ return __core.wxRect___iadd__(*args, **kwargs)
def __eq__(*args, **kwargs):
"""
- __eq__(self, Rect rect) -> bool
+ __eq__(self, wxRect rect) -> bool
Test for equality.
"""
- return _core_.Rect___eq__(*args, **kwargs)
+ return __core.wxRect___eq__(*args, **kwargs)
def __ne__(*args, **kwargs):
"""
- __ne__(self, Rect rect) -> bool
+ __ne__(self, wxRect rect) -> bool
Test for inequality.
"""
- return _core_.Rect___ne__(*args, **kwargs)
+ return __core.wxRect___ne__(*args, **kwargs)
def InsideXY(*args, **kwargs):
"""
Return True if the point is (not strcitly) inside the rect.
"""
- return _core_.Rect_InsideXY(*args, **kwargs)
+ return __core.wxRect_InsideXY(*args, **kwargs)
def Inside(*args, **kwargs):
"""
- Inside(self, Point pt) -> bool
+ Inside(self, wxPoint pt) -> bool
Return True if the point is (not strcitly) inside the rect.
"""
- return _core_.Rect_Inside(*args, **kwargs)
+ return __core.wxRect_Inside(*args, **kwargs)
def Intersects(*args, **kwargs):
"""
- Intersects(self, Rect rect) -> bool
+ Intersects(self, wxRect rect) -> bool
Returns True if the rectangles have a non empty intersection.
"""
- return _core_.Rect_Intersects(*args, **kwargs)
+ return __core.wxRect_Intersects(*args, **kwargs)
- x = property(_core_.Rect_x_get, _core_.Rect_x_set)
- y = property(_core_.Rect_y_get, _core_.Rect_y_set)
- width = property(_core_.Rect_width_get, _core_.Rect_width_set)
- height = property(_core_.Rect_height_get, _core_.Rect_height_set)
+ x = property(__core.wxRect_x_get, __core.wxRect_x_set)
+ y = property(__core.wxRect_y_get, __core.wxRect_y_set)
+ width = property(__core.wxRect_width_get, __core.wxRect_width_set)
+ height = property(__core.wxRect_height_get, __core.wxRect_height_set)
def Set(*args, **kwargs):
"""
Set(self, int x=0, int y=0, int width=0, int height=0)
Set all rectangle properties.
"""
- return _core_.Rect_Set(*args, **kwargs)
+ return __core.wxRect_Set(*args, **kwargs)
def Get(*args, **kwargs):
"""
Return the rectangle properties as a tuple.
"""
- return _core_.Rect_Get(*args, **kwargs)
+ return __core.wxRect_Get(*args, **kwargs)
asTuple = wx._deprecated(Get, "asTuple is deprecated, use `Get` instead")
def __str__(self): return str(self.Get())
def __reduce__(self): return (wx.Rect, self.Get())
-class RectPtr(Rect):
+class wxRectPtr(wxRect):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = Rect
-_core_.Rect_swigregister(RectPtr)
+ self.__class__ = wxRect
+__core.wxRect_swigregister(wxRectPtr)
def RectPP(*args, **kwargs):
"""
- RectPP(Point topLeft, Point bottomRight) -> Rect
+ RectPP(wxPoint topLeft, wxPoint bottomRight) -> wxRect
Create a new Rect object from Points representing two corners.
"""
- val = _core_.new_RectPP(*args, **kwargs)
+ val = __core.new_RectPP(*args, **kwargs)
val.thisown = 1
return val
def RectPS(*args, **kwargs):
"""
- RectPS(Point pos, Size size) -> Rect
+ RectPS(wxPoint pos, wxSize size) -> wxRect
Create a new Rect from a position and size.
"""
- val = _core_.new_RectPS(*args, **kwargs)
+ val = __core.new_RectPS(*args, **kwargs)
val.thisown = 1
return val
+def RectS(*args, **kwargs):
+ """
+ RectS(wxSize size) -> wxRect
-def IntersectRect(*args, **kwargs):
+ Create a new Rect from a size only.
+ """
+ val = __core.new_RectS(*args, **kwargs)
+ val.thisown = 1
+ return val
+
+
+def wxIntersectRect(*args, **kwargs):
"""
IntersectRect(Rect r1, Rect r2) -> Rect
Calculate and return the intersection of r1 and r2.
"""
- return _core_.IntersectRect(*args, **kwargs)
+ return __core.wxIntersectRect(*args, **kwargs)
#---------------------------------------------------------------------------
-class Point2D(object):
+class wxPoint2D(object):
"""
wx.Point2Ds represent a point or a vector in a 2d coordinate system
with floating point values.
return "<%s.%s; proxy of C++ wxPoint2D instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
"""
- __init__(self, double x=0.0, double y=0.0) -> Point2D
+ __init__(self, double x=0.0, double y=0.0) -> wxPoint2D
Create a w.Point2D object.
"""
- newobj = _core_.new_Point2D(*args, **kwargs)
+ newobj = __core.new_wxPoint2D(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
Convert to integer
"""
- return _core_.Point2D_GetFloor(*args, **kwargs)
+ return __core.wxPoint2D_GetFloor(*args, **kwargs)
def GetRounded(*args, **kwargs):
"""
Convert to integer
"""
- return _core_.Point2D_GetRounded(*args, **kwargs)
+ return __core.wxPoint2D_GetRounded(*args, **kwargs)
def GetVectorLength(*args, **kwargs):
"""GetVectorLength(self) -> double"""
- return _core_.Point2D_GetVectorLength(*args, **kwargs)
+ return __core.wxPoint2D_GetVectorLength(*args, **kwargs)
def GetVectorAngle(*args, **kwargs):
"""GetVectorAngle(self) -> double"""
- return _core_.Point2D_GetVectorAngle(*args, **kwargs)
+ return __core.wxPoint2D_GetVectorAngle(*args, **kwargs)
def SetVectorLength(*args, **kwargs):
"""SetVectorLength(self, double length)"""
- return _core_.Point2D_SetVectorLength(*args, **kwargs)
+ return __core.wxPoint2D_SetVectorLength(*args, **kwargs)
def SetVectorAngle(*args, **kwargs):
"""SetVectorAngle(self, double degrees)"""
- return _core_.Point2D_SetVectorAngle(*args, **kwargs)
+ return __core.wxPoint2D_SetVectorAngle(*args, **kwargs)
def SetPolarCoordinates(self, angle, length):
self.SetVectorLength(length)
self.SetVectorLength(1.0)
def GetDistance(*args, **kwargs):
- """GetDistance(self, Point2D pt) -> double"""
- return _core_.Point2D_GetDistance(*args, **kwargs)
+ """GetDistance(self, wxPoint2D pt) -> double"""
+ return __core.wxPoint2D_GetDistance(*args, **kwargs)
def GetDistanceSquare(*args, **kwargs):
- """GetDistanceSquare(self, Point2D pt) -> double"""
- return _core_.Point2D_GetDistanceSquare(*args, **kwargs)
+ """GetDistanceSquare(self, wxPoint2D pt) -> double"""
+ return __core.wxPoint2D_GetDistanceSquare(*args, **kwargs)
def GetDotProduct(*args, **kwargs):
- """GetDotProduct(self, Point2D vec) -> double"""
- return _core_.Point2D_GetDotProduct(*args, **kwargs)
+ """GetDotProduct(self, wxPoint2D vec) -> double"""
+ return __core.wxPoint2D_GetDotProduct(*args, **kwargs)
def GetCrossProduct(*args, **kwargs):
- """GetCrossProduct(self, Point2D vec) -> double"""
- return _core_.Point2D_GetCrossProduct(*args, **kwargs)
+ """GetCrossProduct(self, wxPoint2D vec) -> double"""
+ return __core.wxPoint2D_GetCrossProduct(*args, **kwargs)
def __neg__(*args, **kwargs):
"""
- __neg__(self) -> Point2D
+ __neg__(self) -> wxPoint2D
the reflection of this point
"""
- return _core_.Point2D___neg__(*args, **kwargs)
+ return __core.wxPoint2D___neg__(*args, **kwargs)
def __iadd__(*args, **kwargs):
- """__iadd__(self, Point2D pt) -> Point2D"""
- return _core_.Point2D___iadd__(*args, **kwargs)
+ """__iadd__(self, wxPoint2D pt) -> wxPoint2D"""
+ return __core.wxPoint2D___iadd__(*args, **kwargs)
def __isub__(*args, **kwargs):
- """__isub__(self, Point2D pt) -> Point2D"""
- return _core_.Point2D___isub__(*args, **kwargs)
+ """__isub__(self, wxPoint2D pt) -> wxPoint2D"""
+ return __core.wxPoint2D___isub__(*args, **kwargs)
def __imul__(*args, **kwargs):
- """__imul__(self, Point2D pt) -> Point2D"""
- return _core_.Point2D___imul__(*args, **kwargs)
+ """__imul__(self, wxPoint2D pt) -> wxPoint2D"""
+ return __core.wxPoint2D___imul__(*args, **kwargs)
def __idiv__(*args, **kwargs):
- """__idiv__(self, Point2D pt) -> Point2D"""
- return _core_.Point2D___idiv__(*args, **kwargs)
+ """__idiv__(self, wxPoint2D pt) -> wxPoint2D"""
+ return __core.wxPoint2D___idiv__(*args, **kwargs)
def __eq__(*args, **kwargs):
"""
- __eq__(self, Point2D pt) -> bool
+ __eq__(self, wxPoint2D pt) -> bool
Test for equality
"""
- return _core_.Point2D___eq__(*args, **kwargs)
+ return __core.wxPoint2D___eq__(*args, **kwargs)
def __ne__(*args, **kwargs):
"""
- __ne__(self, Point2D pt) -> bool
+ __ne__(self, wxPoint2D pt) -> bool
Test for inequality
"""
- return _core_.Point2D___ne__(*args, **kwargs)
+ return __core.wxPoint2D___ne__(*args, **kwargs)
- x = property(_core_.Point2D_x_get, _core_.Point2D_x_set)
- y = property(_core_.Point2D_y_get, _core_.Point2D_y_set)
+ x = property(__core.wxPoint2D_x_get, __core.wxPoint2D_x_set)
+ y = property(__core.wxPoint2D_y_get, __core.wxPoint2D_y_set)
def Set(*args, **kwargs):
"""Set(self, double x=0, double y=0)"""
- return _core_.Point2D_Set(*args, **kwargs)
+ return __core.wxPoint2D_Set(*args, **kwargs)
def Get(*args, **kwargs):
"""
Return x and y properties as a tuple.
"""
- return _core_.Point2D_Get(*args, **kwargs)
+ return __core.wxPoint2D_Get(*args, **kwargs)
asTuple = wx._deprecated(Get, "asTuple is deprecated, use `Get` instead")
def __str__(self): return str(self.Get())
def __reduce__(self): return (wx.Point2D, self.Get())
-class Point2DPtr(Point2D):
+class wxPoint2DPtr(wxPoint2D):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = Point2D
-_core_.Point2D_swigregister(Point2DPtr)
+ self.__class__ = wxPoint2D
+__core.wxPoint2D_swigregister(wxPoint2DPtr)
def Point2DCopy(*args, **kwargs):
"""
- Point2DCopy(Point2D pt) -> Point2D
+ Point2DCopy(wxPoint2D pt) -> wxPoint2D
Create a w.Point2D object.
"""
- val = _core_.new_Point2DCopy(*args, **kwargs)
+ val = __core.new_Point2DCopy(*args, **kwargs)
val.thisown = 1
return val
def Point2DFromPoint(*args, **kwargs):
"""
- Point2DFromPoint(Point pt) -> Point2D
+ Point2DFromPoint(wxPoint pt) -> wxPoint2D
Create a w.Point2D object.
"""
- val = _core_.new_Point2DFromPoint(*args, **kwargs)
+ val = __core.new_Point2DFromPoint(*args, **kwargs)
val.thisown = 1
return val
#---------------------------------------------------------------------------
-FromStart = _core_.FromStart
-FromCurrent = _core_.FromCurrent
-FromEnd = _core_.FromEnd
+wxFromStart = __core.wxFromStart
+wxFromCurrent = __core.wxFromCurrent
+wxFromEnd = __core.wxFromEnd
class InputStream(object):
+ """Proxy of C++ InputStream class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxPyInputStream instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
"""__init__(self, PyObject p) -> InputStream"""
- newobj = _core_.new_InputStream(*args, **kwargs)
+ newobj = __core.new_InputStream(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
+ def __del__(self, destroy=__core.delete_InputStream):
+ """__del__(self)"""
+ try:
+ if self.thisown: destroy(self)
+ except: pass
+
def close(*args, **kwargs):
"""close(self)"""
- return _core_.InputStream_close(*args, **kwargs)
+ return __core.InputStream_close(*args, **kwargs)
def flush(*args, **kwargs):
"""flush(self)"""
- return _core_.InputStream_flush(*args, **kwargs)
+ return __core.InputStream_flush(*args, **kwargs)
def eof(*args, **kwargs):
"""eof(self) -> bool"""
- return _core_.InputStream_eof(*args, **kwargs)
+ return __core.InputStream_eof(*args, **kwargs)
def read(*args, **kwargs):
"""read(self, int size=-1) -> PyObject"""
- return _core_.InputStream_read(*args, **kwargs)
+ return __core.InputStream_read(*args, **kwargs)
def readline(*args, **kwargs):
"""readline(self, int size=-1) -> PyObject"""
- return _core_.InputStream_readline(*args, **kwargs)
+ return __core.InputStream_readline(*args, **kwargs)
def readlines(*args, **kwargs):
"""readlines(self, int sizehint=-1) -> PyObject"""
- return _core_.InputStream_readlines(*args, **kwargs)
+ return __core.InputStream_readlines(*args, **kwargs)
def seek(*args, **kwargs):
"""seek(self, int offset, int whence=0)"""
- return _core_.InputStream_seek(*args, **kwargs)
+ return __core.InputStream_seek(*args, **kwargs)
def tell(*args, **kwargs):
"""tell(self) -> int"""
- return _core_.InputStream_tell(*args, **kwargs)
+ return __core.InputStream_tell(*args, **kwargs)
def Peek(*args, **kwargs):
"""Peek(self) -> char"""
- return _core_.InputStream_Peek(*args, **kwargs)
+ return __core.InputStream_Peek(*args, **kwargs)
def GetC(*args, **kwargs):
"""GetC(self) -> char"""
- return _core_.InputStream_GetC(*args, **kwargs)
+ return __core.InputStream_GetC(*args, **kwargs)
def LastRead(*args, **kwargs):
"""LastRead(self) -> size_t"""
- return _core_.InputStream_LastRead(*args, **kwargs)
+ return __core.InputStream_LastRead(*args, **kwargs)
def CanRead(*args, **kwargs):
"""CanRead(self) -> bool"""
- return _core_.InputStream_CanRead(*args, **kwargs)
+ return __core.InputStream_CanRead(*args, **kwargs)
def Eof(*args, **kwargs):
"""Eof(self) -> bool"""
- return _core_.InputStream_Eof(*args, **kwargs)
+ return __core.InputStream_Eof(*args, **kwargs)
def Ungetch(*args, **kwargs):
"""Ungetch(self, char c) -> bool"""
- return _core_.InputStream_Ungetch(*args, **kwargs)
+ return __core.InputStream_Ungetch(*args, **kwargs)
def SeekI(*args, **kwargs):
- """SeekI(self, long pos, int mode=FromStart) -> long"""
- return _core_.InputStream_SeekI(*args, **kwargs)
+ """SeekI(self, long pos, int mode=wxFromStart) -> long"""
+ return __core.InputStream_SeekI(*args, **kwargs)
def TellI(*args, **kwargs):
"""TellI(self) -> long"""
- return _core_.InputStream_TellI(*args, **kwargs)
+ return __core.InputStream_TellI(*args, **kwargs)
class InputStreamPtr(InputStream):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
self.__class__ = InputStream
-_core_.InputStream_swigregister(InputStreamPtr)
-DefaultPosition = cvar.DefaultPosition
-DefaultSize = cvar.DefaultSize
+__core.InputStream_swigregister(InputStreamPtr)
+wxDefaultPosition = cvar.wxDefaultPosition
+wxDefaultSize = cvar.wxDefaultSize
-class OutputStream(object):
+class wxOutputStream(object):
+ """Proxy of C++ wxOutputStream class"""
def __init__(self): raise RuntimeError, "No constructor defined"
def __repr__(self):
return "<%s.%s; proxy of C++ wxOutputStream instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def write(*args, **kwargs):
"""write(self, PyObject obj)"""
- return _core_.OutputStream_write(*args, **kwargs)
+ return __core.wxOutputStream_write(*args, **kwargs)
-class OutputStreamPtr(OutputStream):
+class wxOutputStreamPtr(wxOutputStream):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = OutputStream
-_core_.OutputStream_swigregister(OutputStreamPtr)
+ self.__class__ = wxOutputStream
+__core.wxOutputStream_swigregister(wxOutputStreamPtr)
#---------------------------------------------------------------------------
-class FSFile(Object):
+class wxFSFile(wxObject):
+ """Proxy of C++ wxFSFile class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxFSFile instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
"""
- __init__(self, InputStream stream, String loc, String mimetype, String anchor,
- DateTime modif) -> FSFile
+ __init__(self, wxInputStream stream, wxString loc, wxString mimetype,
+ wxString anchor, wxDateTime modif) -> wxFSFile
"""
- newobj = _core_.new_FSFile(*args, **kwargs)
+ newobj = __core.new_wxFSFile(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
- self.thisown = 0 # It will normally be deleted by the user of the wxFileSystem
+ self.thisown = 0 # It will normally be deleted by the user of the wx.FileSystem
- def __del__(self, destroy=_core_.delete_FSFile):
+ def __del__(self, destroy=__core.delete_wxFSFile):
"""__del__(self)"""
try:
if self.thisown: destroy(self)
except: pass
def GetStream(*args, **kwargs):
- """GetStream(self) -> InputStream"""
- return _core_.FSFile_GetStream(*args, **kwargs)
+ """GetStream(self) -> wxInputStream"""
+ return __core.wxFSFile_GetStream(*args, **kwargs)
def GetMimeType(*args, **kwargs):
- """GetMimeType(self) -> String"""
- return _core_.FSFile_GetMimeType(*args, **kwargs)
+ """GetMimeType(self) -> wxString"""
+ return __core.wxFSFile_GetMimeType(*args, **kwargs)
def GetLocation(*args, **kwargs):
- """GetLocation(self) -> String"""
- return _core_.FSFile_GetLocation(*args, **kwargs)
+ """GetLocation(self) -> wxString"""
+ return __core.wxFSFile_GetLocation(*args, **kwargs)
def GetAnchor(*args, **kwargs):
- """GetAnchor(self) -> String"""
- return _core_.FSFile_GetAnchor(*args, **kwargs)
+ """GetAnchor(self) -> wxString"""
+ return __core.wxFSFile_GetAnchor(*args, **kwargs)
def GetModificationTime(*args, **kwargs):
- """GetModificationTime(self) -> DateTime"""
- return _core_.FSFile_GetModificationTime(*args, **kwargs)
+ """GetModificationTime(self) -> wxDateTime"""
+ return __core.wxFSFile_GetModificationTime(*args, **kwargs)
-class FSFilePtr(FSFile):
+class wxFSFilePtr(wxFSFile):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = FSFile
-_core_.FSFile_swigregister(FSFilePtr)
+ self.__class__ = wxFSFile
+__core.wxFSFile_swigregister(wxFSFilePtr)
class CPPFileSystemHandler(object):
+ """Proxy of C++ CPPFileSystemHandler class"""
def __init__(self): raise RuntimeError, "No constructor defined"
def __repr__(self):
return "<%s.%s; proxy of C++ wxFileSystemHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
self.__class__ = CPPFileSystemHandler
-_core_.CPPFileSystemHandler_swigregister(CPPFileSystemHandlerPtr)
+__core.CPPFileSystemHandler_swigregister(CPPFileSystemHandlerPtr)
class FileSystemHandler(CPPFileSystemHandler):
+ """Proxy of C++ FileSystemHandler class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxPyFileSystemHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
"""__init__(self) -> FileSystemHandler"""
- newobj = _core_.new_FileSystemHandler(*args, **kwargs)
+ newobj = __core.new_FileSystemHandler(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
def _setCallbackInfo(*args, **kwargs):
"""_setCallbackInfo(self, PyObject self, PyObject _class)"""
- return _core_.FileSystemHandler__setCallbackInfo(*args, **kwargs)
+ return __core.FileSystemHandler__setCallbackInfo(*args, **kwargs)
def CanOpen(*args, **kwargs):
- """CanOpen(self, String location) -> bool"""
- return _core_.FileSystemHandler_CanOpen(*args, **kwargs)
+ """CanOpen(self, wxString location) -> bool"""
+ return __core.FileSystemHandler_CanOpen(*args, **kwargs)
def OpenFile(*args, **kwargs):
- """OpenFile(self, FileSystem fs, String location) -> FSFile"""
- return _core_.FileSystemHandler_OpenFile(*args, **kwargs)
+ """OpenFile(self, wxFileSystem fs, wxString location) -> wxFSFile"""
+ return __core.FileSystemHandler_OpenFile(*args, **kwargs)
def FindFirst(*args, **kwargs):
- """FindFirst(self, String spec, int flags=0) -> String"""
- return _core_.FileSystemHandler_FindFirst(*args, **kwargs)
+ """FindFirst(self, wxString spec, int flags=0) -> wxString"""
+ return __core.FileSystemHandler_FindFirst(*args, **kwargs)
def FindNext(*args, **kwargs):
- """FindNext(self) -> String"""
- return _core_.FileSystemHandler_FindNext(*args, **kwargs)
+ """FindNext(self) -> wxString"""
+ return __core.FileSystemHandler_FindNext(*args, **kwargs)
def GetProtocol(*args, **kwargs):
- """GetProtocol(self, String location) -> String"""
- return _core_.FileSystemHandler_GetProtocol(*args, **kwargs)
+ """GetProtocol(self, wxString location) -> wxString"""
+ return __core.FileSystemHandler_GetProtocol(*args, **kwargs)
def GetLeftLocation(*args, **kwargs):
- """GetLeftLocation(self, String location) -> String"""
- return _core_.FileSystemHandler_GetLeftLocation(*args, **kwargs)
+ """GetLeftLocation(self, wxString location) -> wxString"""
+ return __core.FileSystemHandler_GetLeftLocation(*args, **kwargs)
def GetAnchor(*args, **kwargs):
- """GetAnchor(self, String location) -> String"""
- return _core_.FileSystemHandler_GetAnchor(*args, **kwargs)
+ """GetAnchor(self, wxString location) -> wxString"""
+ return __core.FileSystemHandler_GetAnchor(*args, **kwargs)
def GetRightLocation(*args, **kwargs):
- """GetRightLocation(self, String location) -> String"""
- return _core_.FileSystemHandler_GetRightLocation(*args, **kwargs)
+ """GetRightLocation(self, wxString location) -> wxString"""
+ return __core.FileSystemHandler_GetRightLocation(*args, **kwargs)
def GetMimeTypeFromExt(*args, **kwargs):
- """GetMimeTypeFromExt(self, String location) -> String"""
- return _core_.FileSystemHandler_GetMimeTypeFromExt(*args, **kwargs)
+ """GetMimeTypeFromExt(self, wxString location) -> wxString"""
+ return __core.FileSystemHandler_GetMimeTypeFromExt(*args, **kwargs)
class FileSystemHandlerPtr(FileSystemHandler):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
self.__class__ = FileSystemHandler
-_core_.FileSystemHandler_swigregister(FileSystemHandlerPtr)
+__core.FileSystemHandler_swigregister(FileSystemHandlerPtr)
-class FileSystem(Object):
+class wxFileSystem(wxObject):
+ """Proxy of C++ wxFileSystem class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxFileSystem instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
- """__init__(self) -> FileSystem"""
- newobj = _core_.new_FileSystem(*args, **kwargs)
+ """__init__(self) -> wxFileSystem"""
+ newobj = __core.new_wxFileSystem(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
- def __del__(self, destroy=_core_.delete_FileSystem):
+ def __del__(self, destroy=__core.delete_wxFileSystem):
"""__del__(self)"""
try:
if self.thisown: destroy(self)
except: pass
def ChangePathTo(*args, **kwargs):
- """ChangePathTo(self, String location, bool is_dir=False)"""
- return _core_.FileSystem_ChangePathTo(*args, **kwargs)
+ """ChangePathTo(self, wxString location, bool is_dir=False)"""
+ return __core.wxFileSystem_ChangePathTo(*args, **kwargs)
def GetPath(*args, **kwargs):
- """GetPath(self) -> String"""
- return _core_.FileSystem_GetPath(*args, **kwargs)
+ """GetPath(self) -> wxString"""
+ return __core.wxFileSystem_GetPath(*args, **kwargs)
def OpenFile(*args, **kwargs):
- """OpenFile(self, String location) -> FSFile"""
- return _core_.FileSystem_OpenFile(*args, **kwargs)
+ """OpenFile(self, wxString location) -> wxFSFile"""
+ return __core.wxFileSystem_OpenFile(*args, **kwargs)
def FindFirst(*args, **kwargs):
- """FindFirst(self, String spec, int flags=0) -> String"""
- return _core_.FileSystem_FindFirst(*args, **kwargs)
+ """FindFirst(self, wxString spec, int flags=0) -> wxString"""
+ return __core.wxFileSystem_FindFirst(*args, **kwargs)
def FindNext(*args, **kwargs):
- """FindNext(self) -> String"""
- return _core_.FileSystem_FindNext(*args, **kwargs)
+ """FindNext(self) -> wxString"""
+ return __core.wxFileSystem_FindNext(*args, **kwargs)
def AddHandler(*args, **kwargs):
"""AddHandler(CPPFileSystemHandler handler)"""
- return _core_.FileSystem_AddHandler(*args, **kwargs)
+ return __core.wxFileSystem_AddHandler(*args, **kwargs)
AddHandler = staticmethod(AddHandler)
def CleanUpHandlers(*args, **kwargs):
"""CleanUpHandlers()"""
- return _core_.FileSystem_CleanUpHandlers(*args, **kwargs)
+ return __core.wxFileSystem_CleanUpHandlers(*args, **kwargs)
CleanUpHandlers = staticmethod(CleanUpHandlers)
def FileNameToURL(*args, **kwargs):
- """FileNameToURL(String filename) -> String"""
- return _core_.FileSystem_FileNameToURL(*args, **kwargs)
+ """FileNameToURL(wxString filename) -> wxString"""
+ return __core.wxFileSystem_FileNameToURL(*args, **kwargs)
FileNameToURL = staticmethod(FileNameToURL)
+ def URLToFileName(*args, **kwargs):
+ """URLToFileName(wxString url) -> wxString"""
+ return __core.wxFileSystem_URLToFileName(*args, **kwargs)
-class FileSystemPtr(FileSystem):
+ URLToFileName = staticmethod(URLToFileName)
+
+class wxFileSystemPtr(wxFileSystem):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = FileSystem
-_core_.FileSystem_swigregister(FileSystemPtr)
+ self.__class__ = wxFileSystem
+__core.wxFileSystem_swigregister(wxFileSystemPtr)
-def FileSystem_AddHandler(*args, **kwargs):
- """FileSystem_AddHandler(CPPFileSystemHandler handler)"""
- return _core_.FileSystem_AddHandler(*args, **kwargs)
+def wxFileSystem_AddHandler(*args, **kwargs):
+ """wxFileSystem_AddHandler(CPPFileSystemHandler handler)"""
+ return __core.wxFileSystem_AddHandler(*args, **kwargs)
-def FileSystem_CleanUpHandlers(*args, **kwargs):
- """FileSystem_CleanUpHandlers()"""
- return _core_.FileSystem_CleanUpHandlers(*args, **kwargs)
+def wxFileSystem_CleanUpHandlers(*args, **kwargs):
+ """wxFileSystem_CleanUpHandlers()"""
+ return __core.wxFileSystem_CleanUpHandlers(*args, **kwargs)
-def FileSystem_FileNameToURL(*args, **kwargs):
- """FileSystem_FileNameToURL(String filename) -> String"""
- return _core_.FileSystem_FileNameToURL(*args, **kwargs)
+def wxFileSystem_FileNameToURL(*args, **kwargs):
+ """wxFileSystem_FileNameToURL(wxString filename) -> wxString"""
+ return __core.wxFileSystem_FileNameToURL(*args, **kwargs)
+def wxFileSystem_URLToFileName(*args, **kwargs):
+ """wxFileSystem_URLToFileName(wxString url) -> wxString"""
+ return __core.wxFileSystem_URLToFileName(*args, **kwargs)
-def FileSystem_URLToFileName(*args, **kwargs):
- """FileSystem_URLToFileName(String url) -> String"""
- return _core_.FileSystem_URLToFileName(*args, **kwargs)
-class InternetFSHandler(CPPFileSystemHandler):
+class wxInternetFSHandler(CPPFileSystemHandler):
+ """Proxy of C++ wxInternetFSHandler class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxInternetFSHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
- """__init__(self) -> InternetFSHandler"""
- newobj = _core_.new_InternetFSHandler(*args, **kwargs)
+ """__init__(self) -> wxInternetFSHandler"""
+ newobj = __core.new_wxInternetFSHandler(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
def CanOpen(*args, **kwargs):
- """CanOpen(self, String location) -> bool"""
- return _core_.InternetFSHandler_CanOpen(*args, **kwargs)
+ """CanOpen(self, wxString location) -> bool"""
+ return __core.wxInternetFSHandler_CanOpen(*args, **kwargs)
def OpenFile(*args, **kwargs):
- """OpenFile(self, FileSystem fs, String location) -> FSFile"""
- return _core_.InternetFSHandler_OpenFile(*args, **kwargs)
+ """OpenFile(self, wxFileSystem fs, wxString location) -> wxFSFile"""
+ return __core.wxInternetFSHandler_OpenFile(*args, **kwargs)
-class InternetFSHandlerPtr(InternetFSHandler):
+class wxInternetFSHandlerPtr(wxInternetFSHandler):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = InternetFSHandler
-_core_.InternetFSHandler_swigregister(InternetFSHandlerPtr)
+ self.__class__ = wxInternetFSHandler
+__core.wxInternetFSHandler_swigregister(wxInternetFSHandlerPtr)
-class ZipFSHandler(CPPFileSystemHandler):
+class wxZipFSHandler(CPPFileSystemHandler):
+ """Proxy of C++ wxZipFSHandler class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxZipFSHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
- """__init__(self) -> ZipFSHandler"""
- newobj = _core_.new_ZipFSHandler(*args, **kwargs)
+ """__init__(self) -> wxZipFSHandler"""
+ newobj = __core.new_wxZipFSHandler(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
def CanOpen(*args, **kwargs):
- """CanOpen(self, String location) -> bool"""
- return _core_.ZipFSHandler_CanOpen(*args, **kwargs)
+ """CanOpen(self, wxString location) -> bool"""
+ return __core.wxZipFSHandler_CanOpen(*args, **kwargs)
def OpenFile(*args, **kwargs):
- """OpenFile(self, FileSystem fs, String location) -> FSFile"""
- return _core_.ZipFSHandler_OpenFile(*args, **kwargs)
+ """OpenFile(self, wxFileSystem fs, wxString location) -> wxFSFile"""
+ return __core.wxZipFSHandler_OpenFile(*args, **kwargs)
def FindFirst(*args, **kwargs):
- """FindFirst(self, String spec, int flags=0) -> String"""
- return _core_.ZipFSHandler_FindFirst(*args, **kwargs)
+ """FindFirst(self, wxString spec, int flags=0) -> wxString"""
+ return __core.wxZipFSHandler_FindFirst(*args, **kwargs)
def FindNext(*args, **kwargs):
- """FindNext(self) -> String"""
- return _core_.ZipFSHandler_FindNext(*args, **kwargs)
+ """FindNext(self) -> wxString"""
+ return __core.wxZipFSHandler_FindNext(*args, **kwargs)
-class ZipFSHandlerPtr(ZipFSHandler):
+class wxZipFSHandlerPtr(wxZipFSHandler):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = ZipFSHandler
-_core_.ZipFSHandler_swigregister(ZipFSHandlerPtr)
+ self.__class__ = wxZipFSHandler
+__core.wxZipFSHandler_swigregister(wxZipFSHandlerPtr)
def __wxMemoryFSHandler_AddFile_wxImage(*args, **kwargs):
- """__wxMemoryFSHandler_AddFile_wxImage(String filename, Image image, long type)"""
- return _core_.__wxMemoryFSHandler_AddFile_wxImage(*args, **kwargs)
+ """__wxMemoryFSHandler_AddFile_wxImage(wxString filename, wxImage image, long type)"""
+ return __core.__wxMemoryFSHandler_AddFile_wxImage(*args, **kwargs)
def __wxMemoryFSHandler_AddFile_wxBitmap(*args, **kwargs):
- """__wxMemoryFSHandler_AddFile_wxBitmap(String filename, Bitmap bitmap, long type)"""
- return _core_.__wxMemoryFSHandler_AddFile_wxBitmap(*args, **kwargs)
+ """__wxMemoryFSHandler_AddFile_wxBitmap(wxString filename, wxBitmap bitmap, long type)"""
+ return __core.__wxMemoryFSHandler_AddFile_wxBitmap(*args, **kwargs)
def __wxMemoryFSHandler_AddFile_Data(*args, **kwargs):
- """__wxMemoryFSHandler_AddFile_Data(String filename, PyObject data)"""
- return _core_.__wxMemoryFSHandler_AddFile_Data(*args, **kwargs)
-def MemoryFSHandler_AddFile(filename, a, b=''):
- if isinstance(a, wx.Image):
- __wxMemoryFSHandler_AddFile_wxImage(filename, a, b)
- elif isinstance(a, wx.Bitmap):
- __wxMemoryFSHandler_AddFile_wxBitmap(filename, a, b)
- elif type(a) == str:
- __wxMemoryFSHandler_AddFile_Data(filename, a)
- else: raise TypeError, 'wx.Image, wx.Bitmap or string expected'
-
-class MemoryFSHandler(CPPFileSystemHandler):
+ """__wxMemoryFSHandler_AddFile_Data(wxString filename, PyObject data)"""
+ return __core.__wxMemoryFSHandler_AddFile_Data(*args, **kwargs)
+def MemoryFSHandler_AddFile(filename, dataItem, imgType=-1):
+ """
+ Add 'file' to the memory filesystem. The dataItem parameter can
+ either be a `wx.Bitmap`, `wx.Image` or a string that can contain
+ arbitrary data. If a bitmap or image is used then the imgType
+ parameter should specify what kind of image file it should be
+ written as, wx.BITMAP_TYPE_PNG, etc.
+ """
+ if isinstance(dataItem, wx.Image):
+ __wxMemoryFSHandler_AddFile_wxImage(filename, dataItem, imgType)
+ elif isinstance(dataItem, wx.Bitmap):
+ __wxMemoryFSHandler_AddFile_wxBitmap(filename, dataItem, imgType)
+ elif type(dataItem) == str:
+ __wxMemoryFSHandler_AddFile_Data(filename, dataItem)
+ else:
+ raise TypeError, 'wx.Image, wx.Bitmap or string expected'
+
+class wxMemoryFSHandler(CPPFileSystemHandler):
+ """Proxy of C++ wxMemoryFSHandler class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxMemoryFSHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
- """__init__(self) -> MemoryFSHandler"""
- newobj = _core_.new_MemoryFSHandler(*args, **kwargs)
+ """__init__(self) -> wxMemoryFSHandler"""
+ newobj = __core.new_wxMemoryFSHandler(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
def RemoveFile(*args, **kwargs):
- """RemoveFile(String filename)"""
- return _core_.MemoryFSHandler_RemoveFile(*args, **kwargs)
+ """RemoveFile(wxString filename)"""
+ return __core.wxMemoryFSHandler_RemoveFile(*args, **kwargs)
RemoveFile = staticmethod(RemoveFile)
AddFile = staticmethod(MemoryFSHandler_AddFile)
def CanOpen(*args, **kwargs):
- """CanOpen(self, String location) -> bool"""
- return _core_.MemoryFSHandler_CanOpen(*args, **kwargs)
+ """CanOpen(self, wxString location) -> bool"""
+ return __core.wxMemoryFSHandler_CanOpen(*args, **kwargs)
def OpenFile(*args, **kwargs):
- """OpenFile(self, FileSystem fs, String location) -> FSFile"""
- return _core_.MemoryFSHandler_OpenFile(*args, **kwargs)
+ """OpenFile(self, wxFileSystem fs, wxString location) -> wxFSFile"""
+ return __core.wxMemoryFSHandler_OpenFile(*args, **kwargs)
def FindFirst(*args, **kwargs):
- """FindFirst(self, String spec, int flags=0) -> String"""
- return _core_.MemoryFSHandler_FindFirst(*args, **kwargs)
+ """FindFirst(self, wxString spec, int flags=0) -> wxString"""
+ return __core.wxMemoryFSHandler_FindFirst(*args, **kwargs)
def FindNext(*args, **kwargs):
- """FindNext(self) -> String"""
- return _core_.MemoryFSHandler_FindNext(*args, **kwargs)
+ """FindNext(self) -> wxString"""
+ return __core.wxMemoryFSHandler_FindNext(*args, **kwargs)
-class MemoryFSHandlerPtr(MemoryFSHandler):
+class wxMemoryFSHandlerPtr(wxMemoryFSHandler):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = MemoryFSHandler
-_core_.MemoryFSHandler_swigregister(MemoryFSHandlerPtr)
+ self.__class__ = wxMemoryFSHandler
+__core.wxMemoryFSHandler_swigregister(wxMemoryFSHandlerPtr)
-def MemoryFSHandler_RemoveFile(*args, **kwargs):
- """MemoryFSHandler_RemoveFile(String filename)"""
- return _core_.MemoryFSHandler_RemoveFile(*args, **kwargs)
+def wxMemoryFSHandler_RemoveFile(*args, **kwargs):
+ """wxMemoryFSHandler_RemoveFile(wxString filename)"""
+ return __core.wxMemoryFSHandler_RemoveFile(*args, **kwargs)
#---------------------------------------------------------------------------
-class ImageHandler(Object):
+class wxImageHandler(wxObject):
+ """Proxy of C++ wxImageHandler class"""
def __init__(self): raise RuntimeError, "No constructor defined"
def __repr__(self):
return "<%s.%s; proxy of C++ wxImageHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def GetName(*args, **kwargs):
- """GetName(self) -> String"""
- return _core_.ImageHandler_GetName(*args, **kwargs)
+ """GetName(self) -> wxString"""
+ return __core.wxImageHandler_GetName(*args, **kwargs)
def GetExtension(*args, **kwargs):
- """GetExtension(self) -> String"""
- return _core_.ImageHandler_GetExtension(*args, **kwargs)
+ """GetExtension(self) -> wxString"""
+ return __core.wxImageHandler_GetExtension(*args, **kwargs)
def GetType(*args, **kwargs):
"""GetType(self) -> long"""
- return _core_.ImageHandler_GetType(*args, **kwargs)
+ return __core.wxImageHandler_GetType(*args, **kwargs)
def GetMimeType(*args, **kwargs):
- """GetMimeType(self) -> String"""
- return _core_.ImageHandler_GetMimeType(*args, **kwargs)
+ """GetMimeType(self) -> wxString"""
+ return __core.wxImageHandler_GetMimeType(*args, **kwargs)
def CanRead(*args, **kwargs):
- """CanRead(self, String name) -> bool"""
- return _core_.ImageHandler_CanRead(*args, **kwargs)
+ """CanRead(self, wxString name) -> bool"""
+ return __core.wxImageHandler_CanRead(*args, **kwargs)
def SetName(*args, **kwargs):
- """SetName(self, String name)"""
- return _core_.ImageHandler_SetName(*args, **kwargs)
+ """SetName(self, wxString name)"""
+ return __core.wxImageHandler_SetName(*args, **kwargs)
def SetExtension(*args, **kwargs):
- """SetExtension(self, String extension)"""
- return _core_.ImageHandler_SetExtension(*args, **kwargs)
+ """SetExtension(self, wxString extension)"""
+ return __core.wxImageHandler_SetExtension(*args, **kwargs)
def SetType(*args, **kwargs):
"""SetType(self, long type)"""
- return _core_.ImageHandler_SetType(*args, **kwargs)
+ return __core.wxImageHandler_SetType(*args, **kwargs)
def SetMimeType(*args, **kwargs):
- """SetMimeType(self, String mimetype)"""
- return _core_.ImageHandler_SetMimeType(*args, **kwargs)
+ """SetMimeType(self, wxString mimetype)"""
+ return __core.wxImageHandler_SetMimeType(*args, **kwargs)
-class ImageHandlerPtr(ImageHandler):
+class wxImageHandlerPtr(wxImageHandler):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = ImageHandler
-_core_.ImageHandler_swigregister(ImageHandlerPtr)
+ self.__class__ = wxImageHandler
+__core.wxImageHandler_swigregister(wxImageHandlerPtr)
-class ImageHistogram(object):
+class wxImageHistogram(object):
+ """Proxy of C++ wxImageHistogram class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxImageHistogram instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
- """__init__(self) -> ImageHistogram"""
- newobj = _core_.new_ImageHistogram(*args, **kwargs)
+ """__init__(self) -> wxImageHistogram"""
+ newobj = __core.new_wxImageHistogram(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
Get the key in the histogram for the given RGB values
"""
- return _core_.ImageHistogram_MakeKey(*args, **kwargs)
+ return __core.wxImageHistogram_MakeKey(*args, **kwargs)
MakeKey = staticmethod(MakeKey)
def FindFirstUnusedColour(*args, **kwargs):
values than startR, startG, startB. Returns a tuple consisting of a
success flag and rgb values.
"""
- return _core_.ImageHistogram_FindFirstUnusedColour(*args, **kwargs)
+ return __core.wxImageHistogram_FindFirstUnusedColour(*args, **kwargs)
+ def GetCount(*args, **kwargs):
+ """
+ GetCount(self, unsigned long key) -> unsigned long
-class ImageHistogramPtr(ImageHistogram):
+ Returns the pixel count for the given key. Use `MakeKey` to create a
+ key value from a RGB tripple.
+ """
+ return __core.wxImageHistogram_GetCount(*args, **kwargs)
+
+ def GetCountRGB(*args, **kwargs):
+ """
+ GetCountRGB(self, unsigned char r, unsigned char g, unsigned char b) -> unsigned long
+
+ Returns the pixel count for the given RGB values.
+ """
+ return __core.wxImageHistogram_GetCountRGB(*args, **kwargs)
+
+ def GetCountColour(*args, **kwargs):
+ """
+ GetCountColour(self, wxColour colour) -> unsigned long
+
+ Returns the pixel count for the given `wx.Colour` value.
+ """
+ return __core.wxImageHistogram_GetCountColour(*args, **kwargs)
+
+
+class wxImageHistogramPtr(wxImageHistogram):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = ImageHistogram
-_core_.ImageHistogram_swigregister(ImageHistogramPtr)
+ self.__class__ = wxImageHistogram
+__core.wxImageHistogram_swigregister(wxImageHistogramPtr)
-def ImageHistogram_MakeKey(*args, **kwargs):
+def wxImageHistogram_MakeKey(*args, **kwargs):
"""
- ImageHistogram_MakeKey(unsigned char r, unsigned char g, unsigned char b) -> unsigned long
+ wxImageHistogram_MakeKey(unsigned char r, unsigned char g, unsigned char b) -> unsigned long
Get the key in the histogram for the given RGB values
"""
- return _core_.ImageHistogram_MakeKey(*args, **kwargs)
+ return __core.wxImageHistogram_MakeKey(*args, **kwargs)
-class Image(Object):
+class wxImage(wxObject):
+ """Proxy of C++ wxImage class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxImage instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
- """__init__(self, String name, long type=BITMAP_TYPE_ANY, int index=-1) -> Image"""
- newobj = _core_.new_Image(*args, **kwargs)
+ """__init__(self, wxString name, long type=wxBITMAP_TYPE_ANY, int index=-1) -> wxImage"""
+ newobj = __core.new_wxImage(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
- def __del__(self, destroy=_core_.delete_Image):
+ def __del__(self, destroy=__core.delete_wxImage):
"""__del__(self)"""
try:
if self.thisown: destroy(self)
def Create(*args, **kwargs):
"""Create(self, int width, int height)"""
- return _core_.Image_Create(*args, **kwargs)
+ return __core.wxImage_Create(*args, **kwargs)
def Destroy(*args, **kwargs):
"""
Deletes the C++ object this Python object is a proxy for.
"""
- return _core_.Image_Destroy(*args, **kwargs)
+ return __core.wxImage_Destroy(*args, **kwargs)
def Scale(*args, **kwargs):
- """Scale(self, int width, int height) -> Image"""
- return _core_.Image_Scale(*args, **kwargs)
+ """Scale(self, int width, int height) -> wxImage"""
+ return __core.wxImage_Scale(*args, **kwargs)
def ShrinkBy(*args, **kwargs):
- """ShrinkBy(self, int xFactor, int yFactor) -> Image"""
- return _core_.Image_ShrinkBy(*args, **kwargs)
+ """ShrinkBy(self, int xFactor, int yFactor) -> wxImage"""
+ return __core.wxImage_ShrinkBy(*args, **kwargs)
def Rescale(*args, **kwargs):
- """Rescale(self, int width, int height) -> Image"""
- return _core_.Image_Rescale(*args, **kwargs)
+ """Rescale(self, int width, int height) -> wxImage"""
+ return __core.wxImage_Rescale(*args, **kwargs)
+
+ def Resize(*args, **kwargs):
+ """Resize(self, wxSize size, wxPoint pos, int r=-1, int g=-1, int b=-1) -> wxImage"""
+ return __core.wxImage_Resize(*args, **kwargs)
def SetRGB(*args, **kwargs):
"""SetRGB(self, int x, int y, unsigned char r, unsigned char g, unsigned char b)"""
- return _core_.Image_SetRGB(*args, **kwargs)
+ return __core.wxImage_SetRGB(*args, **kwargs)
+
+ def SetRGBRect(*args, **kwargs):
+ """SetRGBRect(self, wxRect rect, unsigned char r, unsigned char g, unsigned char b)"""
+ return __core.wxImage_SetRGBRect(*args, **kwargs)
def GetRed(*args, **kwargs):
"""GetRed(self, int x, int y) -> unsigned char"""
- return _core_.Image_GetRed(*args, **kwargs)
+ return __core.wxImage_GetRed(*args, **kwargs)
def GetGreen(*args, **kwargs):
"""GetGreen(self, int x, int y) -> unsigned char"""
- return _core_.Image_GetGreen(*args, **kwargs)
+ return __core.wxImage_GetGreen(*args, **kwargs)
def GetBlue(*args, **kwargs):
"""GetBlue(self, int x, int y) -> unsigned char"""
- return _core_.Image_GetBlue(*args, **kwargs)
+ return __core.wxImage_GetBlue(*args, **kwargs)
def SetAlpha(*args, **kwargs):
"""SetAlpha(self, int x, int y, unsigned char alpha)"""
- return _core_.Image_SetAlpha(*args, **kwargs)
+ return __core.wxImage_SetAlpha(*args, **kwargs)
def GetAlpha(*args, **kwargs):
"""GetAlpha(self, int x, int y) -> unsigned char"""
- return _core_.Image_GetAlpha(*args, **kwargs)
+ return __core.wxImage_GetAlpha(*args, **kwargs)
def HasAlpha(*args, **kwargs):
"""HasAlpha(self) -> bool"""
- return _core_.Image_HasAlpha(*args, **kwargs)
+ return __core.wxImage_HasAlpha(*args, **kwargs)
+
+ def InitAlpha(*args, **kwargs):
+ """
+ InitAlpha(self)
+
+ Initializes the image alpha channel data. It is an error to call it if
+ the image already has alpha data. If it doesn't, alpha data will be by
+ default initialized to all pixels being fully opaque. But if the image
+ has a a mask colour, all mask pixels will be completely transparent.
+ """
+ return __core.wxImage_InitAlpha(*args, **kwargs)
def FindFirstUnusedColour(*args, **kwargs):
"""
values than startR, startG, startB. Returns a tuple consisting of a
success flag and rgb values.
"""
- return _core_.Image_FindFirstUnusedColour(*args, **kwargs)
+ return __core.wxImage_FindFirstUnusedColour(*args, **kwargs)
def ConvertAlphaToMask(*args, **kwargs):
"""
If the image image doesn't have alpha channel, ConvertAlphaToMask does
nothing.
"""
- return _core_.Image_ConvertAlphaToMask(*args, **kwargs)
+ return __core.wxImage_ConvertAlphaToMask(*args, **kwargs)
+
+ def ConvertColourToAlpha(*args, **kwargs):
+ """
+ ConvertColourToAlpha(self, unsigned char r, unsigned char g, unsigned char b) -> bool
+
+ This method converts an image where the original alpha information is
+ only available as a shades of a colour (actually shades of grey)
+ typically when you draw anti-aliased text into a bitmap. The DC
+ drawing routines draw grey values on the black background although
+ they actually mean to draw white with differnt alpha values. This
+ method reverses it, assuming a black (!) background and white text.
+ The method will then fill up the whole image with the colour given.
+ """
+ return __core.wxImage_ConvertColourToAlpha(*args, **kwargs)
def SetMaskFromImage(*args, **kwargs):
- """SetMaskFromImage(self, Image mask, byte mr, byte mg, byte mb) -> bool"""
- return _core_.Image_SetMaskFromImage(*args, **kwargs)
+ """SetMaskFromImage(self, wxImage mask, byte mr, byte mg, byte mb) -> bool"""
+ return __core.wxImage_SetMaskFromImage(*args, **kwargs)
def CanRead(*args, **kwargs):
- """CanRead(String name) -> bool"""
- return _core_.Image_CanRead(*args, **kwargs)
+ """CanRead(wxString name) -> bool"""
+ return __core.wxImage_CanRead(*args, **kwargs)
CanRead = staticmethod(CanRead)
def GetImageCount(*args, **kwargs):
- """GetImageCount(String name, long type=BITMAP_TYPE_ANY) -> int"""
- return _core_.Image_GetImageCount(*args, **kwargs)
+ """GetImageCount(wxString name, long type=wxBITMAP_TYPE_ANY) -> int"""
+ return __core.wxImage_GetImageCount(*args, **kwargs)
GetImageCount = staticmethod(GetImageCount)
def LoadFile(*args, **kwargs):
- """LoadFile(self, String name, long type=BITMAP_TYPE_ANY, int index=-1) -> bool"""
- return _core_.Image_LoadFile(*args, **kwargs)
+ """LoadFile(self, wxString name, long type=wxBITMAP_TYPE_ANY, int index=-1) -> bool"""
+ return __core.wxImage_LoadFile(*args, **kwargs)
def LoadMimeFile(*args, **kwargs):
- """LoadMimeFile(self, String name, String mimetype, int index=-1) -> bool"""
- return _core_.Image_LoadMimeFile(*args, **kwargs)
+ """LoadMimeFile(self, wxString name, wxString mimetype, int index=-1) -> bool"""
+ return __core.wxImage_LoadMimeFile(*args, **kwargs)
def SaveFile(*args, **kwargs):
- """SaveFile(self, String name, int type) -> bool"""
- return _core_.Image_SaveFile(*args, **kwargs)
+ """SaveFile(self, wxString name, int type) -> bool"""
+ return __core.wxImage_SaveFile(*args, **kwargs)
def SaveMimeFile(*args, **kwargs):
- """SaveMimeFile(self, String name, String mimetype) -> bool"""
- return _core_.Image_SaveMimeFile(*args, **kwargs)
+ """SaveMimeFile(self, wxString name, wxString mimetype) -> bool"""
+ return __core.wxImage_SaveMimeFile(*args, **kwargs)
def CanReadStream(*args, **kwargs):
- """CanReadStream(InputStream stream) -> bool"""
- return _core_.Image_CanReadStream(*args, **kwargs)
+ """CanReadStream(wxInputStream stream) -> bool"""
+ return __core.wxImage_CanReadStream(*args, **kwargs)
CanReadStream = staticmethod(CanReadStream)
def LoadStream(*args, **kwargs):
- """LoadStream(self, InputStream stream, long type=BITMAP_TYPE_ANY, int index=-1) -> bool"""
- return _core_.Image_LoadStream(*args, **kwargs)
+ """
+ LoadStream(self, wxInputStream stream, long type=wxBITMAP_TYPE_ANY,
+ int index=-1) -> bool
+ """
+ return __core.wxImage_LoadStream(*args, **kwargs)
def LoadMimeStream(*args, **kwargs):
- """LoadMimeStream(self, InputStream stream, String mimetype, int index=-1) -> bool"""
- return _core_.Image_LoadMimeStream(*args, **kwargs)
+ """LoadMimeStream(self, wxInputStream stream, wxString mimetype, int index=-1) -> bool"""
+ return __core.wxImage_LoadMimeStream(*args, **kwargs)
def Ok(*args, **kwargs):
"""Ok(self) -> bool"""
- return _core_.Image_Ok(*args, **kwargs)
+ return __core.wxImage_Ok(*args, **kwargs)
def GetWidth(*args, **kwargs):
"""GetWidth(self) -> int"""
- return _core_.Image_GetWidth(*args, **kwargs)
+ return __core.wxImage_GetWidth(*args, **kwargs)
def GetHeight(*args, **kwargs):
"""GetHeight(self) -> int"""
- return _core_.Image_GetHeight(*args, **kwargs)
+ return __core.wxImage_GetHeight(*args, **kwargs)
def GetSize(*args, **kwargs):
- """GetSize(self) -> Size"""
- return _core_.Image_GetSize(*args, **kwargs)
+ """GetSize(self) -> wxSize"""
+ return __core.wxImage_GetSize(*args, **kwargs)
def GetSubImage(*args, **kwargs):
- """GetSubImage(self, Rect rect) -> Image"""
- return _core_.Image_GetSubImage(*args, **kwargs)
+ """GetSubImage(self, wxRect rect) -> wxImage"""
+ return __core.wxImage_GetSubImage(*args, **kwargs)
+
+ def Size(*args, **kwargs):
+ """Size(self, wxSize size, wxPoint pos, int r=-1, int g=-1, int b=-1) -> wxImage"""
+ return __core.wxImage_Size(*args, **kwargs)
def Copy(*args, **kwargs):
- """Copy(self) -> Image"""
- return _core_.Image_Copy(*args, **kwargs)
+ """Copy(self) -> wxImage"""
+ return __core.wxImage_Copy(*args, **kwargs)
def Paste(*args, **kwargs):
- """Paste(self, Image image, int x, int y)"""
- return _core_.Image_Paste(*args, **kwargs)
+ """Paste(self, wxImage image, int x, int y)"""
+ return __core.wxImage_Paste(*args, **kwargs)
def GetData(*args, **kwargs):
- """GetData(self) -> PyObject"""
- return _core_.Image_GetData(*args, **kwargs)
+ """
+ GetData(self) -> PyObject
+
+ Returns a string containing a copy of the RGB bytes of the image.
+ """
+ return __core.wxImage_GetData(*args, **kwargs)
def SetData(*args, **kwargs):
- """SetData(self, PyObject data)"""
- return _core_.Image_SetData(*args, **kwargs)
+ """
+ SetData(self, buffer data)
+
+ Resets the Image's RGB data from a buffer of RGB bytes. Accepts
+ either a string or a buffer object holding the data and the length of
+ the data must be width*height*3.
+ """
+ return __core.wxImage_SetData(*args, **kwargs)
def GetDataBuffer(*args, **kwargs):
- """GetDataBuffer(self) -> PyObject"""
- return _core_.Image_GetDataBuffer(*args, **kwargs)
+ """
+ GetDataBuffer(self) -> PyObject
+
+ Returns a writable Python buffer object that is pointing at the RGB
+ image data buffer inside the wx.Image.
+ """
+ return __core.wxImage_GetDataBuffer(*args, **kwargs)
def SetDataBuffer(*args, **kwargs):
- """SetDataBuffer(self, PyObject data)"""
- return _core_.Image_SetDataBuffer(*args, **kwargs)
+ """
+ SetDataBuffer(self, buffer data)
+
+ Sets the internal image data pointer to point at a Python buffer
+ object. This can save a copy of the data but you must ensure that the
+ buffer object lives longer than the wx.Image does.
+ """
+ return __core.wxImage_SetDataBuffer(*args, **kwargs)
def GetAlphaData(*args, **kwargs):
- """GetAlphaData(self) -> PyObject"""
- return _core_.Image_GetAlphaData(*args, **kwargs)
+ """
+ GetAlphaData(self) -> PyObject
+
+ Returns a string containing a copy of the alpha bytes of the image.
+ """
+ return __core.wxImage_GetAlphaData(*args, **kwargs)
def SetAlphaData(*args, **kwargs):
- """SetAlphaData(self, PyObject data)"""
- return _core_.Image_SetAlphaData(*args, **kwargs)
+ """
+ SetAlphaData(self, buffer alpha)
+
+ Resets the Image's alpha data from a buffer of bytes. Accepts either
+ a string or a buffer object holding the data and the length of the
+ data must be width*height.
+ """
+ return __core.wxImage_SetAlphaData(*args, **kwargs)
def GetAlphaBuffer(*args, **kwargs):
"""GetAlphaBuffer(self) -> PyObject"""
- return _core_.Image_GetAlphaBuffer(*args, **kwargs)
+ return __core.wxImage_GetAlphaBuffer(*args, **kwargs)
def SetAlphaBuffer(*args, **kwargs):
- """SetAlphaBuffer(self, PyObject data)"""
- return _core_.Image_SetAlphaBuffer(*args, **kwargs)
+ """SetAlphaBuffer(self, buffer alpha)"""
+ return __core.wxImage_SetAlphaBuffer(*args, **kwargs)
def SetMaskColour(*args, **kwargs):
"""SetMaskColour(self, unsigned char r, unsigned char g, unsigned char b)"""
- return _core_.Image_SetMaskColour(*args, **kwargs)
+ return __core.wxImage_SetMaskColour(*args, **kwargs)
+
+ def GetOrFindMaskColour(*args, **kwargs):
+ """
+ GetOrFindMaskColour() -> (r,g,b)
+
+ Get the current mask colour or find a suitable colour.
+ """
+ return __core.wxImage_GetOrFindMaskColour(*args, **kwargs)
def GetMaskRed(*args, **kwargs):
"""GetMaskRed(self) -> unsigned char"""
- return _core_.Image_GetMaskRed(*args, **kwargs)
+ return __core.wxImage_GetMaskRed(*args, **kwargs)
def GetMaskGreen(*args, **kwargs):
"""GetMaskGreen(self) -> unsigned char"""
- return _core_.Image_GetMaskGreen(*args, **kwargs)
+ return __core.wxImage_GetMaskGreen(*args, **kwargs)
def GetMaskBlue(*args, **kwargs):
"""GetMaskBlue(self) -> unsigned char"""
- return _core_.Image_GetMaskBlue(*args, **kwargs)
+ return __core.wxImage_GetMaskBlue(*args, **kwargs)
def SetMask(*args, **kwargs):
"""SetMask(self, bool mask=True)"""
- return _core_.Image_SetMask(*args, **kwargs)
+ return __core.wxImage_SetMask(*args, **kwargs)
def HasMask(*args, **kwargs):
"""HasMask(self) -> bool"""
- return _core_.Image_HasMask(*args, **kwargs)
+ return __core.wxImage_HasMask(*args, **kwargs)
def Rotate(*args, **kwargs):
"""
- Rotate(self, double angle, Point centre_of_rotation, bool interpolating=True,
- Point offset_after_rotation=None) -> Image
+ Rotate(self, double angle, wxPoint centre_of_rotation, bool interpolating=True,
+ wxPoint offset_after_rotation=None) -> wxImage
"""
- return _core_.Image_Rotate(*args, **kwargs)
+ return __core.wxImage_Rotate(*args, **kwargs)
def Rotate90(*args, **kwargs):
- """Rotate90(self, bool clockwise=True) -> Image"""
- return _core_.Image_Rotate90(*args, **kwargs)
+ """Rotate90(self, bool clockwise=True) -> wxImage"""
+ return __core.wxImage_Rotate90(*args, **kwargs)
def Mirror(*args, **kwargs):
- """Mirror(self, bool horizontally=True) -> Image"""
- return _core_.Image_Mirror(*args, **kwargs)
+ """Mirror(self, bool horizontally=True) -> wxImage"""
+ return __core.wxImage_Mirror(*args, **kwargs)
def Replace(*args, **kwargs):
"""
Replace(self, unsigned char r1, unsigned char g1, unsigned char b1,
unsigned char r2, unsigned char g2, unsigned char b2)
"""
- return _core_.Image_Replace(*args, **kwargs)
+ return __core.wxImage_Replace(*args, **kwargs)
def ConvertToMono(*args, **kwargs):
- """ConvertToMono(self, unsigned char r, unsigned char g, unsigned char b) -> Image"""
- return _core_.Image_ConvertToMono(*args, **kwargs)
+ """ConvertToMono(self, unsigned char r, unsigned char g, unsigned char b) -> wxImage"""
+ return __core.wxImage_ConvertToMono(*args, **kwargs)
def SetOption(*args, **kwargs):
- """SetOption(self, String name, String value)"""
- return _core_.Image_SetOption(*args, **kwargs)
+ """SetOption(self, wxString name, wxString value)"""
+ return __core.wxImage_SetOption(*args, **kwargs)
def SetOptionInt(*args, **kwargs):
- """SetOptionInt(self, String name, int value)"""
- return _core_.Image_SetOptionInt(*args, **kwargs)
+ """SetOptionInt(self, wxString name, int value)"""
+ return __core.wxImage_SetOptionInt(*args, **kwargs)
def GetOption(*args, **kwargs):
- """GetOption(self, String name) -> String"""
- return _core_.Image_GetOption(*args, **kwargs)
+ """GetOption(self, wxString name) -> wxString"""
+ return __core.wxImage_GetOption(*args, **kwargs)
def GetOptionInt(*args, **kwargs):
- """GetOptionInt(self, String name) -> int"""
- return _core_.Image_GetOptionInt(*args, **kwargs)
+ """GetOptionInt(self, wxString name) -> int"""
+ return __core.wxImage_GetOptionInt(*args, **kwargs)
def HasOption(*args, **kwargs):
- """HasOption(self, String name) -> bool"""
- return _core_.Image_HasOption(*args, **kwargs)
+ """HasOption(self, wxString name) -> bool"""
+ return __core.wxImage_HasOption(*args, **kwargs)
def CountColours(*args, **kwargs):
"""CountColours(self, unsigned long stopafter=(unsigned long) -1) -> unsigned long"""
- return _core_.Image_CountColours(*args, **kwargs)
+ return __core.wxImage_CountColours(*args, **kwargs)
def ComputeHistogram(*args, **kwargs):
- """ComputeHistogram(self, ImageHistogram h) -> unsigned long"""
- return _core_.Image_ComputeHistogram(*args, **kwargs)
+ """ComputeHistogram(self, wxImageHistogram h) -> unsigned long"""
+ return __core.wxImage_ComputeHistogram(*args, **kwargs)
def AddHandler(*args, **kwargs):
- """AddHandler(ImageHandler handler)"""
- return _core_.Image_AddHandler(*args, **kwargs)
+ """AddHandler(wxImageHandler handler)"""
+ return __core.wxImage_AddHandler(*args, **kwargs)
AddHandler = staticmethod(AddHandler)
def InsertHandler(*args, **kwargs):
- """InsertHandler(ImageHandler handler)"""
- return _core_.Image_InsertHandler(*args, **kwargs)
+ """InsertHandler(wxImageHandler handler)"""
+ return __core.wxImage_InsertHandler(*args, **kwargs)
InsertHandler = staticmethod(InsertHandler)
def RemoveHandler(*args, **kwargs):
- """RemoveHandler(String name) -> bool"""
- return _core_.Image_RemoveHandler(*args, **kwargs)
+ """RemoveHandler(wxString name) -> bool"""
+ return __core.wxImage_RemoveHandler(*args, **kwargs)
RemoveHandler = staticmethod(RemoveHandler)
def GetImageExtWildcard(*args, **kwargs):
- """GetImageExtWildcard() -> String"""
- return _core_.Image_GetImageExtWildcard(*args, **kwargs)
+ """GetImageExtWildcard() -> wxString"""
+ return __core.wxImage_GetImageExtWildcard(*args, **kwargs)
GetImageExtWildcard = staticmethod(GetImageExtWildcard)
def ConvertToBitmap(*args, **kwargs):
- """ConvertToBitmap(self, int depth=-1) -> Bitmap"""
- return _core_.Image_ConvertToBitmap(*args, **kwargs)
+ """ConvertToBitmap(self, int depth=-1) -> wxBitmap"""
+ return __core.wxImage_ConvertToBitmap(*args, **kwargs)
def ConvertToMonoBitmap(*args, **kwargs):
- """ConvertToMonoBitmap(self, unsigned char red, unsigned char green, unsigned char blue) -> Bitmap"""
- return _core_.Image_ConvertToMonoBitmap(*args, **kwargs)
+ """ConvertToMonoBitmap(self, unsigned char red, unsigned char green, unsigned char blue) -> wxBitmap"""
+ return __core.wxImage_ConvertToMonoBitmap(*args, **kwargs)
def __nonzero__(self): return self.Ok()
-class ImagePtr(Image):
+class wxImagePtr(wxImage):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = Image
-_core_.Image_swigregister(ImagePtr)
+ self.__class__ = wxImage
+__core.wxImage_swigregister(wxImagePtr)
def ImageFromMime(*args, **kwargs):
- """ImageFromMime(String name, String mimetype, int index=-1) -> Image"""
- val = _core_.new_ImageFromMime(*args, **kwargs)
+ """ImageFromMime(wxString name, wxString mimetype, int index=-1) -> wxImage"""
+ val = __core.new_ImageFromMime(*args, **kwargs)
val.thisown = 1
return val
def ImageFromStream(*args, **kwargs):
- """ImageFromStream(InputStream stream, long type=BITMAP_TYPE_ANY, int index=-1) -> Image"""
- val = _core_.new_ImageFromStream(*args, **kwargs)
+ """
+ ImageFromStream(wxInputStream stream, long type=wxBITMAP_TYPE_ANY,
+ int index=-1) -> wxImage
+ """
+ val = __core.new_ImageFromStream(*args, **kwargs)
val.thisown = 1
return val
def ImageFromStreamMime(*args, **kwargs):
- """ImageFromStreamMime(InputStream stream, String mimetype, int index=-1) -> Image"""
- val = _core_.new_ImageFromStreamMime(*args, **kwargs)
+ """ImageFromStreamMime(wxInputStream stream, wxString mimetype, int index=-1) -> wxImage"""
+ val = __core.new_ImageFromStreamMime(*args, **kwargs)
val.thisown = 1
return val
def EmptyImage(*args, **kwargs):
- """EmptyImage(int width=0, int height=0, bool clear=True) -> Image"""
- val = _core_.new_EmptyImage(*args, **kwargs)
+ """
+ EmptyImage(int width=0, int height=0, bool clear=True) -> wxImage
+
+ Construct an empty image of a given size, optionally setting all
+ pixels to black.
+ """
+ val = __core.new_EmptyImage(*args, **kwargs)
val.thisown = 1
return val
def ImageFromBitmap(*args, **kwargs):
- """ImageFromBitmap(Bitmap bitmap) -> Image"""
- val = _core_.new_ImageFromBitmap(*args, **kwargs)
+ """
+ ImageFromBitmap(wxBitmap bitmap) -> wxImage
+
+ Construct an Image from a `wx.Bitmap`.
+ """
+ val = __core.new_ImageFromBitmap(*args, **kwargs)
val.thisown = 1
return val
def ImageFromData(*args, **kwargs):
- """ImageFromData(int width, int height, unsigned char data) -> Image"""
- val = _core_.new_ImageFromData(*args, **kwargs)
+ """
+ ImageFromData(int width, int height, buffer data) -> wxImage
+
+ Construct an Image from a buffer of RGB bytes. Accepts either a
+ string or a buffer object holding the data and the length of the data
+ must be width*height*3.
+ """
+ val = __core.new_ImageFromData(*args, **kwargs)
val.thisown = 1
return val
-def Image_CanRead(*args, **kwargs):
- """Image_CanRead(String name) -> bool"""
- return _core_.Image_CanRead(*args, **kwargs)
+def ImageFromDataWithAlpha(*args, **kwargs):
+ """
+ ImageFromDataWithAlpha(int width, int height, buffer data, buffer alpha) -> wxImage
-def Image_GetImageCount(*args, **kwargs):
- """Image_GetImageCount(String name, long type=BITMAP_TYPE_ANY) -> int"""
- return _core_.Image_GetImageCount(*args, **kwargs)
+ Construct an Image from a buffer of RGB bytes with an Alpha channel.
+ Accepts either a string or a buffer object holding the data and the
+ length of the data must be width*height*3.
+ """
+ val = __core.new_ImageFromDataWithAlpha(*args, **kwargs)
+ val.thisown = 1
+ return val
-def Image_CanReadStream(*args, **kwargs):
- """Image_CanReadStream(InputStream stream) -> bool"""
- return _core_.Image_CanReadStream(*args, **kwargs)
+def wxImage_CanRead(*args, **kwargs):
+ """wxImage_CanRead(wxString name) -> bool"""
+ return __core.wxImage_CanRead(*args, **kwargs)
-def Image_AddHandler(*args, **kwargs):
- """Image_AddHandler(ImageHandler handler)"""
- return _core_.Image_AddHandler(*args, **kwargs)
+def wxImage_GetImageCount(*args, **kwargs):
+ """wxImage_GetImageCount(wxString name, long type=wxBITMAP_TYPE_ANY) -> int"""
+ return __core.wxImage_GetImageCount(*args, **kwargs)
-def Image_InsertHandler(*args, **kwargs):
- """Image_InsertHandler(ImageHandler handler)"""
- return _core_.Image_InsertHandler(*args, **kwargs)
+def wxImage_CanReadStream(*args, **kwargs):
+ """wxImage_CanReadStream(wxInputStream stream) -> bool"""
+ return __core.wxImage_CanReadStream(*args, **kwargs)
-def Image_RemoveHandler(*args, **kwargs):
- """Image_RemoveHandler(String name) -> bool"""
- return _core_.Image_RemoveHandler(*args, **kwargs)
+def wxImage_AddHandler(*args, **kwargs):
+ """wxImage_AddHandler(wxImageHandler handler)"""
+ return __core.wxImage_AddHandler(*args, **kwargs)
-def Image_GetImageExtWildcard(*args, **kwargs):
- """Image_GetImageExtWildcard() -> String"""
- return _core_.Image_GetImageExtWildcard(*args, **kwargs)
+def wxImage_InsertHandler(*args, **kwargs):
+ """wxImage_InsertHandler(wxImageHandler handler)"""
+ return __core.wxImage_InsertHandler(*args, **kwargs)
+
+def wxImage_RemoveHandler(*args, **kwargs):
+ """wxImage_RemoveHandler(wxString name) -> bool"""
+ return __core.wxImage_RemoveHandler(*args, **kwargs)
+
+def wxImage_GetImageExtWildcard(*args, **kwargs):
+ """wxImage_GetImageExtWildcard() -> wxString"""
+ return __core.wxImage_GetImageExtWildcard(*args, **kwargs)
def InitAllImageHandlers():
"""
"""
pass
-IMAGE_RESOLUTION_INCHES = _core_.IMAGE_RESOLUTION_INCHES
-IMAGE_RESOLUTION_CM = _core_.IMAGE_RESOLUTION_CM
-BMP_24BPP = _core_.BMP_24BPP
-BMP_8BPP = _core_.BMP_8BPP
-BMP_8BPP_GREY = _core_.BMP_8BPP_GREY
-BMP_8BPP_GRAY = _core_.BMP_8BPP_GRAY
-BMP_8BPP_RED = _core_.BMP_8BPP_RED
-BMP_8BPP_PALETTE = _core_.BMP_8BPP_PALETTE
-BMP_4BPP = _core_.BMP_4BPP
-BMP_1BPP = _core_.BMP_1BPP
-BMP_1BPP_BW = _core_.BMP_1BPP_BW
-class BMPHandler(ImageHandler):
+wxIMAGE_RESOLUTION_INCHES = __core.wxIMAGE_RESOLUTION_INCHES
+wxIMAGE_RESOLUTION_CM = __core.wxIMAGE_RESOLUTION_CM
+wxPNG_TYPE_COLOUR = __core.wxPNG_TYPE_COLOUR
+wxPNG_TYPE_GREY = __core.wxPNG_TYPE_GREY
+wxPNG_TYPE_GREY_RED = __core.wxPNG_TYPE_GREY_RED
+wxBMP_24BPP = __core.wxBMP_24BPP
+wxBMP_8BPP = __core.wxBMP_8BPP
+wxBMP_8BPP_GREY = __core.wxBMP_8BPP_GREY
+wxBMP_8BPP_GRAY = __core.wxBMP_8BPP_GRAY
+wxBMP_8BPP_RED = __core.wxBMP_8BPP_RED
+wxBMP_8BPP_PALETTE = __core.wxBMP_8BPP_PALETTE
+wxBMP_4BPP = __core.wxBMP_4BPP
+wxBMP_1BPP = __core.wxBMP_1BPP
+wxBMP_1BPP_BW = __core.wxBMP_1BPP_BW
+class wxBMPHandler(wxImageHandler):
+ """Proxy of C++ wxBMPHandler class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxBMPHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
- """__init__(self) -> BMPHandler"""
- newobj = _core_.new_BMPHandler(*args, **kwargs)
+ """__init__(self) -> wxBMPHandler"""
+ newobj = __core.new_wxBMPHandler(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
-class BMPHandlerPtr(BMPHandler):
+class wxBMPHandlerPtr(wxBMPHandler):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = BMPHandler
-_core_.BMPHandler_swigregister(BMPHandlerPtr)
-NullImage = cvar.NullImage
+ self.__class__ = wxBMPHandler
+__core.wxBMPHandler_swigregister(wxBMPHandlerPtr)
+wxNullImage = cvar.wxNullImage
+IMAGE_OPTION_FILENAME = cvar.IMAGE_OPTION_FILENAME
IMAGE_OPTION_BMP_FORMAT = cvar.IMAGE_OPTION_BMP_FORMAT
IMAGE_OPTION_CUR_HOTSPOT_X = cvar.IMAGE_OPTION_CUR_HOTSPOT_X
IMAGE_OPTION_CUR_HOTSPOT_Y = cvar.IMAGE_OPTION_CUR_HOTSPOT_Y
IMAGE_OPTION_RESOLUTION = cvar.IMAGE_OPTION_RESOLUTION
+IMAGE_OPTION_RESOLUTIONX = cvar.IMAGE_OPTION_RESOLUTIONX
+IMAGE_OPTION_RESOLUTIONY = cvar.IMAGE_OPTION_RESOLUTIONY
IMAGE_OPTION_RESOLUTIONUNIT = cvar.IMAGE_OPTION_RESOLUTIONUNIT
-
-class ICOHandler(BMPHandler):
+IMAGE_OPTION_QUALITY = cvar.IMAGE_OPTION_QUALITY
+IMAGE_OPTION_BITSPERSAMPLE = cvar.IMAGE_OPTION_BITSPERSAMPLE
+IMAGE_OPTION_SAMPLESPERPIXEL = cvar.IMAGE_OPTION_SAMPLESPERPIXEL
+IMAGE_OPTION_COMPRESSION = cvar.IMAGE_OPTION_COMPRESSION
+IMAGE_OPTION_IMAGEDESCRIPTOR = cvar.IMAGE_OPTION_IMAGEDESCRIPTOR
+IMAGE_OPTION_PNG_FORMAT = cvar.IMAGE_OPTION_PNG_FORMAT
+IMAGE_OPTION_PNG_BITDEPTH = cvar.IMAGE_OPTION_PNG_BITDEPTH
+
+class wxICOHandler(wxBMPHandler):
+ """Proxy of C++ wxICOHandler class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxICOHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
- """__init__(self) -> ICOHandler"""
- newobj = _core_.new_ICOHandler(*args, **kwargs)
+ """__init__(self) -> wxICOHandler"""
+ newobj = __core.new_wxICOHandler(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
-class ICOHandlerPtr(ICOHandler):
+class wxICOHandlerPtr(wxICOHandler):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = ICOHandler
-_core_.ICOHandler_swigregister(ICOHandlerPtr)
+ self.__class__ = wxICOHandler
+__core.wxICOHandler_swigregister(wxICOHandlerPtr)
-class CURHandler(ICOHandler):
+class wxCURHandler(wxICOHandler):
+ """Proxy of C++ wxCURHandler class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxCURHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
- """__init__(self) -> CURHandler"""
- newobj = _core_.new_CURHandler(*args, **kwargs)
+ """__init__(self) -> wxCURHandler"""
+ newobj = __core.new_wxCURHandler(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
-class CURHandlerPtr(CURHandler):
+class wxCURHandlerPtr(wxCURHandler):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = CURHandler
-_core_.CURHandler_swigregister(CURHandlerPtr)
+ self.__class__ = wxCURHandler
+__core.wxCURHandler_swigregister(wxCURHandlerPtr)
-class ANIHandler(CURHandler):
+class wxANIHandler(wxCURHandler):
+ """Proxy of C++ wxANIHandler class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxANIHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
- """__init__(self) -> ANIHandler"""
- newobj = _core_.new_ANIHandler(*args, **kwargs)
+ """__init__(self) -> wxANIHandler"""
+ newobj = __core.new_wxANIHandler(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
-class ANIHandlerPtr(ANIHandler):
+class wxANIHandlerPtr(wxANIHandler):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = ANIHandler
-_core_.ANIHandler_swigregister(ANIHandlerPtr)
+ self.__class__ = wxANIHandler
+__core.wxANIHandler_swigregister(wxANIHandlerPtr)
-class PNGHandler(ImageHandler):
+class wxPNGHandler(wxImageHandler):
+ """Proxy of C++ wxPNGHandler class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxPNGHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
- """__init__(self) -> PNGHandler"""
- newobj = _core_.new_PNGHandler(*args, **kwargs)
+ """__init__(self) -> wxPNGHandler"""
+ newobj = __core.new_wxPNGHandler(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
-class PNGHandlerPtr(PNGHandler):
+class wxPNGHandlerPtr(wxPNGHandler):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = PNGHandler
-_core_.PNGHandler_swigregister(PNGHandlerPtr)
+ self.__class__ = wxPNGHandler
+__core.wxPNGHandler_swigregister(wxPNGHandlerPtr)
-class GIFHandler(ImageHandler):
+class wxGIFHandler(wxImageHandler):
+ """Proxy of C++ wxGIFHandler class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxGIFHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
- """__init__(self) -> GIFHandler"""
- newobj = _core_.new_GIFHandler(*args, **kwargs)
+ """__init__(self) -> wxGIFHandler"""
+ newobj = __core.new_wxGIFHandler(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
-class GIFHandlerPtr(GIFHandler):
+class wxGIFHandlerPtr(wxGIFHandler):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = GIFHandler
-_core_.GIFHandler_swigregister(GIFHandlerPtr)
+ self.__class__ = wxGIFHandler
+__core.wxGIFHandler_swigregister(wxGIFHandlerPtr)
-class PCXHandler(ImageHandler):
+class wxPCXHandler(wxImageHandler):
+ """Proxy of C++ wxPCXHandler class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxPCXHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
- """__init__(self) -> PCXHandler"""
- newobj = _core_.new_PCXHandler(*args, **kwargs)
+ """__init__(self) -> wxPCXHandler"""
+ newobj = __core.new_wxPCXHandler(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
-class PCXHandlerPtr(PCXHandler):
+class wxPCXHandlerPtr(wxPCXHandler):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = PCXHandler
-_core_.PCXHandler_swigregister(PCXHandlerPtr)
+ self.__class__ = wxPCXHandler
+__core.wxPCXHandler_swigregister(wxPCXHandlerPtr)
-class JPEGHandler(ImageHandler):
+class wxJPEGHandler(wxImageHandler):
+ """Proxy of C++ wxJPEGHandler class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxJPEGHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
- """__init__(self) -> JPEGHandler"""
- newobj = _core_.new_JPEGHandler(*args, **kwargs)
+ """__init__(self) -> wxJPEGHandler"""
+ newobj = __core.new_wxJPEGHandler(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
-class JPEGHandlerPtr(JPEGHandler):
+class wxJPEGHandlerPtr(wxJPEGHandler):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = JPEGHandler
-_core_.JPEGHandler_swigregister(JPEGHandlerPtr)
+ self.__class__ = wxJPEGHandler
+__core.wxJPEGHandler_swigregister(wxJPEGHandlerPtr)
-class PNMHandler(ImageHandler):
+class wxPNMHandler(wxImageHandler):
+ """Proxy of C++ wxPNMHandler class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxPNMHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
- """__init__(self) -> PNMHandler"""
- newobj = _core_.new_PNMHandler(*args, **kwargs)
+ """__init__(self) -> wxPNMHandler"""
+ newobj = __core.new_wxPNMHandler(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
-class PNMHandlerPtr(PNMHandler):
+class wxPNMHandlerPtr(wxPNMHandler):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = PNMHandler
-_core_.PNMHandler_swigregister(PNMHandlerPtr)
+ self.__class__ = wxPNMHandler
+__core.wxPNMHandler_swigregister(wxPNMHandlerPtr)
-class XPMHandler(ImageHandler):
+class wxXPMHandler(wxImageHandler):
+ """Proxy of C++ wxXPMHandler class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxXPMHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
- """__init__(self) -> XPMHandler"""
- newobj = _core_.new_XPMHandler(*args, **kwargs)
+ """__init__(self) -> wxXPMHandler"""
+ newobj = __core.new_wxXPMHandler(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
-class XPMHandlerPtr(XPMHandler):
+class wxXPMHandlerPtr(wxXPMHandler):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = XPMHandler
-_core_.XPMHandler_swigregister(XPMHandlerPtr)
+ self.__class__ = wxXPMHandler
+__core.wxXPMHandler_swigregister(wxXPMHandlerPtr)
-class TIFFHandler(ImageHandler):
+class wxTIFFHandler(wxImageHandler):
+ """Proxy of C++ wxTIFFHandler class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxTIFFHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
- """__init__(self) -> TIFFHandler"""
- newobj = _core_.new_TIFFHandler(*args, **kwargs)
+ """__init__(self) -> wxTIFFHandler"""
+ newobj = __core.new_wxTIFFHandler(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
-class TIFFHandlerPtr(TIFFHandler):
+class wxTIFFHandlerPtr(wxTIFFHandler):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = TIFFHandler
-_core_.TIFFHandler_swigregister(TIFFHandlerPtr)
+ self.__class__ = wxTIFFHandler
+__core.wxTIFFHandler_swigregister(wxTIFFHandlerPtr)
-QUANTIZE_INCLUDE_WINDOWS_COLOURS = _core_.QUANTIZE_INCLUDE_WINDOWS_COLOURS
-QUANTIZE_FILL_DESTINATION_IMAGE = _core_.QUANTIZE_FILL_DESTINATION_IMAGE
-class Quantize(object):
+wxQUANTIZE_INCLUDE_WINDOWS_COLOURS = __core.wxQUANTIZE_INCLUDE_WINDOWS_COLOURS
+wxQUANTIZE_FILL_DESTINATION_IMAGE = __core.wxQUANTIZE_FILL_DESTINATION_IMAGE
+class wxQuantize(object):
"""Performs quantization, or colour reduction, on a wxImage."""
def __init__(self): raise RuntimeError, "No constructor defined"
def __repr__(self):
return "<%s.%s; proxy of C++ wxQuantize instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def Quantize(*args, **kwargs):
"""
- Quantize(Image src, Image dest, int desiredNoColours=236, int flags=wxQUANTIZE_INCLUDE_WINDOWS_COLOURS|wxQUANTIZE_FILL_DESTINATION_IMAGE) -> bool
+ Quantize(wxImage src, wxImage dest, int desiredNoColours=236,
+ int flags=wxQUANTIZE_INCLUDE_WINDOWS_COLOURS|wxQUANTIZE_FILL_DESTINATION_IMAGE) -> bool
Reduce the colours in the source image and put the result into the
destination image, setting the palette in the destination if
needed. Both images may be the same, to overwrite the source image.
"""
- return _core_.Quantize_Quantize(*args, **kwargs)
+ return __core.wxQuantize_Quantize(*args, **kwargs)
Quantize = staticmethod(Quantize)
-class QuantizePtr(Quantize):
+class wxQuantizePtr(wxQuantize):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = Quantize
-_core_.Quantize_swigregister(QuantizePtr)
+ self.__class__ = wxQuantize
+__core.wxQuantize_swigregister(wxQuantizePtr)
-def Quantize_Quantize(*args, **kwargs):
+def wxQuantize_Quantize(*args, **kwargs):
"""
- Quantize_Quantize(Image src, Image dest, int desiredNoColours=236, int flags=wxQUANTIZE_INCLUDE_WINDOWS_COLOURS|wxQUANTIZE_FILL_DESTINATION_IMAGE) -> bool
+ wxQuantize_Quantize(wxImage src, wxImage dest, int desiredNoColours=236,
+ int flags=wxQUANTIZE_INCLUDE_WINDOWS_COLOURS|wxQUANTIZE_FILL_DESTINATION_IMAGE) -> bool
Reduce the colours in the source image and put the result into the
destination image, setting the palette in the destination if
needed. Both images may be the same, to overwrite the source image.
"""
- return _core_.Quantize_Quantize(*args, **kwargs)
+ return __core.wxQuantize_Quantize(*args, **kwargs)
#---------------------------------------------------------------------------
-class EvtHandler(Object):
+class wxEvtHandler(wxObject):
+ """Proxy of C++ wxEvtHandler class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxEvtHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
- """__init__(self) -> EvtHandler"""
- newobj = _core_.new_EvtHandler(*args, **kwargs)
+ """__init__(self) -> wxEvtHandler"""
+ newobj = __core.new_wxEvtHandler(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
def GetNextHandler(*args, **kwargs):
- """GetNextHandler(self) -> EvtHandler"""
- return _core_.EvtHandler_GetNextHandler(*args, **kwargs)
+ """GetNextHandler(self) -> wxEvtHandler"""
+ return __core.wxEvtHandler_GetNextHandler(*args, **kwargs)
def GetPreviousHandler(*args, **kwargs):
- """GetPreviousHandler(self) -> EvtHandler"""
- return _core_.EvtHandler_GetPreviousHandler(*args, **kwargs)
+ """GetPreviousHandler(self) -> wxEvtHandler"""
+ return __core.wxEvtHandler_GetPreviousHandler(*args, **kwargs)
def SetNextHandler(*args, **kwargs):
- """SetNextHandler(self, EvtHandler handler)"""
- return _core_.EvtHandler_SetNextHandler(*args, **kwargs)
+ """SetNextHandler(self, wxEvtHandler handler)"""
+ return __core.wxEvtHandler_SetNextHandler(*args, **kwargs)
def SetPreviousHandler(*args, **kwargs):
- """SetPreviousHandler(self, EvtHandler handler)"""
- return _core_.EvtHandler_SetPreviousHandler(*args, **kwargs)
+ """SetPreviousHandler(self, wxEvtHandler handler)"""
+ return __core.wxEvtHandler_SetPreviousHandler(*args, **kwargs)
def GetEvtHandlerEnabled(*args, **kwargs):
"""GetEvtHandlerEnabled(self) -> bool"""
- return _core_.EvtHandler_GetEvtHandlerEnabled(*args, **kwargs)
+ return __core.wxEvtHandler_GetEvtHandlerEnabled(*args, **kwargs)
def SetEvtHandlerEnabled(*args, **kwargs):
"""SetEvtHandlerEnabled(self, bool enabled)"""
- return _core_.EvtHandler_SetEvtHandlerEnabled(*args, **kwargs)
+ return __core.wxEvtHandler_SetEvtHandlerEnabled(*args, **kwargs)
def ProcessEvent(*args, **kwargs):
- """ProcessEvent(self, Event event) -> bool"""
- return _core_.EvtHandler_ProcessEvent(*args, **kwargs)
+ """ProcessEvent(self, wxEvent event) -> bool"""
+ return __core.wxEvtHandler_ProcessEvent(*args, **kwargs)
def AddPendingEvent(*args, **kwargs):
- """AddPendingEvent(self, Event event)"""
- return _core_.EvtHandler_AddPendingEvent(*args, **kwargs)
+ """AddPendingEvent(self, wxEvent event)"""
+ return __core.wxEvtHandler_AddPendingEvent(*args, **kwargs)
def ProcessPendingEvents(*args, **kwargs):
"""ProcessPendingEvents(self)"""
- return _core_.EvtHandler_ProcessPendingEvents(*args, **kwargs)
+ return __core.wxEvtHandler_ProcessPendingEvents(*args, **kwargs)
def Connect(*args, **kwargs):
"""Connect(self, int id, int lastId, int eventType, PyObject func)"""
- return _core_.EvtHandler_Connect(*args, **kwargs)
+ return __core.wxEvtHandler_Connect(*args, **kwargs)
def Disconnect(*args, **kwargs):
"""Disconnect(self, int id, int lastId=-1, wxEventType eventType=wxEVT_NULL) -> bool"""
- return _core_.EvtHandler_Disconnect(*args, **kwargs)
+ return __core.wxEvtHandler_Disconnect(*args, **kwargs)
def _setOORInfo(*args, **kwargs):
- """_setOORInfo(self, PyObject _self)"""
- return _core_.EvtHandler__setOORInfo(*args, **kwargs)
+ """_setOORInfo(self, PyObject _self, bool incref=True)"""
+ return __core.wxEvtHandler__setOORInfo(*args, **kwargs)
def Bind(self, event, handler, source=None, id=wx.ID_ANY, id2=wx.ID_ANY):
"""
return event.Unbind(self, id, id2)
-class EvtHandlerPtr(EvtHandler):
+class wxEvtHandlerPtr(wxEvtHandler):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = EvtHandler
-_core_.EvtHandler_swigregister(EvtHandlerPtr)
+ self.__class__ = wxEvtHandler
+__core.wxEvtHandler_swigregister(wxEvtHandlerPtr)
#---------------------------------------------------------------------------
#---------------------------------------------------------------------------
-EVENT_PROPAGATE_NONE = _core_.EVENT_PROPAGATE_NONE
-EVENT_PROPAGATE_MAX = _core_.EVENT_PROPAGATE_MAX
-
-def NewEventType(*args, **kwargs):
- """NewEventType() -> wxEventType"""
- return _core_.NewEventType(*args, **kwargs)
-wxEVT_NULL = _core_.wxEVT_NULL
-wxEVT_FIRST = _core_.wxEVT_FIRST
-wxEVT_USER_FIRST = _core_.wxEVT_USER_FIRST
-wxEVT_COMMAND_BUTTON_CLICKED = _core_.wxEVT_COMMAND_BUTTON_CLICKED
-wxEVT_COMMAND_CHECKBOX_CLICKED = _core_.wxEVT_COMMAND_CHECKBOX_CLICKED
-wxEVT_COMMAND_CHOICE_SELECTED = _core_.wxEVT_COMMAND_CHOICE_SELECTED
-wxEVT_COMMAND_LISTBOX_SELECTED = _core_.wxEVT_COMMAND_LISTBOX_SELECTED
-wxEVT_COMMAND_LISTBOX_DOUBLECLICKED = _core_.wxEVT_COMMAND_LISTBOX_DOUBLECLICKED
-wxEVT_COMMAND_CHECKLISTBOX_TOGGLED = _core_.wxEVT_COMMAND_CHECKLISTBOX_TOGGLED
-wxEVT_COMMAND_MENU_SELECTED = _core_.wxEVT_COMMAND_MENU_SELECTED
-wxEVT_COMMAND_TOOL_CLICKED = _core_.wxEVT_COMMAND_TOOL_CLICKED
-wxEVT_COMMAND_SLIDER_UPDATED = _core_.wxEVT_COMMAND_SLIDER_UPDATED
-wxEVT_COMMAND_RADIOBOX_SELECTED = _core_.wxEVT_COMMAND_RADIOBOX_SELECTED
-wxEVT_COMMAND_RADIOBUTTON_SELECTED = _core_.wxEVT_COMMAND_RADIOBUTTON_SELECTED
-wxEVT_COMMAND_SCROLLBAR_UPDATED = _core_.wxEVT_COMMAND_SCROLLBAR_UPDATED
-wxEVT_COMMAND_VLBOX_SELECTED = _core_.wxEVT_COMMAND_VLBOX_SELECTED
-wxEVT_COMMAND_COMBOBOX_SELECTED = _core_.wxEVT_COMMAND_COMBOBOX_SELECTED
-wxEVT_COMMAND_TOOL_RCLICKED = _core_.wxEVT_COMMAND_TOOL_RCLICKED
-wxEVT_COMMAND_TOOL_ENTER = _core_.wxEVT_COMMAND_TOOL_ENTER
-wxEVT_LEFT_DOWN = _core_.wxEVT_LEFT_DOWN
-wxEVT_LEFT_UP = _core_.wxEVT_LEFT_UP
-wxEVT_MIDDLE_DOWN = _core_.wxEVT_MIDDLE_DOWN
-wxEVT_MIDDLE_UP = _core_.wxEVT_MIDDLE_UP
-wxEVT_RIGHT_DOWN = _core_.wxEVT_RIGHT_DOWN
-wxEVT_RIGHT_UP = _core_.wxEVT_RIGHT_UP
-wxEVT_MOTION = _core_.wxEVT_MOTION
-wxEVT_ENTER_WINDOW = _core_.wxEVT_ENTER_WINDOW
-wxEVT_LEAVE_WINDOW = _core_.wxEVT_LEAVE_WINDOW
-wxEVT_LEFT_DCLICK = _core_.wxEVT_LEFT_DCLICK
-wxEVT_MIDDLE_DCLICK = _core_.wxEVT_MIDDLE_DCLICK
-wxEVT_RIGHT_DCLICK = _core_.wxEVT_RIGHT_DCLICK
-wxEVT_SET_FOCUS = _core_.wxEVT_SET_FOCUS
-wxEVT_KILL_FOCUS = _core_.wxEVT_KILL_FOCUS
-wxEVT_CHILD_FOCUS = _core_.wxEVT_CHILD_FOCUS
-wxEVT_MOUSEWHEEL = _core_.wxEVT_MOUSEWHEEL
-wxEVT_NC_LEFT_DOWN = _core_.wxEVT_NC_LEFT_DOWN
-wxEVT_NC_LEFT_UP = _core_.wxEVT_NC_LEFT_UP
-wxEVT_NC_MIDDLE_DOWN = _core_.wxEVT_NC_MIDDLE_DOWN
-wxEVT_NC_MIDDLE_UP = _core_.wxEVT_NC_MIDDLE_UP
-wxEVT_NC_RIGHT_DOWN = _core_.wxEVT_NC_RIGHT_DOWN
-wxEVT_NC_RIGHT_UP = _core_.wxEVT_NC_RIGHT_UP
-wxEVT_NC_MOTION = _core_.wxEVT_NC_MOTION
-wxEVT_NC_ENTER_WINDOW = _core_.wxEVT_NC_ENTER_WINDOW
-wxEVT_NC_LEAVE_WINDOW = _core_.wxEVT_NC_LEAVE_WINDOW
-wxEVT_NC_LEFT_DCLICK = _core_.wxEVT_NC_LEFT_DCLICK
-wxEVT_NC_MIDDLE_DCLICK = _core_.wxEVT_NC_MIDDLE_DCLICK
-wxEVT_NC_RIGHT_DCLICK = _core_.wxEVT_NC_RIGHT_DCLICK
-wxEVT_CHAR = _core_.wxEVT_CHAR
-wxEVT_CHAR_HOOK = _core_.wxEVT_CHAR_HOOK
-wxEVT_NAVIGATION_KEY = _core_.wxEVT_NAVIGATION_KEY
-wxEVT_KEY_DOWN = _core_.wxEVT_KEY_DOWN
-wxEVT_KEY_UP = _core_.wxEVT_KEY_UP
-wxEVT_HOTKEY = _core_.wxEVT_HOTKEY
-wxEVT_SET_CURSOR = _core_.wxEVT_SET_CURSOR
-wxEVT_SCROLL_TOP = _core_.wxEVT_SCROLL_TOP
-wxEVT_SCROLL_BOTTOM = _core_.wxEVT_SCROLL_BOTTOM
-wxEVT_SCROLL_LINEUP = _core_.wxEVT_SCROLL_LINEUP
-wxEVT_SCROLL_LINEDOWN = _core_.wxEVT_SCROLL_LINEDOWN
-wxEVT_SCROLL_PAGEUP = _core_.wxEVT_SCROLL_PAGEUP
-wxEVT_SCROLL_PAGEDOWN = _core_.wxEVT_SCROLL_PAGEDOWN
-wxEVT_SCROLL_THUMBTRACK = _core_.wxEVT_SCROLL_THUMBTRACK
-wxEVT_SCROLL_THUMBRELEASE = _core_.wxEVT_SCROLL_THUMBRELEASE
-wxEVT_SCROLL_ENDSCROLL = _core_.wxEVT_SCROLL_ENDSCROLL
-wxEVT_SCROLLWIN_TOP = _core_.wxEVT_SCROLLWIN_TOP
-wxEVT_SCROLLWIN_BOTTOM = _core_.wxEVT_SCROLLWIN_BOTTOM
-wxEVT_SCROLLWIN_LINEUP = _core_.wxEVT_SCROLLWIN_LINEUP
-wxEVT_SCROLLWIN_LINEDOWN = _core_.wxEVT_SCROLLWIN_LINEDOWN
-wxEVT_SCROLLWIN_PAGEUP = _core_.wxEVT_SCROLLWIN_PAGEUP
-wxEVT_SCROLLWIN_PAGEDOWN = _core_.wxEVT_SCROLLWIN_PAGEDOWN
-wxEVT_SCROLLWIN_THUMBTRACK = _core_.wxEVT_SCROLLWIN_THUMBTRACK
-wxEVT_SCROLLWIN_THUMBRELEASE = _core_.wxEVT_SCROLLWIN_THUMBRELEASE
-wxEVT_SIZE = _core_.wxEVT_SIZE
-wxEVT_MOVE = _core_.wxEVT_MOVE
-wxEVT_CLOSE_WINDOW = _core_.wxEVT_CLOSE_WINDOW
-wxEVT_END_SESSION = _core_.wxEVT_END_SESSION
-wxEVT_QUERY_END_SESSION = _core_.wxEVT_QUERY_END_SESSION
-wxEVT_ACTIVATE_APP = _core_.wxEVT_ACTIVATE_APP
-wxEVT_POWER = _core_.wxEVT_POWER
-wxEVT_ACTIVATE = _core_.wxEVT_ACTIVATE
-wxEVT_CREATE = _core_.wxEVT_CREATE
-wxEVT_DESTROY = _core_.wxEVT_DESTROY
-wxEVT_SHOW = _core_.wxEVT_SHOW
-wxEVT_ICONIZE = _core_.wxEVT_ICONIZE
-wxEVT_MAXIMIZE = _core_.wxEVT_MAXIMIZE
-wxEVT_MOUSE_CAPTURE_CHANGED = _core_.wxEVT_MOUSE_CAPTURE_CHANGED
-wxEVT_PAINT = _core_.wxEVT_PAINT
-wxEVT_ERASE_BACKGROUND = _core_.wxEVT_ERASE_BACKGROUND
-wxEVT_NC_PAINT = _core_.wxEVT_NC_PAINT
-wxEVT_PAINT_ICON = _core_.wxEVT_PAINT_ICON
-wxEVT_MENU_OPEN = _core_.wxEVT_MENU_OPEN
-wxEVT_MENU_CLOSE = _core_.wxEVT_MENU_CLOSE
-wxEVT_MENU_HIGHLIGHT = _core_.wxEVT_MENU_HIGHLIGHT
-wxEVT_CONTEXT_MENU = _core_.wxEVT_CONTEXT_MENU
-wxEVT_SYS_COLOUR_CHANGED = _core_.wxEVT_SYS_COLOUR_CHANGED
-wxEVT_DISPLAY_CHANGED = _core_.wxEVT_DISPLAY_CHANGED
-wxEVT_SETTING_CHANGED = _core_.wxEVT_SETTING_CHANGED
-wxEVT_QUERY_NEW_PALETTE = _core_.wxEVT_QUERY_NEW_PALETTE
-wxEVT_PALETTE_CHANGED = _core_.wxEVT_PALETTE_CHANGED
-wxEVT_DROP_FILES = _core_.wxEVT_DROP_FILES
-wxEVT_DRAW_ITEM = _core_.wxEVT_DRAW_ITEM
-wxEVT_MEASURE_ITEM = _core_.wxEVT_MEASURE_ITEM
-wxEVT_COMPARE_ITEM = _core_.wxEVT_COMPARE_ITEM
-wxEVT_INIT_DIALOG = _core_.wxEVT_INIT_DIALOG
-wxEVT_IDLE = _core_.wxEVT_IDLE
-wxEVT_UPDATE_UI = _core_.wxEVT_UPDATE_UI
-wxEVT_SIZING = _core_.wxEVT_SIZING
-wxEVT_MOVING = _core_.wxEVT_MOVING
-wxEVT_COMMAND_LEFT_CLICK = _core_.wxEVT_COMMAND_LEFT_CLICK
-wxEVT_COMMAND_LEFT_DCLICK = _core_.wxEVT_COMMAND_LEFT_DCLICK
-wxEVT_COMMAND_RIGHT_CLICK = _core_.wxEVT_COMMAND_RIGHT_CLICK
-wxEVT_COMMAND_RIGHT_DCLICK = _core_.wxEVT_COMMAND_RIGHT_DCLICK
-wxEVT_COMMAND_SET_FOCUS = _core_.wxEVT_COMMAND_SET_FOCUS
-wxEVT_COMMAND_KILL_FOCUS = _core_.wxEVT_COMMAND_KILL_FOCUS
-wxEVT_COMMAND_ENTER = _core_.wxEVT_COMMAND_ENTER
+wxEVENT_PROPAGATE_NONE = __core.wxEVENT_PROPAGATE_NONE
+wxEVENT_PROPAGATE_MAX = __core.wxEVENT_PROPAGATE_MAX
+
+def wxNewEventType(*args, **kwargs):
+ """wxNewEventType() -> wxEventType"""
+ return __core.wxNewEventType(*args, **kwargs)
+wxEVT_NULL = __core.wxEVT_NULL
+wxEVT_FIRST = __core.wxEVT_FIRST
+wxEVT_USER_FIRST = __core.wxEVT_USER_FIRST
+wxEVT_COMMAND_BUTTON_CLICKED = __core.wxEVT_COMMAND_BUTTON_CLICKED
+wxEVT_COMMAND_CHECKBOX_CLICKED = __core.wxEVT_COMMAND_CHECKBOX_CLICKED
+wxEVT_COMMAND_CHOICE_SELECTED = __core.wxEVT_COMMAND_CHOICE_SELECTED
+wxEVT_COMMAND_LISTBOX_SELECTED = __core.wxEVT_COMMAND_LISTBOX_SELECTED
+wxEVT_COMMAND_LISTBOX_DOUBLECLICKED = __core.wxEVT_COMMAND_LISTBOX_DOUBLECLICKED
+wxEVT_COMMAND_CHECKLISTBOX_TOGGLED = __core.wxEVT_COMMAND_CHECKLISTBOX_TOGGLED
+wxEVT_COMMAND_MENU_SELECTED = __core.wxEVT_COMMAND_MENU_SELECTED
+wxEVT_COMMAND_TOOL_CLICKED = __core.wxEVT_COMMAND_TOOL_CLICKED
+wxEVT_COMMAND_SLIDER_UPDATED = __core.wxEVT_COMMAND_SLIDER_UPDATED
+wxEVT_COMMAND_RADIOBOX_SELECTED = __core.wxEVT_COMMAND_RADIOBOX_SELECTED
+wxEVT_COMMAND_RADIOBUTTON_SELECTED = __core.wxEVT_COMMAND_RADIOBUTTON_SELECTED
+wxEVT_COMMAND_SCROLLBAR_UPDATED = __core.wxEVT_COMMAND_SCROLLBAR_UPDATED
+wxEVT_COMMAND_VLBOX_SELECTED = __core.wxEVT_COMMAND_VLBOX_SELECTED
+wxEVT_COMMAND_COMBOBOX_SELECTED = __core.wxEVT_COMMAND_COMBOBOX_SELECTED
+wxEVT_COMMAND_TOOL_RCLICKED = __core.wxEVT_COMMAND_TOOL_RCLICKED
+wxEVT_COMMAND_TOOL_ENTER = __core.wxEVT_COMMAND_TOOL_ENTER
+wxEVT_LEFT_DOWN = __core.wxEVT_LEFT_DOWN
+wxEVT_LEFT_UP = __core.wxEVT_LEFT_UP
+wxEVT_MIDDLE_DOWN = __core.wxEVT_MIDDLE_DOWN
+wxEVT_MIDDLE_UP = __core.wxEVT_MIDDLE_UP
+wxEVT_RIGHT_DOWN = __core.wxEVT_RIGHT_DOWN
+wxEVT_RIGHT_UP = __core.wxEVT_RIGHT_UP
+wxEVT_MOTION = __core.wxEVT_MOTION
+wxEVT_ENTER_WINDOW = __core.wxEVT_ENTER_WINDOW
+wxEVT_LEAVE_WINDOW = __core.wxEVT_LEAVE_WINDOW
+wxEVT_LEFT_DCLICK = __core.wxEVT_LEFT_DCLICK
+wxEVT_MIDDLE_DCLICK = __core.wxEVT_MIDDLE_DCLICK
+wxEVT_RIGHT_DCLICK = __core.wxEVT_RIGHT_DCLICK
+wxEVT_SET_FOCUS = __core.wxEVT_SET_FOCUS
+wxEVT_KILL_FOCUS = __core.wxEVT_KILL_FOCUS
+wxEVT_CHILD_FOCUS = __core.wxEVT_CHILD_FOCUS
+wxEVT_MOUSEWHEEL = __core.wxEVT_MOUSEWHEEL
+wxEVT_NC_LEFT_DOWN = __core.wxEVT_NC_LEFT_DOWN
+wxEVT_NC_LEFT_UP = __core.wxEVT_NC_LEFT_UP
+wxEVT_NC_MIDDLE_DOWN = __core.wxEVT_NC_MIDDLE_DOWN
+wxEVT_NC_MIDDLE_UP = __core.wxEVT_NC_MIDDLE_UP
+wxEVT_NC_RIGHT_DOWN = __core.wxEVT_NC_RIGHT_DOWN
+wxEVT_NC_RIGHT_UP = __core.wxEVT_NC_RIGHT_UP
+wxEVT_NC_MOTION = __core.wxEVT_NC_MOTION
+wxEVT_NC_ENTER_WINDOW = __core.wxEVT_NC_ENTER_WINDOW
+wxEVT_NC_LEAVE_WINDOW = __core.wxEVT_NC_LEAVE_WINDOW
+wxEVT_NC_LEFT_DCLICK = __core.wxEVT_NC_LEFT_DCLICK
+wxEVT_NC_MIDDLE_DCLICK = __core.wxEVT_NC_MIDDLE_DCLICK
+wxEVT_NC_RIGHT_DCLICK = __core.wxEVT_NC_RIGHT_DCLICK
+wxEVT_CHAR = __core.wxEVT_CHAR
+wxEVT_CHAR_HOOK = __core.wxEVT_CHAR_HOOK
+wxEVT_NAVIGATION_KEY = __core.wxEVT_NAVIGATION_KEY
+wxEVT_KEY_DOWN = __core.wxEVT_KEY_DOWN
+wxEVT_KEY_UP = __core.wxEVT_KEY_UP
+wxEVT_HOTKEY = __core.wxEVT_HOTKEY
+wxEVT_SET_CURSOR = __core.wxEVT_SET_CURSOR
+wxEVT_SCROLL_TOP = __core.wxEVT_SCROLL_TOP
+wxEVT_SCROLL_BOTTOM = __core.wxEVT_SCROLL_BOTTOM
+wxEVT_SCROLL_LINEUP = __core.wxEVT_SCROLL_LINEUP
+wxEVT_SCROLL_LINEDOWN = __core.wxEVT_SCROLL_LINEDOWN
+wxEVT_SCROLL_PAGEUP = __core.wxEVT_SCROLL_PAGEUP
+wxEVT_SCROLL_PAGEDOWN = __core.wxEVT_SCROLL_PAGEDOWN
+wxEVT_SCROLL_THUMBTRACK = __core.wxEVT_SCROLL_THUMBTRACK
+wxEVT_SCROLL_THUMBRELEASE = __core.wxEVT_SCROLL_THUMBRELEASE
+wxEVT_SCROLL_ENDSCROLL = __core.wxEVT_SCROLL_ENDSCROLL
+wxEVT_SCROLLWIN_TOP = __core.wxEVT_SCROLLWIN_TOP
+wxEVT_SCROLLWIN_BOTTOM = __core.wxEVT_SCROLLWIN_BOTTOM
+wxEVT_SCROLLWIN_LINEUP = __core.wxEVT_SCROLLWIN_LINEUP
+wxEVT_SCROLLWIN_LINEDOWN = __core.wxEVT_SCROLLWIN_LINEDOWN
+wxEVT_SCROLLWIN_PAGEUP = __core.wxEVT_SCROLLWIN_PAGEUP
+wxEVT_SCROLLWIN_PAGEDOWN = __core.wxEVT_SCROLLWIN_PAGEDOWN
+wxEVT_SCROLLWIN_THUMBTRACK = __core.wxEVT_SCROLLWIN_THUMBTRACK
+wxEVT_SCROLLWIN_THUMBRELEASE = __core.wxEVT_SCROLLWIN_THUMBRELEASE
+wxEVT_SIZE = __core.wxEVT_SIZE
+wxEVT_MOVE = __core.wxEVT_MOVE
+wxEVT_CLOSE_WINDOW = __core.wxEVT_CLOSE_WINDOW
+wxEVT_END_SESSION = __core.wxEVT_END_SESSION
+wxEVT_QUERY_END_SESSION = __core.wxEVT_QUERY_END_SESSION
+wxEVT_ACTIVATE_APP = __core.wxEVT_ACTIVATE_APP
+wxEVT_POWER = __core.wxEVT_POWER
+wxEVT_ACTIVATE = __core.wxEVT_ACTIVATE
+wxEVT_CREATE = __core.wxEVT_CREATE
+wxEVT_DESTROY = __core.wxEVT_DESTROY
+wxEVT_SHOW = __core.wxEVT_SHOW
+wxEVT_ICONIZE = __core.wxEVT_ICONIZE
+wxEVT_MAXIMIZE = __core.wxEVT_MAXIMIZE
+wxEVT_MOUSE_CAPTURE_CHANGED = __core.wxEVT_MOUSE_CAPTURE_CHANGED
+wxEVT_PAINT = __core.wxEVT_PAINT
+wxEVT_ERASE_BACKGROUND = __core.wxEVT_ERASE_BACKGROUND
+wxEVT_NC_PAINT = __core.wxEVT_NC_PAINT
+wxEVT_PAINT_ICON = __core.wxEVT_PAINT_ICON
+wxEVT_MENU_OPEN = __core.wxEVT_MENU_OPEN
+wxEVT_MENU_CLOSE = __core.wxEVT_MENU_CLOSE
+wxEVT_MENU_HIGHLIGHT = __core.wxEVT_MENU_HIGHLIGHT
+wxEVT_CONTEXT_MENU = __core.wxEVT_CONTEXT_MENU
+wxEVT_SYS_COLOUR_CHANGED = __core.wxEVT_SYS_COLOUR_CHANGED
+wxEVT_DISPLAY_CHANGED = __core.wxEVT_DISPLAY_CHANGED
+wxEVT_SETTING_CHANGED = __core.wxEVT_SETTING_CHANGED
+wxEVT_QUERY_NEW_PALETTE = __core.wxEVT_QUERY_NEW_PALETTE
+wxEVT_PALETTE_CHANGED = __core.wxEVT_PALETTE_CHANGED
+wxEVT_DROP_FILES = __core.wxEVT_DROP_FILES
+wxEVT_DRAW_ITEM = __core.wxEVT_DRAW_ITEM
+wxEVT_MEASURE_ITEM = __core.wxEVT_MEASURE_ITEM
+wxEVT_COMPARE_ITEM = __core.wxEVT_COMPARE_ITEM
+wxEVT_INIT_DIALOG = __core.wxEVT_INIT_DIALOG
+wxEVT_IDLE = __core.wxEVT_IDLE
+wxEVT_UPDATE_UI = __core.wxEVT_UPDATE_UI
+wxEVT_SIZING = __core.wxEVT_SIZING
+wxEVT_MOVING = __core.wxEVT_MOVING
+wxEVT_HIBERNATE = __core.wxEVT_HIBERNATE
+wxEVT_COMMAND_LEFT_CLICK = __core.wxEVT_COMMAND_LEFT_CLICK
+wxEVT_COMMAND_LEFT_DCLICK = __core.wxEVT_COMMAND_LEFT_DCLICK
+wxEVT_COMMAND_RIGHT_CLICK = __core.wxEVT_COMMAND_RIGHT_CLICK
+wxEVT_COMMAND_RIGHT_DCLICK = __core.wxEVT_COMMAND_RIGHT_DCLICK
+wxEVT_COMMAND_SET_FOCUS = __core.wxEVT_COMMAND_SET_FOCUS
+wxEVT_COMMAND_KILL_FOCUS = __core.wxEVT_COMMAND_KILL_FOCUS
+wxEVT_COMMAND_ENTER = __core.wxEVT_COMMAND_ENTER
#
# Create some event binders
EVT_SIZE = wx.PyEventBinder( wxEVT_SIZE )
EVT_CHILD_FOCUS = wx.PyEventBinder( wxEVT_CHILD_FOCUS )
EVT_ACTIVATE = wx.PyEventBinder( wxEVT_ACTIVATE )
EVT_ACTIVATE_APP = wx.PyEventBinder( wxEVT_ACTIVATE_APP )
+EVT_HIBERNATE = wx.PyEventBinder( wxEVT_HIBERNATE )
EVT_END_SESSION = wx.PyEventBinder( wxEVT_END_SESSION )
EVT_QUERY_END_SESSION = wx.PyEventBinder( wxEVT_QUERY_END_SESSION )
EVT_DROP_FILES = wx.PyEventBinder( wxEVT_DROP_FILES )
#---------------------------------------------------------------------------
-class Event(Object):
+class wxEvent(wxObject):
+ """Proxy of C++ wxEvent class"""
def __init__(self): raise RuntimeError, "No constructor defined"
def __repr__(self):
return "<%s.%s; proxy of C++ wxEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
- def __del__(self, destroy=_core_.delete_Event):
+ def __del__(self, destroy=__core.delete_wxEvent):
"""__del__(self)"""
try:
if self.thisown: destroy(self)
def SetEventType(*args, **kwargs):
"""SetEventType(self, wxEventType typ)"""
- return _core_.Event_SetEventType(*args, **kwargs)
+ return __core.wxEvent_SetEventType(*args, **kwargs)
def GetEventType(*args, **kwargs):
"""GetEventType(self) -> wxEventType"""
- return _core_.Event_GetEventType(*args, **kwargs)
+ return __core.wxEvent_GetEventType(*args, **kwargs)
def GetEventObject(*args, **kwargs):
- """GetEventObject(self) -> Object"""
- return _core_.Event_GetEventObject(*args, **kwargs)
+ """GetEventObject(self) -> wxObject"""
+ return __core.wxEvent_GetEventObject(*args, **kwargs)
def SetEventObject(*args, **kwargs):
- """SetEventObject(self, Object obj)"""
- return _core_.Event_SetEventObject(*args, **kwargs)
+ """SetEventObject(self, wxObject obj)"""
+ return __core.wxEvent_SetEventObject(*args, **kwargs)
def GetTimestamp(*args, **kwargs):
"""GetTimestamp(self) -> long"""
- return _core_.Event_GetTimestamp(*args, **kwargs)
+ return __core.wxEvent_GetTimestamp(*args, **kwargs)
def SetTimestamp(*args, **kwargs):
"""SetTimestamp(self, long ts=0)"""
- return _core_.Event_SetTimestamp(*args, **kwargs)
+ return __core.wxEvent_SetTimestamp(*args, **kwargs)
def GetId(*args, **kwargs):
"""GetId(self) -> int"""
- return _core_.Event_GetId(*args, **kwargs)
+ return __core.wxEvent_GetId(*args, **kwargs)
def SetId(*args, **kwargs):
"""SetId(self, int Id)"""
- return _core_.Event_SetId(*args, **kwargs)
+ return __core.wxEvent_SetId(*args, **kwargs)
def IsCommandEvent(*args, **kwargs):
"""IsCommandEvent(self) -> bool"""
- return _core_.Event_IsCommandEvent(*args, **kwargs)
+ return __core.wxEvent_IsCommandEvent(*args, **kwargs)
def Skip(*args, **kwargs):
- """Skip(self, bool skip=True)"""
- return _core_.Event_Skip(*args, **kwargs)
+ """
+ Skip(self, bool skip=True)
+
+ Called by an event handler, it controls whether additional event
+ handlers bound to this event will be called after the current event
+ handler returns. Skip(false) (the default setting) will prevent
+ additional event handlers from being called and control will be
+ returned to the sender of the event immediately after the current
+ handler has finished. Skip(True) will cause the event processing
+ system to continue searching for a handler function for this event.
+
+ """
+ return __core.wxEvent_Skip(*args, **kwargs)
def GetSkipped(*args, **kwargs):
"""GetSkipped(self) -> bool"""
- return _core_.Event_GetSkipped(*args, **kwargs)
+ return __core.wxEvent_GetSkipped(*args, **kwargs)
def ShouldPropagate(*args, **kwargs):
"""ShouldPropagate(self) -> bool"""
- return _core_.Event_ShouldPropagate(*args, **kwargs)
+ return __core.wxEvent_ShouldPropagate(*args, **kwargs)
def StopPropagation(*args, **kwargs):
"""StopPropagation(self) -> int"""
- return _core_.Event_StopPropagation(*args, **kwargs)
+ return __core.wxEvent_StopPropagation(*args, **kwargs)
def ResumePropagation(*args, **kwargs):
"""ResumePropagation(self, int propagationLevel)"""
- return _core_.Event_ResumePropagation(*args, **kwargs)
+ return __core.wxEvent_ResumePropagation(*args, **kwargs)
def Clone(*args, **kwargs):
- """Clone(self) -> Event"""
- return _core_.Event_Clone(*args, **kwargs)
+ """Clone(self) -> wxEvent"""
+ return __core.wxEvent_Clone(*args, **kwargs)
-class EventPtr(Event):
+class wxEventPtr(wxEvent):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = Event
-_core_.Event_swigregister(EventPtr)
+ self.__class__ = wxEvent
+__core.wxEvent_swigregister(wxEventPtr)
#---------------------------------------------------------------------------
-class PropagationDisabler(object):
+class wxPropagationDisabler(object):
+ """Proxy of C++ wxPropagationDisabler class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxPropagationDisabler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
- """__init__(self, Event event) -> PropagationDisabler"""
- newobj = _core_.new_PropagationDisabler(*args, **kwargs)
+ """__init__(self, wxEvent event) -> wxPropagationDisabler"""
+ newobj = __core.new_wxPropagationDisabler(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
- def __del__(self, destroy=_core_.delete_PropagationDisabler):
+ def __del__(self, destroy=__core.delete_wxPropagationDisabler):
"""__del__(self)"""
try:
if self.thisown: destroy(self)
except: pass
-class PropagationDisablerPtr(PropagationDisabler):
+class wxPropagationDisablerPtr(wxPropagationDisabler):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = PropagationDisabler
-_core_.PropagationDisabler_swigregister(PropagationDisablerPtr)
+ self.__class__ = wxPropagationDisabler
+__core.wxPropagationDisabler_swigregister(wxPropagationDisablerPtr)
-class PropagateOnce(object):
+class wxPropagateOnce(object):
+ """Proxy of C++ wxPropagateOnce class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxPropagateOnce instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
- """__init__(self, Event event) -> PropagateOnce"""
- newobj = _core_.new_PropagateOnce(*args, **kwargs)
+ """__init__(self, wxEvent event) -> wxPropagateOnce"""
+ newobj = __core.new_wxPropagateOnce(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
- def __del__(self, destroy=_core_.delete_PropagateOnce):
+ def __del__(self, destroy=__core.delete_wxPropagateOnce):
"""__del__(self)"""
try:
if self.thisown: destroy(self)
except: pass
-class PropagateOncePtr(PropagateOnce):
+class wxPropagateOncePtr(wxPropagateOnce):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = PropagateOnce
-_core_.PropagateOnce_swigregister(PropagateOncePtr)
+ self.__class__ = wxPropagateOnce
+__core.wxPropagateOnce_swigregister(wxPropagateOncePtr)
#---------------------------------------------------------------------------
-class CommandEvent(Event):
+class wxCommandEvent(wxEvent):
+ """Proxy of C++ wxCommandEvent class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxCommandEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
- """__init__(self, wxEventType commandType=wxEVT_NULL, int winid=0) -> CommandEvent"""
- newobj = _core_.new_CommandEvent(*args, **kwargs)
+ """__init__(self, wxEventType commandType=wxEVT_NULL, int winid=0) -> wxCommandEvent"""
+ newobj = __core.new_wxCommandEvent(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
def GetSelection(*args, **kwargs):
"""GetSelection(self) -> int"""
- return _core_.CommandEvent_GetSelection(*args, **kwargs)
+ return __core.wxCommandEvent_GetSelection(*args, **kwargs)
def SetString(*args, **kwargs):
- """SetString(self, String s)"""
- return _core_.CommandEvent_SetString(*args, **kwargs)
+ """SetString(self, wxString s)"""
+ return __core.wxCommandEvent_SetString(*args, **kwargs)
def GetString(*args, **kwargs):
- """GetString(self) -> String"""
- return _core_.CommandEvent_GetString(*args, **kwargs)
+ """GetString(self) -> wxString"""
+ return __core.wxCommandEvent_GetString(*args, **kwargs)
def IsChecked(*args, **kwargs):
"""IsChecked(self) -> bool"""
- return _core_.CommandEvent_IsChecked(*args, **kwargs)
+ return __core.wxCommandEvent_IsChecked(*args, **kwargs)
Checked = IsChecked
def IsSelection(*args, **kwargs):
"""IsSelection(self) -> bool"""
- return _core_.CommandEvent_IsSelection(*args, **kwargs)
+ return __core.wxCommandEvent_IsSelection(*args, **kwargs)
def SetExtraLong(*args, **kwargs):
"""SetExtraLong(self, long extraLong)"""
- return _core_.CommandEvent_SetExtraLong(*args, **kwargs)
+ return __core.wxCommandEvent_SetExtraLong(*args, **kwargs)
def GetExtraLong(*args, **kwargs):
"""GetExtraLong(self) -> long"""
- return _core_.CommandEvent_GetExtraLong(*args, **kwargs)
+ return __core.wxCommandEvent_GetExtraLong(*args, **kwargs)
def SetInt(*args, **kwargs):
"""SetInt(self, int i)"""
- return _core_.CommandEvent_SetInt(*args, **kwargs)
+ return __core.wxCommandEvent_SetInt(*args, **kwargs)
def GetInt(*args, **kwargs):
"""GetInt(self) -> long"""
- return _core_.CommandEvent_GetInt(*args, **kwargs)
+ return __core.wxCommandEvent_GetInt(*args, **kwargs)
def Clone(*args, **kwargs):
- """Clone(self) -> Event"""
- return _core_.CommandEvent_Clone(*args, **kwargs)
+ """Clone(self) -> wxEvent"""
+ return __core.wxCommandEvent_Clone(*args, **kwargs)
-class CommandEventPtr(CommandEvent):
+class wxCommandEventPtr(wxCommandEvent):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = CommandEvent
-_core_.CommandEvent_swigregister(CommandEventPtr)
+ self.__class__ = wxCommandEvent
+__core.wxCommandEvent_swigregister(wxCommandEventPtr)
#---------------------------------------------------------------------------
-class NotifyEvent(CommandEvent):
+class wxNotifyEvent(wxCommandEvent):
+ """Proxy of C++ wxNotifyEvent class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxNotifyEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
- """__init__(self, wxEventType commandType=wxEVT_NULL, int winid=0) -> NotifyEvent"""
- newobj = _core_.new_NotifyEvent(*args, **kwargs)
+ """__init__(self, wxEventType commandType=wxEVT_NULL, int winid=0) -> wxNotifyEvent"""
+ newobj = __core.new_wxNotifyEvent(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
def Veto(*args, **kwargs):
"""Veto(self)"""
- return _core_.NotifyEvent_Veto(*args, **kwargs)
+ return __core.wxNotifyEvent_Veto(*args, **kwargs)
def Allow(*args, **kwargs):
"""Allow(self)"""
- return _core_.NotifyEvent_Allow(*args, **kwargs)
+ return __core.wxNotifyEvent_Allow(*args, **kwargs)
def IsAllowed(*args, **kwargs):
"""IsAllowed(self) -> bool"""
- return _core_.NotifyEvent_IsAllowed(*args, **kwargs)
+ return __core.wxNotifyEvent_IsAllowed(*args, **kwargs)
-class NotifyEventPtr(NotifyEvent):
+class wxNotifyEventPtr(wxNotifyEvent):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = NotifyEvent
-_core_.NotifyEvent_swigregister(NotifyEventPtr)
+ self.__class__ = wxNotifyEvent
+__core.wxNotifyEvent_swigregister(wxNotifyEventPtr)
#---------------------------------------------------------------------------
-class ScrollEvent(CommandEvent):
+class wxScrollEvent(wxCommandEvent):
+ """Proxy of C++ wxScrollEvent class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxScrollEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
"""
__init__(self, wxEventType commandType=wxEVT_NULL, int winid=0, int pos=0,
- int orient=0) -> ScrollEvent
+ int orient=0) -> wxScrollEvent
"""
- newobj = _core_.new_ScrollEvent(*args, **kwargs)
+ newobj = __core.new_wxScrollEvent(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
def GetOrientation(*args, **kwargs):
"""GetOrientation(self) -> int"""
- return _core_.ScrollEvent_GetOrientation(*args, **kwargs)
+ return __core.wxScrollEvent_GetOrientation(*args, **kwargs)
def GetPosition(*args, **kwargs):
"""GetPosition(self) -> int"""
- return _core_.ScrollEvent_GetPosition(*args, **kwargs)
+ return __core.wxScrollEvent_GetPosition(*args, **kwargs)
def SetOrientation(*args, **kwargs):
"""SetOrientation(self, int orient)"""
- return _core_.ScrollEvent_SetOrientation(*args, **kwargs)
+ return __core.wxScrollEvent_SetOrientation(*args, **kwargs)
def SetPosition(*args, **kwargs):
"""SetPosition(self, int pos)"""
- return _core_.ScrollEvent_SetPosition(*args, **kwargs)
+ return __core.wxScrollEvent_SetPosition(*args, **kwargs)
-class ScrollEventPtr(ScrollEvent):
+class wxScrollEventPtr(wxScrollEvent):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = ScrollEvent
-_core_.ScrollEvent_swigregister(ScrollEventPtr)
+ self.__class__ = wxScrollEvent
+__core.wxScrollEvent_swigregister(wxScrollEventPtr)
#---------------------------------------------------------------------------
-class ScrollWinEvent(Event):
+class wxScrollWinEvent(wxEvent):
+ """Proxy of C++ wxScrollWinEvent class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxScrollWinEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
- """__init__(self, wxEventType commandType=wxEVT_NULL, int pos=0, int orient=0) -> ScrollWinEvent"""
- newobj = _core_.new_ScrollWinEvent(*args, **kwargs)
+ """__init__(self, wxEventType commandType=wxEVT_NULL, int pos=0, int orient=0) -> wxScrollWinEvent"""
+ newobj = __core.new_wxScrollWinEvent(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
def GetOrientation(*args, **kwargs):
"""GetOrientation(self) -> int"""
- return _core_.ScrollWinEvent_GetOrientation(*args, **kwargs)
+ return __core.wxScrollWinEvent_GetOrientation(*args, **kwargs)
def GetPosition(*args, **kwargs):
"""GetPosition(self) -> int"""
- return _core_.ScrollWinEvent_GetPosition(*args, **kwargs)
+ return __core.wxScrollWinEvent_GetPosition(*args, **kwargs)
def SetOrientation(*args, **kwargs):
"""SetOrientation(self, int orient)"""
- return _core_.ScrollWinEvent_SetOrientation(*args, **kwargs)
+ return __core.wxScrollWinEvent_SetOrientation(*args, **kwargs)
def SetPosition(*args, **kwargs):
"""SetPosition(self, int pos)"""
- return _core_.ScrollWinEvent_SetPosition(*args, **kwargs)
+ return __core.wxScrollWinEvent_SetPosition(*args, **kwargs)
-class ScrollWinEventPtr(ScrollWinEvent):
+class wxScrollWinEventPtr(wxScrollWinEvent):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = ScrollWinEvent
-_core_.ScrollWinEvent_swigregister(ScrollWinEventPtr)
+ self.__class__ = wxScrollWinEvent
+__core.wxScrollWinEvent_swigregister(wxScrollWinEventPtr)
#---------------------------------------------------------------------------
-MOUSE_BTN_ANY = _core_.MOUSE_BTN_ANY
-MOUSE_BTN_NONE = _core_.MOUSE_BTN_NONE
-MOUSE_BTN_LEFT = _core_.MOUSE_BTN_LEFT
-MOUSE_BTN_MIDDLE = _core_.MOUSE_BTN_MIDDLE
-MOUSE_BTN_RIGHT = _core_.MOUSE_BTN_RIGHT
-class MouseEvent(Event):
+wxMOUSE_BTN_ANY = __core.wxMOUSE_BTN_ANY
+wxMOUSE_BTN_NONE = __core.wxMOUSE_BTN_NONE
+wxMOUSE_BTN_LEFT = __core.wxMOUSE_BTN_LEFT
+wxMOUSE_BTN_MIDDLE = __core.wxMOUSE_BTN_MIDDLE
+wxMOUSE_BTN_RIGHT = __core.wxMOUSE_BTN_RIGHT
+class wxMouseEvent(wxEvent):
+ """Proxy of C++ wxMouseEvent class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxMouseEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
- """__init__(self, wxEventType mouseType=wxEVT_NULL) -> MouseEvent"""
- newobj = _core_.new_MouseEvent(*args, **kwargs)
+ """__init__(self, wxEventType mouseType=wxEVT_NULL) -> wxMouseEvent"""
+ newobj = __core.new_wxMouseEvent(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
def IsButton(*args, **kwargs):
"""IsButton(self) -> bool"""
- return _core_.MouseEvent_IsButton(*args, **kwargs)
+ return __core.wxMouseEvent_IsButton(*args, **kwargs)
def ButtonDown(*args, **kwargs):
- """ButtonDown(self, int but=MOUSE_BTN_ANY) -> bool"""
- return _core_.MouseEvent_ButtonDown(*args, **kwargs)
+ """ButtonDown(self, int but=wxMOUSE_BTN_ANY) -> bool"""
+ return __core.wxMouseEvent_ButtonDown(*args, **kwargs)
def ButtonDClick(*args, **kwargs):
- """ButtonDClick(self, int but=MOUSE_BTN_ANY) -> bool"""
- return _core_.MouseEvent_ButtonDClick(*args, **kwargs)
+ """ButtonDClick(self, int but=wxMOUSE_BTN_ANY) -> bool"""
+ return __core.wxMouseEvent_ButtonDClick(*args, **kwargs)
def ButtonUp(*args, **kwargs):
- """ButtonUp(self, int but=MOUSE_BTN_ANY) -> bool"""
- return _core_.MouseEvent_ButtonUp(*args, **kwargs)
+ """ButtonUp(self, int but=wxMOUSE_BTN_ANY) -> bool"""
+ return __core.wxMouseEvent_ButtonUp(*args, **kwargs)
def Button(*args, **kwargs):
"""Button(self, int but) -> bool"""
- return _core_.MouseEvent_Button(*args, **kwargs)
+ return __core.wxMouseEvent_Button(*args, **kwargs)
def ButtonIsDown(*args, **kwargs):
"""ButtonIsDown(self, int but) -> bool"""
- return _core_.MouseEvent_ButtonIsDown(*args, **kwargs)
+ return __core.wxMouseEvent_ButtonIsDown(*args, **kwargs)
def GetButton(*args, **kwargs):
"""GetButton(self) -> int"""
- return _core_.MouseEvent_GetButton(*args, **kwargs)
+ return __core.wxMouseEvent_GetButton(*args, **kwargs)
def ControlDown(*args, **kwargs):
"""ControlDown(self) -> bool"""
- return _core_.MouseEvent_ControlDown(*args, **kwargs)
+ return __core.wxMouseEvent_ControlDown(*args, **kwargs)
def MetaDown(*args, **kwargs):
"""MetaDown(self) -> bool"""
- return _core_.MouseEvent_MetaDown(*args, **kwargs)
+ return __core.wxMouseEvent_MetaDown(*args, **kwargs)
def AltDown(*args, **kwargs):
"""AltDown(self) -> bool"""
- return _core_.MouseEvent_AltDown(*args, **kwargs)
+ return __core.wxMouseEvent_AltDown(*args, **kwargs)
def ShiftDown(*args, **kwargs):
"""ShiftDown(self) -> bool"""
- return _core_.MouseEvent_ShiftDown(*args, **kwargs)
+ return __core.wxMouseEvent_ShiftDown(*args, **kwargs)
def CmdDown(*args, **kwargs):
"""
purpose. So for non-Mac platforms this is the same as `ControlDown`
and Macs this is the same as `MetaDown`.
"""
- return _core_.MouseEvent_CmdDown(*args, **kwargs)
+ return __core.wxMouseEvent_CmdDown(*args, **kwargs)
def LeftDown(*args, **kwargs):
"""LeftDown(self) -> bool"""
- return _core_.MouseEvent_LeftDown(*args, **kwargs)
+ return __core.wxMouseEvent_LeftDown(*args, **kwargs)
def MiddleDown(*args, **kwargs):
"""MiddleDown(self) -> bool"""
- return _core_.MouseEvent_MiddleDown(*args, **kwargs)
+ return __core.wxMouseEvent_MiddleDown(*args, **kwargs)
def RightDown(*args, **kwargs):
"""RightDown(self) -> bool"""
- return _core_.MouseEvent_RightDown(*args, **kwargs)
+ return __core.wxMouseEvent_RightDown(*args, **kwargs)
def LeftUp(*args, **kwargs):
"""LeftUp(self) -> bool"""
- return _core_.MouseEvent_LeftUp(*args, **kwargs)
+ return __core.wxMouseEvent_LeftUp(*args, **kwargs)
def MiddleUp(*args, **kwargs):
"""MiddleUp(self) -> bool"""
- return _core_.MouseEvent_MiddleUp(*args, **kwargs)
+ return __core.wxMouseEvent_MiddleUp(*args, **kwargs)
def RightUp(*args, **kwargs):
"""RightUp(self) -> bool"""
- return _core_.MouseEvent_RightUp(*args, **kwargs)
+ return __core.wxMouseEvent_RightUp(*args, **kwargs)
def LeftDClick(*args, **kwargs):
"""LeftDClick(self) -> bool"""
- return _core_.MouseEvent_LeftDClick(*args, **kwargs)
+ return __core.wxMouseEvent_LeftDClick(*args, **kwargs)
def MiddleDClick(*args, **kwargs):
"""MiddleDClick(self) -> bool"""
- return _core_.MouseEvent_MiddleDClick(*args, **kwargs)
+ return __core.wxMouseEvent_MiddleDClick(*args, **kwargs)
def RightDClick(*args, **kwargs):
"""RightDClick(self) -> bool"""
- return _core_.MouseEvent_RightDClick(*args, **kwargs)
+ return __core.wxMouseEvent_RightDClick(*args, **kwargs)
def LeftIsDown(*args, **kwargs):
"""LeftIsDown(self) -> bool"""
- return _core_.MouseEvent_LeftIsDown(*args, **kwargs)
+ return __core.wxMouseEvent_LeftIsDown(*args, **kwargs)
def MiddleIsDown(*args, **kwargs):
"""MiddleIsDown(self) -> bool"""
- return _core_.MouseEvent_MiddleIsDown(*args, **kwargs)
+ return __core.wxMouseEvent_MiddleIsDown(*args, **kwargs)
def RightIsDown(*args, **kwargs):
"""RightIsDown(self) -> bool"""
- return _core_.MouseEvent_RightIsDown(*args, **kwargs)
+ return __core.wxMouseEvent_RightIsDown(*args, **kwargs)
def Dragging(*args, **kwargs):
"""Dragging(self) -> bool"""
- return _core_.MouseEvent_Dragging(*args, **kwargs)
+ return __core.wxMouseEvent_Dragging(*args, **kwargs)
def Moving(*args, **kwargs):
"""Moving(self) -> bool"""
- return _core_.MouseEvent_Moving(*args, **kwargs)
+ return __core.wxMouseEvent_Moving(*args, **kwargs)
def Entering(*args, **kwargs):
"""Entering(self) -> bool"""
- return _core_.MouseEvent_Entering(*args, **kwargs)
+ return __core.wxMouseEvent_Entering(*args, **kwargs)
def Leaving(*args, **kwargs):
"""Leaving(self) -> bool"""
- return _core_.MouseEvent_Leaving(*args, **kwargs)
+ return __core.wxMouseEvent_Leaving(*args, **kwargs)
def GetPosition(*args, **kwargs):
"""
- GetPosition(self) -> Point
+ GetPosition(self) -> wxPoint
Returns the position of the mouse in window coordinates when the event
happened.
"""
- return _core_.MouseEvent_GetPosition(*args, **kwargs)
+ return __core.wxMouseEvent_GetPosition(*args, **kwargs)
def GetPositionTuple(*args, **kwargs):
"""
Returns the position of the mouse in window coordinates when the event
happened.
"""
- return _core_.MouseEvent_GetPositionTuple(*args, **kwargs)
+ return __core.wxMouseEvent_GetPositionTuple(*args, **kwargs)
def GetLogicalPosition(*args, **kwargs):
- """GetLogicalPosition(self, DC dc) -> Point"""
- return _core_.MouseEvent_GetLogicalPosition(*args, **kwargs)
+ """GetLogicalPosition(self, wxDC dc) -> wxPoint"""
+ return __core.wxMouseEvent_GetLogicalPosition(*args, **kwargs)
def GetX(*args, **kwargs):
"""GetX(self) -> int"""
- return _core_.MouseEvent_GetX(*args, **kwargs)
+ return __core.wxMouseEvent_GetX(*args, **kwargs)
def GetY(*args, **kwargs):
"""GetY(self) -> int"""
- return _core_.MouseEvent_GetY(*args, **kwargs)
+ return __core.wxMouseEvent_GetY(*args, **kwargs)
def GetWheelRotation(*args, **kwargs):
"""GetWheelRotation(self) -> int"""
- return _core_.MouseEvent_GetWheelRotation(*args, **kwargs)
+ return __core.wxMouseEvent_GetWheelRotation(*args, **kwargs)
def GetWheelDelta(*args, **kwargs):
"""GetWheelDelta(self) -> int"""
- return _core_.MouseEvent_GetWheelDelta(*args, **kwargs)
+ return __core.wxMouseEvent_GetWheelDelta(*args, **kwargs)
def GetLinesPerAction(*args, **kwargs):
"""GetLinesPerAction(self) -> int"""
- return _core_.MouseEvent_GetLinesPerAction(*args, **kwargs)
+ return __core.wxMouseEvent_GetLinesPerAction(*args, **kwargs)
def IsPageScroll(*args, **kwargs):
"""IsPageScroll(self) -> bool"""
- return _core_.MouseEvent_IsPageScroll(*args, **kwargs)
-
- m_x = property(_core_.MouseEvent_m_x_get, _core_.MouseEvent_m_x_set)
- m_y = property(_core_.MouseEvent_m_y_get, _core_.MouseEvent_m_y_set)
- m_leftDown = property(_core_.MouseEvent_m_leftDown_get, _core_.MouseEvent_m_leftDown_set)
- m_middleDown = property(_core_.MouseEvent_m_middleDown_get, _core_.MouseEvent_m_middleDown_set)
- m_rightDown = property(_core_.MouseEvent_m_rightDown_get, _core_.MouseEvent_m_rightDown_set)
- m_controlDown = property(_core_.MouseEvent_m_controlDown_get, _core_.MouseEvent_m_controlDown_set)
- m_shiftDown = property(_core_.MouseEvent_m_shiftDown_get, _core_.MouseEvent_m_shiftDown_set)
- m_altDown = property(_core_.MouseEvent_m_altDown_get, _core_.MouseEvent_m_altDown_set)
- m_metaDown = property(_core_.MouseEvent_m_metaDown_get, _core_.MouseEvent_m_metaDown_set)
- m_wheelRotation = property(_core_.MouseEvent_m_wheelRotation_get, _core_.MouseEvent_m_wheelRotation_set)
- m_wheelDelta = property(_core_.MouseEvent_m_wheelDelta_get, _core_.MouseEvent_m_wheelDelta_set)
- m_linesPerAction = property(_core_.MouseEvent_m_linesPerAction_get, _core_.MouseEvent_m_linesPerAction_set)
-
-class MouseEventPtr(MouseEvent):
+ return __core.wxMouseEvent_IsPageScroll(*args, **kwargs)
+
+ m_x = property(__core.wxMouseEvent_m_x_get, __core.wxMouseEvent_m_x_set)
+ m_y = property(__core.wxMouseEvent_m_y_get, __core.wxMouseEvent_m_y_set)
+ m_leftDown = property(__core.wxMouseEvent_m_leftDown_get, __core.wxMouseEvent_m_leftDown_set)
+ m_middleDown = property(__core.wxMouseEvent_m_middleDown_get, __core.wxMouseEvent_m_middleDown_set)
+ m_rightDown = property(__core.wxMouseEvent_m_rightDown_get, __core.wxMouseEvent_m_rightDown_set)
+ m_controlDown = property(__core.wxMouseEvent_m_controlDown_get, __core.wxMouseEvent_m_controlDown_set)
+ m_shiftDown = property(__core.wxMouseEvent_m_shiftDown_get, __core.wxMouseEvent_m_shiftDown_set)
+ m_altDown = property(__core.wxMouseEvent_m_altDown_get, __core.wxMouseEvent_m_altDown_set)
+ m_metaDown = property(__core.wxMouseEvent_m_metaDown_get, __core.wxMouseEvent_m_metaDown_set)
+ m_wheelRotation = property(__core.wxMouseEvent_m_wheelRotation_get, __core.wxMouseEvent_m_wheelRotation_set)
+ m_wheelDelta = property(__core.wxMouseEvent_m_wheelDelta_get, __core.wxMouseEvent_m_wheelDelta_set)
+ m_linesPerAction = property(__core.wxMouseEvent_m_linesPerAction_get, __core.wxMouseEvent_m_linesPerAction_set)
+
+class wxMouseEventPtr(wxMouseEvent):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = MouseEvent
-_core_.MouseEvent_swigregister(MouseEventPtr)
+ self.__class__ = wxMouseEvent
+__core.wxMouseEvent_swigregister(wxMouseEventPtr)
#---------------------------------------------------------------------------
-class SetCursorEvent(Event):
+class wxSetCursorEvent(wxEvent):
+ """Proxy of C++ wxSetCursorEvent class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxSetCursorEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
- """__init__(self, int x=0, int y=0) -> SetCursorEvent"""
- newobj = _core_.new_SetCursorEvent(*args, **kwargs)
+ """__init__(self, int x=0, int y=0) -> wxSetCursorEvent"""
+ newobj = __core.new_wxSetCursorEvent(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
def GetX(*args, **kwargs):
"""GetX(self) -> int"""
- return _core_.SetCursorEvent_GetX(*args, **kwargs)
+ return __core.wxSetCursorEvent_GetX(*args, **kwargs)
def GetY(*args, **kwargs):
"""GetY(self) -> int"""
- return _core_.SetCursorEvent_GetY(*args, **kwargs)
+ return __core.wxSetCursorEvent_GetY(*args, **kwargs)
def SetCursor(*args, **kwargs):
- """SetCursor(self, Cursor cursor)"""
- return _core_.SetCursorEvent_SetCursor(*args, **kwargs)
+ """SetCursor(self, wxCursor cursor)"""
+ return __core.wxSetCursorEvent_SetCursor(*args, **kwargs)
def GetCursor(*args, **kwargs):
- """GetCursor(self) -> Cursor"""
- return _core_.SetCursorEvent_GetCursor(*args, **kwargs)
+ """GetCursor(self) -> wxCursor"""
+ return __core.wxSetCursorEvent_GetCursor(*args, **kwargs)
def HasCursor(*args, **kwargs):
"""HasCursor(self) -> bool"""
- return _core_.SetCursorEvent_HasCursor(*args, **kwargs)
+ return __core.wxSetCursorEvent_HasCursor(*args, **kwargs)
-class SetCursorEventPtr(SetCursorEvent):
+class wxSetCursorEventPtr(wxSetCursorEvent):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = SetCursorEvent
-_core_.SetCursorEvent_swigregister(SetCursorEventPtr)
+ self.__class__ = wxSetCursorEvent
+__core.wxSetCursorEvent_swigregister(wxSetCursorEventPtr)
#---------------------------------------------------------------------------
-class KeyEvent(Event):
+class wxKeyEvent(wxEvent):
+ """Proxy of C++ wxKeyEvent class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxKeyEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
- """__init__(self, wxEventType keyType=wxEVT_NULL) -> KeyEvent"""
- newobj = _core_.new_KeyEvent(*args, **kwargs)
+ """__init__(self, wxEventType keyType=wxEVT_NULL) -> wxKeyEvent"""
+ newobj = __core.new_wxKeyEvent(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
def ControlDown(*args, **kwargs):
"""ControlDown(self) -> bool"""
- return _core_.KeyEvent_ControlDown(*args, **kwargs)
+ return __core.wxKeyEvent_ControlDown(*args, **kwargs)
def MetaDown(*args, **kwargs):
"""MetaDown(self) -> bool"""
- return _core_.KeyEvent_MetaDown(*args, **kwargs)
+ return __core.wxKeyEvent_MetaDown(*args, **kwargs)
def AltDown(*args, **kwargs):
"""AltDown(self) -> bool"""
- return _core_.KeyEvent_AltDown(*args, **kwargs)
+ return __core.wxKeyEvent_AltDown(*args, **kwargs)
def ShiftDown(*args, **kwargs):
"""ShiftDown(self) -> bool"""
- return _core_.KeyEvent_ShiftDown(*args, **kwargs)
+ return __core.wxKeyEvent_ShiftDown(*args, **kwargs)
def CmdDown(*args, **kwargs):
"""
purpose. So for non-Mac platforms this is the same as `ControlDown`
and Macs this is the same as `MetaDown`.
"""
- return _core_.KeyEvent_CmdDown(*args, **kwargs)
+ return __core.wxKeyEvent_CmdDown(*args, **kwargs)
def HasModifiers(*args, **kwargs):
"""HasModifiers(self) -> bool"""
- return _core_.KeyEvent_HasModifiers(*args, **kwargs)
+ return __core.wxKeyEvent_HasModifiers(*args, **kwargs)
def GetKeyCode(*args, **kwargs):
"""GetKeyCode(self) -> int"""
- return _core_.KeyEvent_GetKeyCode(*args, **kwargs)
+ return __core.wxKeyEvent_GetKeyCode(*args, **kwargs)
KeyCode = GetKeyCode
def GetUnicodeKey(*args, **kwargs):
"""GetUnicodeKey(self) -> int"""
- return _core_.KeyEvent_GetUnicodeKey(*args, **kwargs)
+ return __core.wxKeyEvent_GetUnicodeKey(*args, **kwargs)
GetUniChar = GetUnicodeKey
def GetRawKeyCode(*args, **kwargs):
"""GetRawKeyCode(self) -> unsigned int"""
- return _core_.KeyEvent_GetRawKeyCode(*args, **kwargs)
+ return __core.wxKeyEvent_GetRawKeyCode(*args, **kwargs)
def GetRawKeyFlags(*args, **kwargs):
"""GetRawKeyFlags(self) -> unsigned int"""
- return _core_.KeyEvent_GetRawKeyFlags(*args, **kwargs)
+ return __core.wxKeyEvent_GetRawKeyFlags(*args, **kwargs)
def GetPosition(*args, **kwargs):
"""
- GetPosition(self) -> Point
+ GetPosition(self) -> wxPoint
Find the position of the event.
"""
- return _core_.KeyEvent_GetPosition(*args, **kwargs)
+ return __core.wxKeyEvent_GetPosition(*args, **kwargs)
def GetPositionTuple(*args, **kwargs):
"""
Find the position of the event.
"""
- return _core_.KeyEvent_GetPositionTuple(*args, **kwargs)
+ return __core.wxKeyEvent_GetPositionTuple(*args, **kwargs)
def GetX(*args, **kwargs):
"""GetX(self) -> int"""
- return _core_.KeyEvent_GetX(*args, **kwargs)
+ return __core.wxKeyEvent_GetX(*args, **kwargs)
def GetY(*args, **kwargs):
"""GetY(self) -> int"""
- return _core_.KeyEvent_GetY(*args, **kwargs)
-
- m_x = property(_core_.KeyEvent_m_x_get, _core_.KeyEvent_m_x_set)
- m_y = property(_core_.KeyEvent_m_y_get, _core_.KeyEvent_m_y_set)
- m_keyCode = property(_core_.KeyEvent_m_keyCode_get, _core_.KeyEvent_m_keyCode_set)
- m_controlDown = property(_core_.KeyEvent_m_controlDown_get, _core_.KeyEvent_m_controlDown_set)
- m_shiftDown = property(_core_.KeyEvent_m_shiftDown_get, _core_.KeyEvent_m_shiftDown_set)
- m_altDown = property(_core_.KeyEvent_m_altDown_get, _core_.KeyEvent_m_altDown_set)
- m_metaDown = property(_core_.KeyEvent_m_metaDown_get, _core_.KeyEvent_m_metaDown_set)
- m_scanCode = property(_core_.KeyEvent_m_scanCode_get, _core_.KeyEvent_m_scanCode_set)
- m_rawCode = property(_core_.KeyEvent_m_rawCode_get, _core_.KeyEvent_m_rawCode_set)
- m_rawFlags = property(_core_.KeyEvent_m_rawFlags_get, _core_.KeyEvent_m_rawFlags_set)
-
-class KeyEventPtr(KeyEvent):
+ return __core.wxKeyEvent_GetY(*args, **kwargs)
+
+ m_x = property(__core.wxKeyEvent_m_x_get, __core.wxKeyEvent_m_x_set)
+ m_y = property(__core.wxKeyEvent_m_y_get, __core.wxKeyEvent_m_y_set)
+ m_keyCode = property(__core.wxKeyEvent_m_keyCode_get, __core.wxKeyEvent_m_keyCode_set)
+ m_controlDown = property(__core.wxKeyEvent_m_controlDown_get, __core.wxKeyEvent_m_controlDown_set)
+ m_shiftDown = property(__core.wxKeyEvent_m_shiftDown_get, __core.wxKeyEvent_m_shiftDown_set)
+ m_altDown = property(__core.wxKeyEvent_m_altDown_get, __core.wxKeyEvent_m_altDown_set)
+ m_metaDown = property(__core.wxKeyEvent_m_metaDown_get, __core.wxKeyEvent_m_metaDown_set)
+ m_scanCode = property(__core.wxKeyEvent_m_scanCode_get, __core.wxKeyEvent_m_scanCode_set)
+ m_rawCode = property(__core.wxKeyEvent_m_rawCode_get, __core.wxKeyEvent_m_rawCode_set)
+ m_rawFlags = property(__core.wxKeyEvent_m_rawFlags_get, __core.wxKeyEvent_m_rawFlags_set)
+
+class wxKeyEventPtr(wxKeyEvent):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = KeyEvent
-_core_.KeyEvent_swigregister(KeyEventPtr)
+ self.__class__ = wxKeyEvent
+__core.wxKeyEvent_swigregister(wxKeyEventPtr)
#---------------------------------------------------------------------------
-class SizeEvent(Event):
+class wxSizeEvent(wxEvent):
+ """Proxy of C++ wxSizeEvent class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxSizeEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
- """__init__(self, Size sz=DefaultSize, int winid=0) -> SizeEvent"""
- newobj = _core_.new_SizeEvent(*args, **kwargs)
+ """__init__(self, wxSize sz=wxDefaultSize, int winid=0) -> wxSizeEvent"""
+ newobj = __core.new_wxSizeEvent(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
def GetSize(*args, **kwargs):
- """GetSize(self) -> Size"""
- return _core_.SizeEvent_GetSize(*args, **kwargs)
+ """GetSize(self) -> wxSize"""
+ return __core.wxSizeEvent_GetSize(*args, **kwargs)
def GetRect(*args, **kwargs):
- """GetRect(self) -> Rect"""
- return _core_.SizeEvent_GetRect(*args, **kwargs)
+ """GetRect(self) -> wxRect"""
+ return __core.wxSizeEvent_GetRect(*args, **kwargs)
def SetRect(*args, **kwargs):
- """SetRect(self, Rect rect)"""
- return _core_.SizeEvent_SetRect(*args, **kwargs)
+ """SetRect(self, wxRect rect)"""
+ return __core.wxSizeEvent_SetRect(*args, **kwargs)
def SetSize(*args, **kwargs):
- """SetSize(self, Size size)"""
- return _core_.SizeEvent_SetSize(*args, **kwargs)
+ """SetSize(self, wxSize size)"""
+ return __core.wxSizeEvent_SetSize(*args, **kwargs)
- m_size = property(_core_.SizeEvent_m_size_get, _core_.SizeEvent_m_size_set)
- m_rect = property(_core_.SizeEvent_m_rect_get, _core_.SizeEvent_m_rect_set)
+ m_size = property(__core.wxSizeEvent_m_size_get, __core.wxSizeEvent_m_size_set)
+ m_rect = property(__core.wxSizeEvent_m_rect_get, __core.wxSizeEvent_m_rect_set)
-class SizeEventPtr(SizeEvent):
+class wxSizeEventPtr(wxSizeEvent):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = SizeEvent
-_core_.SizeEvent_swigregister(SizeEventPtr)
+ self.__class__ = wxSizeEvent
+__core.wxSizeEvent_swigregister(wxSizeEventPtr)
#---------------------------------------------------------------------------
-class MoveEvent(Event):
+class wxMoveEvent(wxEvent):
+ """Proxy of C++ wxMoveEvent class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxMoveEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
- """__init__(self, Point pos=DefaultPosition, int winid=0) -> MoveEvent"""
- newobj = _core_.new_MoveEvent(*args, **kwargs)
+ """__init__(self, wxPoint pos=wxDefaultPosition, int winid=0) -> wxMoveEvent"""
+ newobj = __core.new_wxMoveEvent(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
def GetPosition(*args, **kwargs):
- """GetPosition(self) -> Point"""
- return _core_.MoveEvent_GetPosition(*args, **kwargs)
+ """GetPosition(self) -> wxPoint"""
+ return __core.wxMoveEvent_GetPosition(*args, **kwargs)
def GetRect(*args, **kwargs):
- """GetRect(self) -> Rect"""
- return _core_.MoveEvent_GetRect(*args, **kwargs)
+ """GetRect(self) -> wxRect"""
+ return __core.wxMoveEvent_GetRect(*args, **kwargs)
def SetRect(*args, **kwargs):
- """SetRect(self, Rect rect)"""
- return _core_.MoveEvent_SetRect(*args, **kwargs)
+ """SetRect(self, wxRect rect)"""
+ return __core.wxMoveEvent_SetRect(*args, **kwargs)
def SetPosition(*args, **kwargs):
- """SetPosition(self, Point pos)"""
- return _core_.MoveEvent_SetPosition(*args, **kwargs)
+ """SetPosition(self, wxPoint pos)"""
+ return __core.wxMoveEvent_SetPosition(*args, **kwargs)
- m_pos = property(_core_.MoveEvent_m_pos_get, _core_.MoveEvent_m_pos_set)
- m_rect = property(_core_.MoveEvent_m_rect_get, _core_.MoveEvent_m_rect_set)
+ m_pos = property(GetPosition, SetPosition)
+ m_rect = property(GetRect, SetRect)
-class MoveEventPtr(MoveEvent):
+
+class wxMoveEventPtr(wxMoveEvent):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = MoveEvent
-_core_.MoveEvent_swigregister(MoveEventPtr)
+ self.__class__ = wxMoveEvent
+__core.wxMoveEvent_swigregister(wxMoveEventPtr)
#---------------------------------------------------------------------------
-class PaintEvent(Event):
+class wxPaintEvent(wxEvent):
+ """Proxy of C++ wxPaintEvent class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxPaintEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
- """__init__(self, int Id=0) -> PaintEvent"""
- newobj = _core_.new_PaintEvent(*args, **kwargs)
+ """__init__(self, int Id=0) -> wxPaintEvent"""
+ newobj = __core.new_wxPaintEvent(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
-class PaintEventPtr(PaintEvent):
+class wxPaintEventPtr(wxPaintEvent):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = PaintEvent
-_core_.PaintEvent_swigregister(PaintEventPtr)
+ self.__class__ = wxPaintEvent
+__core.wxPaintEvent_swigregister(wxPaintEventPtr)
-class NcPaintEvent(Event):
+class wxNcPaintEvent(wxEvent):
+ """Proxy of C++ wxNcPaintEvent class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxNcPaintEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
- """__init__(self, int winid=0) -> NcPaintEvent"""
- newobj = _core_.new_NcPaintEvent(*args, **kwargs)
+ """__init__(self, int winid=0) -> wxNcPaintEvent"""
+ newobj = __core.new_wxNcPaintEvent(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
-class NcPaintEventPtr(NcPaintEvent):
+class wxNcPaintEventPtr(wxNcPaintEvent):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = NcPaintEvent
-_core_.NcPaintEvent_swigregister(NcPaintEventPtr)
+ self.__class__ = wxNcPaintEvent
+__core.wxNcPaintEvent_swigregister(wxNcPaintEventPtr)
#---------------------------------------------------------------------------
-class EraseEvent(Event):
+class wxEraseEvent(wxEvent):
+ """Proxy of C++ wxEraseEvent class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxEraseEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
- """__init__(self, int Id=0, DC dc=(wxDC *) NULL) -> EraseEvent"""
- newobj = _core_.new_EraseEvent(*args, **kwargs)
+ """__init__(self, int Id=0, wxDC dc=(wxDC *) NULL) -> wxEraseEvent"""
+ newobj = __core.new_wxEraseEvent(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
def GetDC(*args, **kwargs):
- """GetDC(self) -> DC"""
- return _core_.EraseEvent_GetDC(*args, **kwargs)
+ """GetDC(self) -> wxDC"""
+ return __core.wxEraseEvent_GetDC(*args, **kwargs)
-class EraseEventPtr(EraseEvent):
+class wxEraseEventPtr(wxEraseEvent):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = EraseEvent
-_core_.EraseEvent_swigregister(EraseEventPtr)
+ self.__class__ = wxEraseEvent
+__core.wxEraseEvent_swigregister(wxEraseEventPtr)
#---------------------------------------------------------------------------
-class FocusEvent(Event):
+class wxFocusEvent(wxEvent):
+ """Proxy of C++ wxFocusEvent class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxFocusEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
- """__init__(self, wxEventType type=wxEVT_NULL, int winid=0) -> FocusEvent"""
- newobj = _core_.new_FocusEvent(*args, **kwargs)
+ """__init__(self, wxEventType type=wxEVT_NULL, int winid=0) -> wxFocusEvent"""
+ newobj = __core.new_wxFocusEvent(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
def GetWindow(*args, **kwargs):
- """GetWindow(self) -> Window"""
- return _core_.FocusEvent_GetWindow(*args, **kwargs)
+ """GetWindow(self) -> wxWindow"""
+ return __core.wxFocusEvent_GetWindow(*args, **kwargs)
def SetWindow(*args, **kwargs):
- """SetWindow(self, Window win)"""
- return _core_.FocusEvent_SetWindow(*args, **kwargs)
+ """SetWindow(self, wxWindow win)"""
+ return __core.wxFocusEvent_SetWindow(*args, **kwargs)
-class FocusEventPtr(FocusEvent):
+class wxFocusEventPtr(wxFocusEvent):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = FocusEvent
-_core_.FocusEvent_swigregister(FocusEventPtr)
+ self.__class__ = wxFocusEvent
+__core.wxFocusEvent_swigregister(wxFocusEventPtr)
#---------------------------------------------------------------------------
-class ChildFocusEvent(CommandEvent):
+class wxChildFocusEvent(wxCommandEvent):
+ """Proxy of C++ wxChildFocusEvent class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxChildFocusEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
- """__init__(self, Window win=None) -> ChildFocusEvent"""
- newobj = _core_.new_ChildFocusEvent(*args, **kwargs)
+ """__init__(self, wxWindow win=None) -> wxChildFocusEvent"""
+ newobj = __core.new_wxChildFocusEvent(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
def GetWindow(*args, **kwargs):
- """GetWindow(self) -> Window"""
- return _core_.ChildFocusEvent_GetWindow(*args, **kwargs)
+ """GetWindow(self) -> wxWindow"""
+ return __core.wxChildFocusEvent_GetWindow(*args, **kwargs)
-class ChildFocusEventPtr(ChildFocusEvent):
+class wxChildFocusEventPtr(wxChildFocusEvent):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = ChildFocusEvent
-_core_.ChildFocusEvent_swigregister(ChildFocusEventPtr)
+ self.__class__ = wxChildFocusEvent
+__core.wxChildFocusEvent_swigregister(wxChildFocusEventPtr)
#---------------------------------------------------------------------------
-class ActivateEvent(Event):
+class wxActivateEvent(wxEvent):
+ """Proxy of C++ wxActivateEvent class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxActivateEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
- """__init__(self, wxEventType type=wxEVT_NULL, bool active=True, int Id=0) -> ActivateEvent"""
- newobj = _core_.new_ActivateEvent(*args, **kwargs)
+ """__init__(self, wxEventType type=wxEVT_NULL, bool active=True, int Id=0) -> wxActivateEvent"""
+ newobj = __core.new_wxActivateEvent(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
def GetActive(*args, **kwargs):
"""GetActive(self) -> bool"""
- return _core_.ActivateEvent_GetActive(*args, **kwargs)
+ return __core.wxActivateEvent_GetActive(*args, **kwargs)
-class ActivateEventPtr(ActivateEvent):
+class wxActivateEventPtr(wxActivateEvent):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = ActivateEvent
-_core_.ActivateEvent_swigregister(ActivateEventPtr)
+ self.__class__ = wxActivateEvent
+__core.wxActivateEvent_swigregister(wxActivateEventPtr)
#---------------------------------------------------------------------------
-class InitDialogEvent(Event):
+class wxInitDialogEvent(wxEvent):
+ """Proxy of C++ wxInitDialogEvent class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxInitDialogEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
- """__init__(self, int Id=0) -> InitDialogEvent"""
- newobj = _core_.new_InitDialogEvent(*args, **kwargs)
+ """__init__(self, int Id=0) -> wxInitDialogEvent"""
+ newobj = __core.new_wxInitDialogEvent(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
-class InitDialogEventPtr(InitDialogEvent):
+class wxInitDialogEventPtr(wxInitDialogEvent):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = InitDialogEvent
-_core_.InitDialogEvent_swigregister(InitDialogEventPtr)
+ self.__class__ = wxInitDialogEvent
+__core.wxInitDialogEvent_swigregister(wxInitDialogEventPtr)
#---------------------------------------------------------------------------
-class MenuEvent(Event):
+class wxMenuEvent(wxEvent):
+ """Proxy of C++ wxMenuEvent class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxMenuEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
- """__init__(self, wxEventType type=wxEVT_NULL, int winid=0, Menu menu=None) -> MenuEvent"""
- newobj = _core_.new_MenuEvent(*args, **kwargs)
+ """__init__(self, wxEventType type=wxEVT_NULL, int winid=0, wxMenu menu=None) -> wxMenuEvent"""
+ newobj = __core.new_wxMenuEvent(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
def GetMenuId(*args, **kwargs):
"""GetMenuId(self) -> int"""
- return _core_.MenuEvent_GetMenuId(*args, **kwargs)
+ return __core.wxMenuEvent_GetMenuId(*args, **kwargs)
def IsPopup(*args, **kwargs):
"""IsPopup(self) -> bool"""
- return _core_.MenuEvent_IsPopup(*args, **kwargs)
+ return __core.wxMenuEvent_IsPopup(*args, **kwargs)
def GetMenu(*args, **kwargs):
- """GetMenu(self) -> Menu"""
- return _core_.MenuEvent_GetMenu(*args, **kwargs)
+ """GetMenu(self) -> wxMenu"""
+ return __core.wxMenuEvent_GetMenu(*args, **kwargs)
-class MenuEventPtr(MenuEvent):
+class wxMenuEventPtr(wxMenuEvent):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = MenuEvent
-_core_.MenuEvent_swigregister(MenuEventPtr)
+ self.__class__ = wxMenuEvent
+__core.wxMenuEvent_swigregister(wxMenuEventPtr)
#---------------------------------------------------------------------------
-class CloseEvent(Event):
+class wxCloseEvent(wxEvent):
+ """Proxy of C++ wxCloseEvent class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxCloseEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
- """__init__(self, wxEventType type=wxEVT_NULL, int winid=0) -> CloseEvent"""
- newobj = _core_.new_CloseEvent(*args, **kwargs)
+ """__init__(self, wxEventType type=wxEVT_NULL, int winid=0) -> wxCloseEvent"""
+ newobj = __core.new_wxCloseEvent(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
def SetLoggingOff(*args, **kwargs):
"""SetLoggingOff(self, bool logOff)"""
- return _core_.CloseEvent_SetLoggingOff(*args, **kwargs)
+ return __core.wxCloseEvent_SetLoggingOff(*args, **kwargs)
def GetLoggingOff(*args, **kwargs):
"""GetLoggingOff(self) -> bool"""
- return _core_.CloseEvent_GetLoggingOff(*args, **kwargs)
+ return __core.wxCloseEvent_GetLoggingOff(*args, **kwargs)
def Veto(*args, **kwargs):
"""Veto(self, bool veto=True)"""
- return _core_.CloseEvent_Veto(*args, **kwargs)
+ return __core.wxCloseEvent_Veto(*args, **kwargs)
def SetCanVeto(*args, **kwargs):
"""SetCanVeto(self, bool canVeto)"""
- return _core_.CloseEvent_SetCanVeto(*args, **kwargs)
+ return __core.wxCloseEvent_SetCanVeto(*args, **kwargs)
def CanVeto(*args, **kwargs):
"""CanVeto(self) -> bool"""
- return _core_.CloseEvent_CanVeto(*args, **kwargs)
+ return __core.wxCloseEvent_CanVeto(*args, **kwargs)
def GetVeto(*args, **kwargs):
"""GetVeto(self) -> bool"""
- return _core_.CloseEvent_GetVeto(*args, **kwargs)
+ return __core.wxCloseEvent_GetVeto(*args, **kwargs)
-class CloseEventPtr(CloseEvent):
+class wxCloseEventPtr(wxCloseEvent):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = CloseEvent
-_core_.CloseEvent_swigregister(CloseEventPtr)
+ self.__class__ = wxCloseEvent
+__core.wxCloseEvent_swigregister(wxCloseEventPtr)
#---------------------------------------------------------------------------
-class ShowEvent(Event):
+class wxShowEvent(wxEvent):
+ """Proxy of C++ wxShowEvent class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxShowEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
- """__init__(self, int winid=0, bool show=False) -> ShowEvent"""
- newobj = _core_.new_ShowEvent(*args, **kwargs)
+ """__init__(self, int winid=0, bool show=False) -> wxShowEvent"""
+ newobj = __core.new_wxShowEvent(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
def SetShow(*args, **kwargs):
"""SetShow(self, bool show)"""
- return _core_.ShowEvent_SetShow(*args, **kwargs)
+ return __core.wxShowEvent_SetShow(*args, **kwargs)
def GetShow(*args, **kwargs):
"""GetShow(self) -> bool"""
- return _core_.ShowEvent_GetShow(*args, **kwargs)
+ return __core.wxShowEvent_GetShow(*args, **kwargs)
-class ShowEventPtr(ShowEvent):
+class wxShowEventPtr(wxShowEvent):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = ShowEvent
-_core_.ShowEvent_swigregister(ShowEventPtr)
+ self.__class__ = wxShowEvent
+__core.wxShowEvent_swigregister(wxShowEventPtr)
#---------------------------------------------------------------------------
-class IconizeEvent(Event):
+class wxIconizeEvent(wxEvent):
+ """Proxy of C++ wxIconizeEvent class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxIconizeEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
- """__init__(self, int id=0, bool iconized=True) -> IconizeEvent"""
- newobj = _core_.new_IconizeEvent(*args, **kwargs)
+ """__init__(self, int id=0, bool iconized=True) -> wxIconizeEvent"""
+ newobj = __core.new_wxIconizeEvent(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
def Iconized(*args, **kwargs):
"""Iconized(self) -> bool"""
- return _core_.IconizeEvent_Iconized(*args, **kwargs)
+ return __core.wxIconizeEvent_Iconized(*args, **kwargs)
-class IconizeEventPtr(IconizeEvent):
+class wxIconizeEventPtr(wxIconizeEvent):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = IconizeEvent
-_core_.IconizeEvent_swigregister(IconizeEventPtr)
+ self.__class__ = wxIconizeEvent
+__core.wxIconizeEvent_swigregister(wxIconizeEventPtr)
#---------------------------------------------------------------------------
-class MaximizeEvent(Event):
+class wxMaximizeEvent(wxEvent):
+ """Proxy of C++ wxMaximizeEvent class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxMaximizeEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
- """__init__(self, int id=0) -> MaximizeEvent"""
- newobj = _core_.new_MaximizeEvent(*args, **kwargs)
+ """__init__(self, int id=0) -> wxMaximizeEvent"""
+ newobj = __core.new_wxMaximizeEvent(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
-class MaximizeEventPtr(MaximizeEvent):
+class wxMaximizeEventPtr(wxMaximizeEvent):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = MaximizeEvent
-_core_.MaximizeEvent_swigregister(MaximizeEventPtr)
+ self.__class__ = wxMaximizeEvent
+__core.wxMaximizeEvent_swigregister(wxMaximizeEventPtr)
#---------------------------------------------------------------------------
-class DropFilesEvent(Event):
+class wxDropFilesEvent(wxEvent):
+ """Proxy of C++ wxDropFilesEvent class"""
def __init__(self): raise RuntimeError, "No constructor defined"
def __repr__(self):
return "<%s.%s; proxy of C++ wxDropFilesEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def GetPosition(*args, **kwargs):
- """GetPosition(self) -> Point"""
- return _core_.DropFilesEvent_GetPosition(*args, **kwargs)
+ """GetPosition(self) -> wxPoint"""
+ return __core.wxDropFilesEvent_GetPosition(*args, **kwargs)
def GetNumberOfFiles(*args, **kwargs):
"""GetNumberOfFiles(self) -> int"""
- return _core_.DropFilesEvent_GetNumberOfFiles(*args, **kwargs)
+ return __core.wxDropFilesEvent_GetNumberOfFiles(*args, **kwargs)
def GetFiles(*args, **kwargs):
"""GetFiles(self) -> PyObject"""
- return _core_.DropFilesEvent_GetFiles(*args, **kwargs)
+ return __core.wxDropFilesEvent_GetFiles(*args, **kwargs)
-class DropFilesEventPtr(DropFilesEvent):
+class wxDropFilesEventPtr(wxDropFilesEvent):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = DropFilesEvent
-_core_.DropFilesEvent_swigregister(DropFilesEventPtr)
+ self.__class__ = wxDropFilesEvent
+__core.wxDropFilesEvent_swigregister(wxDropFilesEventPtr)
#---------------------------------------------------------------------------
-UPDATE_UI_PROCESS_ALL = _core_.UPDATE_UI_PROCESS_ALL
-UPDATE_UI_PROCESS_SPECIFIED = _core_.UPDATE_UI_PROCESS_SPECIFIED
-class UpdateUIEvent(CommandEvent):
+wxUPDATE_UI_PROCESS_ALL = __core.wxUPDATE_UI_PROCESS_ALL
+wxUPDATE_UI_PROCESS_SPECIFIED = __core.wxUPDATE_UI_PROCESS_SPECIFIED
+class wxUpdateUIEvent(wxCommandEvent):
+ """Proxy of C++ wxUpdateUIEvent class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxUpdateUIEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
- """__init__(self, int commandId=0) -> UpdateUIEvent"""
- newobj = _core_.new_UpdateUIEvent(*args, **kwargs)
+ """__init__(self, int commandId=0) -> wxUpdateUIEvent"""
+ newobj = __core.new_wxUpdateUIEvent(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
def GetChecked(*args, **kwargs):
"""GetChecked(self) -> bool"""
- return _core_.UpdateUIEvent_GetChecked(*args, **kwargs)
+ return __core.wxUpdateUIEvent_GetChecked(*args, **kwargs)
def GetEnabled(*args, **kwargs):
"""GetEnabled(self) -> bool"""
- return _core_.UpdateUIEvent_GetEnabled(*args, **kwargs)
+ return __core.wxUpdateUIEvent_GetEnabled(*args, **kwargs)
def GetText(*args, **kwargs):
- """GetText(self) -> String"""
- return _core_.UpdateUIEvent_GetText(*args, **kwargs)
+ """GetText(self) -> wxString"""
+ return __core.wxUpdateUIEvent_GetText(*args, **kwargs)
def GetSetText(*args, **kwargs):
"""GetSetText(self) -> bool"""
- return _core_.UpdateUIEvent_GetSetText(*args, **kwargs)
+ return __core.wxUpdateUIEvent_GetSetText(*args, **kwargs)
def GetSetChecked(*args, **kwargs):
"""GetSetChecked(self) -> bool"""
- return _core_.UpdateUIEvent_GetSetChecked(*args, **kwargs)
+ return __core.wxUpdateUIEvent_GetSetChecked(*args, **kwargs)
def GetSetEnabled(*args, **kwargs):
"""GetSetEnabled(self) -> bool"""
- return _core_.UpdateUIEvent_GetSetEnabled(*args, **kwargs)
+ return __core.wxUpdateUIEvent_GetSetEnabled(*args, **kwargs)
def Check(*args, **kwargs):
"""Check(self, bool check)"""
- return _core_.UpdateUIEvent_Check(*args, **kwargs)
+ return __core.wxUpdateUIEvent_Check(*args, **kwargs)
def Enable(*args, **kwargs):
"""Enable(self, bool enable)"""
- return _core_.UpdateUIEvent_Enable(*args, **kwargs)
+ return __core.wxUpdateUIEvent_Enable(*args, **kwargs)
def SetText(*args, **kwargs):
- """SetText(self, String text)"""
- return _core_.UpdateUIEvent_SetText(*args, **kwargs)
+ """SetText(self, wxString text)"""
+ return __core.wxUpdateUIEvent_SetText(*args, **kwargs)
def SetUpdateInterval(*args, **kwargs):
"""SetUpdateInterval(long updateInterval)"""
- return _core_.UpdateUIEvent_SetUpdateInterval(*args, **kwargs)
+ return __core.wxUpdateUIEvent_SetUpdateInterval(*args, **kwargs)
SetUpdateInterval = staticmethod(SetUpdateInterval)
def GetUpdateInterval(*args, **kwargs):
"""GetUpdateInterval() -> long"""
- return _core_.UpdateUIEvent_GetUpdateInterval(*args, **kwargs)
+ return __core.wxUpdateUIEvent_GetUpdateInterval(*args, **kwargs)
GetUpdateInterval = staticmethod(GetUpdateInterval)
def CanUpdate(*args, **kwargs):
- """CanUpdate(Window win) -> bool"""
- return _core_.UpdateUIEvent_CanUpdate(*args, **kwargs)
+ """CanUpdate(wxWindow win) -> bool"""
+ return __core.wxUpdateUIEvent_CanUpdate(*args, **kwargs)
CanUpdate = staticmethod(CanUpdate)
def ResetUpdateTime(*args, **kwargs):
"""ResetUpdateTime()"""
- return _core_.UpdateUIEvent_ResetUpdateTime(*args, **kwargs)
+ return __core.wxUpdateUIEvent_ResetUpdateTime(*args, **kwargs)
ResetUpdateTime = staticmethod(ResetUpdateTime)
def SetMode(*args, **kwargs):
"""SetMode(int mode)"""
- return _core_.UpdateUIEvent_SetMode(*args, **kwargs)
+ return __core.wxUpdateUIEvent_SetMode(*args, **kwargs)
SetMode = staticmethod(SetMode)
def GetMode(*args, **kwargs):
"""GetMode() -> int"""
- return _core_.UpdateUIEvent_GetMode(*args, **kwargs)
+ return __core.wxUpdateUIEvent_GetMode(*args, **kwargs)
GetMode = staticmethod(GetMode)
-class UpdateUIEventPtr(UpdateUIEvent):
+class wxUpdateUIEventPtr(wxUpdateUIEvent):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = UpdateUIEvent
-_core_.UpdateUIEvent_swigregister(UpdateUIEventPtr)
+ self.__class__ = wxUpdateUIEvent
+__core.wxUpdateUIEvent_swigregister(wxUpdateUIEventPtr)
-def UpdateUIEvent_SetUpdateInterval(*args, **kwargs):
- """UpdateUIEvent_SetUpdateInterval(long updateInterval)"""
- return _core_.UpdateUIEvent_SetUpdateInterval(*args, **kwargs)
+def wxUpdateUIEvent_SetUpdateInterval(*args, **kwargs):
+ """wxUpdateUIEvent_SetUpdateInterval(long updateInterval)"""
+ return __core.wxUpdateUIEvent_SetUpdateInterval(*args, **kwargs)
-def UpdateUIEvent_GetUpdateInterval(*args, **kwargs):
- """UpdateUIEvent_GetUpdateInterval() -> long"""
- return _core_.UpdateUIEvent_GetUpdateInterval(*args, **kwargs)
+def wxUpdateUIEvent_GetUpdateInterval(*args, **kwargs):
+ """wxUpdateUIEvent_GetUpdateInterval() -> long"""
+ return __core.wxUpdateUIEvent_GetUpdateInterval(*args, **kwargs)
-def UpdateUIEvent_CanUpdate(*args, **kwargs):
- """UpdateUIEvent_CanUpdate(Window win) -> bool"""
- return _core_.UpdateUIEvent_CanUpdate(*args, **kwargs)
+def wxUpdateUIEvent_CanUpdate(*args, **kwargs):
+ """wxUpdateUIEvent_CanUpdate(wxWindow win) -> bool"""
+ return __core.wxUpdateUIEvent_CanUpdate(*args, **kwargs)
-def UpdateUIEvent_ResetUpdateTime(*args, **kwargs):
- """UpdateUIEvent_ResetUpdateTime()"""
- return _core_.UpdateUIEvent_ResetUpdateTime(*args, **kwargs)
+def wxUpdateUIEvent_ResetUpdateTime(*args, **kwargs):
+ """wxUpdateUIEvent_ResetUpdateTime()"""
+ return __core.wxUpdateUIEvent_ResetUpdateTime(*args, **kwargs)
-def UpdateUIEvent_SetMode(*args, **kwargs):
- """UpdateUIEvent_SetMode(int mode)"""
- return _core_.UpdateUIEvent_SetMode(*args, **kwargs)
+def wxUpdateUIEvent_SetMode(*args, **kwargs):
+ """wxUpdateUIEvent_SetMode(int mode)"""
+ return __core.wxUpdateUIEvent_SetMode(*args, **kwargs)
-def UpdateUIEvent_GetMode(*args, **kwargs):
- """UpdateUIEvent_GetMode() -> int"""
- return _core_.UpdateUIEvent_GetMode(*args, **kwargs)
+def wxUpdateUIEvent_GetMode(*args, **kwargs):
+ """wxUpdateUIEvent_GetMode() -> int"""
+ return __core.wxUpdateUIEvent_GetMode(*args, **kwargs)
#---------------------------------------------------------------------------
-class SysColourChangedEvent(Event):
+class wxSysColourChangedEvent(wxEvent):
+ """Proxy of C++ wxSysColourChangedEvent class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxSysColourChangedEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
- """__init__(self) -> SysColourChangedEvent"""
- newobj = _core_.new_SysColourChangedEvent(*args, **kwargs)
+ """__init__(self) -> wxSysColourChangedEvent"""
+ newobj = __core.new_wxSysColourChangedEvent(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
-class SysColourChangedEventPtr(SysColourChangedEvent):
+class wxSysColourChangedEventPtr(wxSysColourChangedEvent):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = SysColourChangedEvent
-_core_.SysColourChangedEvent_swigregister(SysColourChangedEventPtr)
+ self.__class__ = wxSysColourChangedEvent
+__core.wxSysColourChangedEvent_swigregister(wxSysColourChangedEventPtr)
#---------------------------------------------------------------------------
-class MouseCaptureChangedEvent(Event):
+class wxMouseCaptureChangedEvent(wxEvent):
+ """Proxy of C++ wxMouseCaptureChangedEvent class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxMouseCaptureChangedEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
- """__init__(self, int winid=0, Window gainedCapture=None) -> MouseCaptureChangedEvent"""
- newobj = _core_.new_MouseCaptureChangedEvent(*args, **kwargs)
+ """__init__(self, int winid=0, wxWindow gainedCapture=None) -> wxMouseCaptureChangedEvent"""
+ newobj = __core.new_wxMouseCaptureChangedEvent(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
def GetCapturedWindow(*args, **kwargs):
- """GetCapturedWindow(self) -> Window"""
- return _core_.MouseCaptureChangedEvent_GetCapturedWindow(*args, **kwargs)
+ """GetCapturedWindow(self) -> wxWindow"""
+ return __core.wxMouseCaptureChangedEvent_GetCapturedWindow(*args, **kwargs)
-class MouseCaptureChangedEventPtr(MouseCaptureChangedEvent):
+class wxMouseCaptureChangedEventPtr(wxMouseCaptureChangedEvent):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = MouseCaptureChangedEvent
-_core_.MouseCaptureChangedEvent_swigregister(MouseCaptureChangedEventPtr)
+ self.__class__ = wxMouseCaptureChangedEvent
+__core.wxMouseCaptureChangedEvent_swigregister(wxMouseCaptureChangedEventPtr)
#---------------------------------------------------------------------------
-class DisplayChangedEvent(Event):
+class wxDisplayChangedEvent(wxEvent):
+ """Proxy of C++ wxDisplayChangedEvent class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxDisplayChangedEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
- """__init__(self) -> DisplayChangedEvent"""
- newobj = _core_.new_DisplayChangedEvent(*args, **kwargs)
+ """__init__(self) -> wxDisplayChangedEvent"""
+ newobj = __core.new_wxDisplayChangedEvent(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
-class DisplayChangedEventPtr(DisplayChangedEvent):
+class wxDisplayChangedEventPtr(wxDisplayChangedEvent):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = DisplayChangedEvent
-_core_.DisplayChangedEvent_swigregister(DisplayChangedEventPtr)
+ self.__class__ = wxDisplayChangedEvent
+__core.wxDisplayChangedEvent_swigregister(wxDisplayChangedEventPtr)
#---------------------------------------------------------------------------
-class PaletteChangedEvent(Event):
+class wxPaletteChangedEvent(wxEvent):
+ """Proxy of C++ wxPaletteChangedEvent class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxPaletteChangedEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
- """__init__(self, int id=0) -> PaletteChangedEvent"""
- newobj = _core_.new_PaletteChangedEvent(*args, **kwargs)
+ """__init__(self, int id=0) -> wxPaletteChangedEvent"""
+ newobj = __core.new_wxPaletteChangedEvent(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
def SetChangedWindow(*args, **kwargs):
- """SetChangedWindow(self, Window win)"""
- return _core_.PaletteChangedEvent_SetChangedWindow(*args, **kwargs)
+ """SetChangedWindow(self, wxWindow win)"""
+ return __core.wxPaletteChangedEvent_SetChangedWindow(*args, **kwargs)
def GetChangedWindow(*args, **kwargs):
- """GetChangedWindow(self) -> Window"""
- return _core_.PaletteChangedEvent_GetChangedWindow(*args, **kwargs)
+ """GetChangedWindow(self) -> wxWindow"""
+ return __core.wxPaletteChangedEvent_GetChangedWindow(*args, **kwargs)
-class PaletteChangedEventPtr(PaletteChangedEvent):
+class wxPaletteChangedEventPtr(wxPaletteChangedEvent):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = PaletteChangedEvent
-_core_.PaletteChangedEvent_swigregister(PaletteChangedEventPtr)
+ self.__class__ = wxPaletteChangedEvent
+__core.wxPaletteChangedEvent_swigregister(wxPaletteChangedEventPtr)
#---------------------------------------------------------------------------
-class QueryNewPaletteEvent(Event):
+class wxQueryNewPaletteEvent(wxEvent):
+ """Proxy of C++ wxQueryNewPaletteEvent class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxQueryNewPaletteEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
- """__init__(self, int winid=0) -> QueryNewPaletteEvent"""
- newobj = _core_.new_QueryNewPaletteEvent(*args, **kwargs)
+ """__init__(self, int winid=0) -> wxQueryNewPaletteEvent"""
+ newobj = __core.new_wxQueryNewPaletteEvent(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
def SetPaletteRealized(*args, **kwargs):
"""SetPaletteRealized(self, bool realized)"""
- return _core_.QueryNewPaletteEvent_SetPaletteRealized(*args, **kwargs)
+ return __core.wxQueryNewPaletteEvent_SetPaletteRealized(*args, **kwargs)
def GetPaletteRealized(*args, **kwargs):
"""GetPaletteRealized(self) -> bool"""
- return _core_.QueryNewPaletteEvent_GetPaletteRealized(*args, **kwargs)
+ return __core.wxQueryNewPaletteEvent_GetPaletteRealized(*args, **kwargs)
-class QueryNewPaletteEventPtr(QueryNewPaletteEvent):
+class wxQueryNewPaletteEventPtr(wxQueryNewPaletteEvent):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = QueryNewPaletteEvent
-_core_.QueryNewPaletteEvent_swigregister(QueryNewPaletteEventPtr)
+ self.__class__ = wxQueryNewPaletteEvent
+__core.wxQueryNewPaletteEvent_swigregister(wxQueryNewPaletteEventPtr)
#---------------------------------------------------------------------------
-class NavigationKeyEvent(Event):
+class wxNavigationKeyEvent(wxEvent):
+ """Proxy of C++ wxNavigationKeyEvent class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxNavigationKeyEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
- """__init__(self) -> NavigationKeyEvent"""
- newobj = _core_.new_NavigationKeyEvent(*args, **kwargs)
+ """__init__(self) -> wxNavigationKeyEvent"""
+ newobj = __core.new_wxNavigationKeyEvent(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
def GetDirection(*args, **kwargs):
"""GetDirection(self) -> bool"""
- return _core_.NavigationKeyEvent_GetDirection(*args, **kwargs)
+ return __core.wxNavigationKeyEvent_GetDirection(*args, **kwargs)
def SetDirection(*args, **kwargs):
"""SetDirection(self, bool forward)"""
- return _core_.NavigationKeyEvent_SetDirection(*args, **kwargs)
+ return __core.wxNavigationKeyEvent_SetDirection(*args, **kwargs)
def IsWindowChange(*args, **kwargs):
"""IsWindowChange(self) -> bool"""
- return _core_.NavigationKeyEvent_IsWindowChange(*args, **kwargs)
+ return __core.wxNavigationKeyEvent_IsWindowChange(*args, **kwargs)
def SetWindowChange(*args, **kwargs):
"""SetWindowChange(self, bool ischange)"""
- return _core_.NavigationKeyEvent_SetWindowChange(*args, **kwargs)
+ return __core.wxNavigationKeyEvent_SetWindowChange(*args, **kwargs)
+
+ def IsFromTab(*args, **kwargs):
+ """IsFromTab(self) -> bool"""
+ return __core.wxNavigationKeyEvent_IsFromTab(*args, **kwargs)
+
+ def SetFromTab(*args, **kwargs):
+ """SetFromTab(self, bool bIs)"""
+ return __core.wxNavigationKeyEvent_SetFromTab(*args, **kwargs)
def SetFlags(*args, **kwargs):
"""SetFlags(self, long flags)"""
- return _core_.NavigationKeyEvent_SetFlags(*args, **kwargs)
+ return __core.wxNavigationKeyEvent_SetFlags(*args, **kwargs)
def GetCurrentFocus(*args, **kwargs):
- """GetCurrentFocus(self) -> Window"""
- return _core_.NavigationKeyEvent_GetCurrentFocus(*args, **kwargs)
+ """GetCurrentFocus(self) -> wxWindow"""
+ return __core.wxNavigationKeyEvent_GetCurrentFocus(*args, **kwargs)
def SetCurrentFocus(*args, **kwargs):
- """SetCurrentFocus(self, Window win)"""
- return _core_.NavigationKeyEvent_SetCurrentFocus(*args, **kwargs)
+ """SetCurrentFocus(self, wxWindow win)"""
+ return __core.wxNavigationKeyEvent_SetCurrentFocus(*args, **kwargs)
- IsBackward = _core_.NavigationKeyEvent_IsBackward
- IsForward = _core_.NavigationKeyEvent_IsForward
- WinChange = _core_.NavigationKeyEvent_WinChange
+ IsBackward = __core.wxNavigationKeyEvent_IsBackward
+ IsForward = __core.wxNavigationKeyEvent_IsForward
+ WinChange = __core.wxNavigationKeyEvent_WinChange
+ FromTab = __core.wxNavigationKeyEvent_FromTab
-class NavigationKeyEventPtr(NavigationKeyEvent):
+class wxNavigationKeyEventPtr(wxNavigationKeyEvent):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = NavigationKeyEvent
-_core_.NavigationKeyEvent_swigregister(NavigationKeyEventPtr)
+ self.__class__ = wxNavigationKeyEvent
+__core.wxNavigationKeyEvent_swigregister(wxNavigationKeyEventPtr)
#---------------------------------------------------------------------------
-class WindowCreateEvent(CommandEvent):
+class wxWindowCreateEvent(wxCommandEvent):
+ """Proxy of C++ wxWindowCreateEvent class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxWindowCreateEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
- """__init__(self, Window win=None) -> WindowCreateEvent"""
- newobj = _core_.new_WindowCreateEvent(*args, **kwargs)
+ """__init__(self, wxWindow win=None) -> wxWindowCreateEvent"""
+ newobj = __core.new_wxWindowCreateEvent(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
def GetWindow(*args, **kwargs):
- """GetWindow(self) -> Window"""
- return _core_.WindowCreateEvent_GetWindow(*args, **kwargs)
+ """GetWindow(self) -> wxWindow"""
+ return __core.wxWindowCreateEvent_GetWindow(*args, **kwargs)
-class WindowCreateEventPtr(WindowCreateEvent):
+class wxWindowCreateEventPtr(wxWindowCreateEvent):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = WindowCreateEvent
-_core_.WindowCreateEvent_swigregister(WindowCreateEventPtr)
+ self.__class__ = wxWindowCreateEvent
+__core.wxWindowCreateEvent_swigregister(wxWindowCreateEventPtr)
-class WindowDestroyEvent(CommandEvent):
+class wxWindowDestroyEvent(wxCommandEvent):
+ """Proxy of C++ wxWindowDestroyEvent class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxWindowDestroyEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
- """__init__(self, Window win=None) -> WindowDestroyEvent"""
- newobj = _core_.new_WindowDestroyEvent(*args, **kwargs)
+ """__init__(self, wxWindow win=None) -> wxWindowDestroyEvent"""
+ newobj = __core.new_wxWindowDestroyEvent(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
def GetWindow(*args, **kwargs):
- """GetWindow(self) -> Window"""
- return _core_.WindowDestroyEvent_GetWindow(*args, **kwargs)
+ """GetWindow(self) -> wxWindow"""
+ return __core.wxWindowDestroyEvent_GetWindow(*args, **kwargs)
-class WindowDestroyEventPtr(WindowDestroyEvent):
+class wxWindowDestroyEventPtr(wxWindowDestroyEvent):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = WindowDestroyEvent
-_core_.WindowDestroyEvent_swigregister(WindowDestroyEventPtr)
+ self.__class__ = wxWindowDestroyEvent
+__core.wxWindowDestroyEvent_swigregister(wxWindowDestroyEventPtr)
#---------------------------------------------------------------------------
-class ContextMenuEvent(CommandEvent):
+class wxContextMenuEvent(wxCommandEvent):
+ """Proxy of C++ wxContextMenuEvent class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxContextMenuEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
- """__init__(self, wxEventType type=wxEVT_NULL, int winid=0, Point pt=DefaultPosition) -> ContextMenuEvent"""
- newobj = _core_.new_ContextMenuEvent(*args, **kwargs)
+ """__init__(self, wxEventType type=wxEVT_NULL, int winid=0, wxPoint pt=wxDefaultPosition) -> wxContextMenuEvent"""
+ newobj = __core.new_wxContextMenuEvent(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
def GetPosition(*args, **kwargs):
- """GetPosition(self) -> Point"""
- return _core_.ContextMenuEvent_GetPosition(*args, **kwargs)
+ """GetPosition(self) -> wxPoint"""
+ return __core.wxContextMenuEvent_GetPosition(*args, **kwargs)
def SetPosition(*args, **kwargs):
- """SetPosition(self, Point pos)"""
- return _core_.ContextMenuEvent_SetPosition(*args, **kwargs)
+ """SetPosition(self, wxPoint pos)"""
+ return __core.wxContextMenuEvent_SetPosition(*args, **kwargs)
-class ContextMenuEventPtr(ContextMenuEvent):
+class wxContextMenuEventPtr(wxContextMenuEvent):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = ContextMenuEvent
-_core_.ContextMenuEvent_swigregister(ContextMenuEventPtr)
+ self.__class__ = wxContextMenuEvent
+__core.wxContextMenuEvent_swigregister(wxContextMenuEventPtr)
#---------------------------------------------------------------------------
-IDLE_PROCESS_ALL = _core_.IDLE_PROCESS_ALL
-IDLE_PROCESS_SPECIFIED = _core_.IDLE_PROCESS_SPECIFIED
-class IdleEvent(Event):
+wxIDLE_PROCESS_ALL = __core.wxIDLE_PROCESS_ALL
+wxIDLE_PROCESS_SPECIFIED = __core.wxIDLE_PROCESS_SPECIFIED
+class wxIdleEvent(wxEvent):
+ """Proxy of C++ wxIdleEvent class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxIdleEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
- """__init__(self) -> IdleEvent"""
- newobj = _core_.new_IdleEvent(*args, **kwargs)
+ """__init__(self) -> wxIdleEvent"""
+ newobj = __core.new_wxIdleEvent(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
def RequestMore(*args, **kwargs):
"""RequestMore(self, bool needMore=True)"""
- return _core_.IdleEvent_RequestMore(*args, **kwargs)
+ return __core.wxIdleEvent_RequestMore(*args, **kwargs)
def MoreRequested(*args, **kwargs):
"""MoreRequested(self) -> bool"""
- return _core_.IdleEvent_MoreRequested(*args, **kwargs)
+ return __core.wxIdleEvent_MoreRequested(*args, **kwargs)
def SetMode(*args, **kwargs):
"""SetMode(int mode)"""
- return _core_.IdleEvent_SetMode(*args, **kwargs)
+ return __core.wxIdleEvent_SetMode(*args, **kwargs)
SetMode = staticmethod(SetMode)
def GetMode(*args, **kwargs):
"""GetMode() -> int"""
- return _core_.IdleEvent_GetMode(*args, **kwargs)
+ return __core.wxIdleEvent_GetMode(*args, **kwargs)
GetMode = staticmethod(GetMode)
def CanSend(*args, **kwargs):
- """CanSend(Window win) -> bool"""
- return _core_.IdleEvent_CanSend(*args, **kwargs)
+ """CanSend(wxWindow win) -> bool"""
+ return __core.wxIdleEvent_CanSend(*args, **kwargs)
CanSend = staticmethod(CanSend)
-class IdleEventPtr(IdleEvent):
+class wxIdleEventPtr(wxIdleEvent):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = IdleEvent
-_core_.IdleEvent_swigregister(IdleEventPtr)
+ self.__class__ = wxIdleEvent
+__core.wxIdleEvent_swigregister(wxIdleEventPtr)
-def IdleEvent_SetMode(*args, **kwargs):
- """IdleEvent_SetMode(int mode)"""
- return _core_.IdleEvent_SetMode(*args, **kwargs)
+def wxIdleEvent_SetMode(*args, **kwargs):
+ """wxIdleEvent_SetMode(int mode)"""
+ return __core.wxIdleEvent_SetMode(*args, **kwargs)
-def IdleEvent_GetMode(*args, **kwargs):
- """IdleEvent_GetMode() -> int"""
- return _core_.IdleEvent_GetMode(*args, **kwargs)
+def wxIdleEvent_GetMode(*args, **kwargs):
+ """wxIdleEvent_GetMode() -> int"""
+ return __core.wxIdleEvent_GetMode(*args, **kwargs)
-def IdleEvent_CanSend(*args, **kwargs):
- """IdleEvent_CanSend(Window win) -> bool"""
- return _core_.IdleEvent_CanSend(*args, **kwargs)
+def wxIdleEvent_CanSend(*args, **kwargs):
+ """wxIdleEvent_CanSend(wxWindow win) -> bool"""
+ return __core.wxIdleEvent_CanSend(*args, **kwargs)
#---------------------------------------------------------------------------
-class PyEvent(Event):
+class wxPyEvent(wxEvent):
+ """Proxy of C++ wxPyEvent class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxPyEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
- """__init__(self, int winid=0, wxEventType commandType=wxEVT_NULL) -> PyEvent"""
- newobj = _core_.new_PyEvent(*args, **kwargs)
+ """__init__(self, int winid=0, wxEventType commandType=wxEVT_NULL) -> wxPyEvent"""
+ newobj = __core.new_wxPyEvent(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
self.SetSelf(self)
- def __del__(self, destroy=_core_.delete_PyEvent):
+ def __del__(self, destroy=__core.delete_wxPyEvent):
"""__del__(self)"""
try:
if self.thisown: destroy(self)
def SetSelf(*args, **kwargs):
"""SetSelf(self, PyObject self)"""
- return _core_.PyEvent_SetSelf(*args, **kwargs)
+ return __core.wxPyEvent_SetSelf(*args, **kwargs)
def GetSelf(*args, **kwargs):
"""GetSelf(self) -> PyObject"""
- return _core_.PyEvent_GetSelf(*args, **kwargs)
+ return __core.wxPyEvent_GetSelf(*args, **kwargs)
-class PyEventPtr(PyEvent):
+class wxPyEventPtr(wxPyEvent):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = PyEvent
-_core_.PyEvent_swigregister(PyEventPtr)
+ self.__class__ = wxPyEvent
+__core.wxPyEvent_swigregister(wxPyEventPtr)
-class PyCommandEvent(CommandEvent):
+class wxPyCommandEvent(wxCommandEvent):
+ """Proxy of C++ wxPyCommandEvent class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxPyCommandEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
- """__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> PyCommandEvent"""
- newobj = _core_.new_PyCommandEvent(*args, **kwargs)
+ """__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> wxPyCommandEvent"""
+ newobj = __core.new_wxPyCommandEvent(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
self.SetSelf(self)
- def __del__(self, destroy=_core_.delete_PyCommandEvent):
+ def __del__(self, destroy=__core.delete_wxPyCommandEvent):
"""__del__(self)"""
try:
if self.thisown: destroy(self)
def SetSelf(*args, **kwargs):
"""SetSelf(self, PyObject self)"""
- return _core_.PyCommandEvent_SetSelf(*args, **kwargs)
+ return __core.wxPyCommandEvent_SetSelf(*args, **kwargs)
def GetSelf(*args, **kwargs):
"""GetSelf(self) -> PyObject"""
- return _core_.PyCommandEvent_GetSelf(*args, **kwargs)
+ return __core.wxPyCommandEvent_GetSelf(*args, **kwargs)
-class PyCommandEventPtr(PyCommandEvent):
+class wxPyCommandEventPtr(wxPyCommandEvent):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = PyCommandEvent
-_core_.PyCommandEvent_swigregister(PyCommandEventPtr)
+ self.__class__ = wxPyCommandEvent
+__core.wxPyCommandEvent_swigregister(wxPyCommandEventPtr)
+
+class wxDateEvent(wxCommandEvent):
+ """Proxy of C++ wxDateEvent class"""
+ def __repr__(self):
+ return "<%s.%s; proxy of C++ wxDateEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
+ def __init__(self, *args, **kwargs):
+ """__init__(self, wxWindow win, wxDateTime dt, wxEventType type) -> wxDateEvent"""
+ newobj = __core.new_wxDateEvent(*args, **kwargs)
+ self.this = newobj.this
+ self.thisown = 1
+ del newobj.thisown
+ def GetDate(*args, **kwargs):
+ """GetDate(self) -> wxDateTime"""
+ return __core.wxDateEvent_GetDate(*args, **kwargs)
+
+ def SetDate(*args, **kwargs):
+ """SetDate(self, wxDateTime date)"""
+ return __core.wxDateEvent_SetDate(*args, **kwargs)
+
+
+class wxDateEventPtr(wxDateEvent):
+ def __init__(self, this):
+ self.this = this
+ if not hasattr(self,"thisown"): self.thisown = 0
+ self.__class__ = wxDateEvent
+__core.wxDateEvent_swigregister(wxDateEventPtr)
+
+wxEVT_DATE_CHANGED = __core.wxEVT_DATE_CHANGED
+EVT_DATE_CHANGED = wx.PyEventBinder( wxEVT_DATE_CHANGED, 1 )
#---------------------------------------------------------------------------
-PYAPP_ASSERT_SUPPRESS = _core_.PYAPP_ASSERT_SUPPRESS
-PYAPP_ASSERT_EXCEPTION = _core_.PYAPP_ASSERT_EXCEPTION
-PYAPP_ASSERT_DIALOG = _core_.PYAPP_ASSERT_DIALOG
-PYAPP_ASSERT_LOG = _core_.PYAPP_ASSERT_LOG
-PRINT_WINDOWS = _core_.PRINT_WINDOWS
-PRINT_POSTSCRIPT = _core_.PRINT_POSTSCRIPT
-class PyApp(EvtHandler):
+wxPYAPP_ASSERT_SUPPRESS = __core.wxPYAPP_ASSERT_SUPPRESS
+wxPYAPP_ASSERT_EXCEPTION = __core.wxPYAPP_ASSERT_EXCEPTION
+wxPYAPP_ASSERT_DIALOG = __core.wxPYAPP_ASSERT_DIALOG
+wxPYAPP_ASSERT_LOG = __core.wxPYAPP_ASSERT_LOG
+wxPRINT_WINDOWS = __core.wxPRINT_WINDOWS
+wxPRINT_POSTSCRIPT = __core.wxPRINT_POSTSCRIPT
+class wxPyApp(wxEvtHandler):
"""
The ``wx.PyApp`` class is an *implementation detail*, please use the
`wx.App` class (or some other derived class) instead.
return "<%s.%s; proxy of C++ wxPyApp instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
"""
- __init__(self) -> PyApp
+ __init__(self) -> wxPyApp
Create a new application object, starting the bootstrap process.
"""
- newobj = _core_.new_PyApp(*args, **kwargs)
+ newobj = __core.new_wxPyApp(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
self._setCallbackInfo(self, PyApp)
self._setOORInfo(self)
- def __del__(self, destroy=_core_.delete_PyApp):
+ def __del__(self, destroy=__core.delete_wxPyApp):
"""__del__(self)"""
try:
if self.thisown: destroy(self)
def _setCallbackInfo(*args, **kwargs):
"""_setCallbackInfo(self, PyObject self, PyObject _class)"""
- return _core_.PyApp__setCallbackInfo(*args, **kwargs)
+ return __core.wxPyApp__setCallbackInfo(*args, **kwargs)
def GetAppName(*args, **kwargs):
"""
- GetAppName(self) -> String
+ GetAppName(self) -> wxString
Get the application name.
"""
- return _core_.PyApp_GetAppName(*args, **kwargs)
+ return __core.wxPyApp_GetAppName(*args, **kwargs)
def SetAppName(*args, **kwargs):
"""
- SetAppName(self, String name)
+ SetAppName(self, wxString name)
Set the application name. This value may be used automatically by
`wx.Config` and such.
"""
- return _core_.PyApp_SetAppName(*args, **kwargs)
+ return __core.wxPyApp_SetAppName(*args, **kwargs)
def GetClassName(*args, **kwargs):
"""
- GetClassName(self) -> String
+ GetClassName(self) -> wxString
Get the application's class name.
"""
- return _core_.PyApp_GetClassName(*args, **kwargs)
+ return __core.wxPyApp_GetClassName(*args, **kwargs)
def SetClassName(*args, **kwargs):
"""
- SetClassName(self, String name)
+ SetClassName(self, wxString name)
Set the application's class name. This value may be used for
X-resources if applicable for the platform
"""
- return _core_.PyApp_SetClassName(*args, **kwargs)
+ return __core.wxPyApp_SetClassName(*args, **kwargs)
def GetVendorName(*args, **kwargs):
"""
- GetVendorName(self) -> String
+ GetVendorName(self) -> wxString
Get the application's vendor name.
"""
- return _core_.PyApp_GetVendorName(*args, **kwargs)
+ return __core.wxPyApp_GetVendorName(*args, **kwargs)
def SetVendorName(*args, **kwargs):
"""
- SetVendorName(self, String name)
+ SetVendorName(self, wxString name)
Set the application's vendor name. This value may be used
automatically by `wx.Config` and such.
"""
- return _core_.PyApp_SetVendorName(*args, **kwargs)
+ return __core.wxPyApp_SetVendorName(*args, **kwargs)
def GetTraits(*args, **kwargs):
"""
:todo: Add support for overriding CreateAppTraits in wxPython.
"""
- return _core_.PyApp_GetTraits(*args, **kwargs)
+ return __core.wxPyApp_GetTraits(*args, **kwargs)
def ProcessPendingEvents(*args, **kwargs):
"""
call this function to process posted events. This normally happens
during each event loop iteration.
"""
- return _core_.PyApp_ProcessPendingEvents(*args, **kwargs)
+ return __core.wxPyApp_ProcessPendingEvents(*args, **kwargs)
def Yield(*args, **kwargs):
"""
:see: `wx.Yield`, `wx.YieldIfNeeded`, `wx.SafeYield`
"""
- return _core_.PyApp_Yield(*args, **kwargs)
+ return __core.wxPyApp_Yield(*args, **kwargs)
def WakeUpIdle(*args, **kwargs):
"""
Make sure that idle events are sent again.
:see: `wx.WakeUpIdle`
"""
- return _core_.PyApp_WakeUpIdle(*args, **kwargs)
+ return __core.wxPyApp_WakeUpIdle(*args, **kwargs)
+
+ def IsMainLoopRunning(*args, **kwargs):
+ """
+ IsMainLoopRunning() -> bool
+
+ Returns True if we're running the main loop, i.e. if the events can
+ currently be dispatched.
+ """
+ return __core.wxPyApp_IsMainLoopRunning(*args, **kwargs)
+ IsMainLoopRunning = staticmethod(IsMainLoopRunning)
def MainLoop(*args, **kwargs):
"""
MainLoop(self) -> int
Execute the main GUI loop, the function doesn't normally return until
all top level windows have been closed and destroyed.
"""
- return _core_.PyApp_MainLoop(*args, **kwargs)
+ return __core.wxPyApp_MainLoop(*args, **kwargs)
def Exit(*args, **kwargs):
"""
Exit the main loop thus terminating the application.
:see: `wx.Exit`
"""
- return _core_.PyApp_Exit(*args, **kwargs)
+ return __core.wxPyApp_Exit(*args, **kwargs)
def ExitMainLoop(*args, **kwargs):
"""
Exit the main GUI loop during the next iteration of the main
loop, (i.e. it does not stop the program immediately!)
"""
- return _core_.PyApp_ExitMainLoop(*args, **kwargs)
+ return __core.wxPyApp_ExitMainLoop(*args, **kwargs)
def Pending(*args, **kwargs):
"""
Returns True if there are unprocessed events in the event queue.
"""
- return _core_.PyApp_Pending(*args, **kwargs)
+ return __core.wxPyApp_Pending(*args, **kwargs)
def Dispatch(*args, **kwargs):
"""
Process the first event in the event queue (blocks until an event
appears if there are none currently)
"""
- return _core_.PyApp_Dispatch(*args, **kwargs)
+ return __core.wxPyApp_Dispatch(*args, **kwargs)
def ProcessIdle(*args, **kwargs):
"""
no pending events) and sends a `wx.IdleEvent` to all interested
parties. Returns True if more idle events are needed, False if not.
"""
- return _core_.PyApp_ProcessIdle(*args, **kwargs)
+ return __core.wxPyApp_ProcessIdle(*args, **kwargs)
def SendIdleEvents(*args, **kwargs):
"""
- SendIdleEvents(self, Window win, IdleEvent event) -> bool
+ SendIdleEvents(self, wxWindow win, wxIdleEvent event) -> bool
Send idle event to window and all subwindows. Returns True if more
idle time is requested.
"""
- return _core_.PyApp_SendIdleEvents(*args, **kwargs)
+ return __core.wxPyApp_SendIdleEvents(*args, **kwargs)
def IsActive(*args, **kwargs):
"""
Return True if our app has focus.
"""
- return _core_.PyApp_IsActive(*args, **kwargs)
+ return __core.wxPyApp_IsActive(*args, **kwargs)
def SetTopWindow(*args, **kwargs):
"""
- SetTopWindow(self, Window win)
+ SetTopWindow(self, wxWindow win)
Set the *main* top level window
"""
- return _core_.PyApp_SetTopWindow(*args, **kwargs)
+ return __core.wxPyApp_SetTopWindow(*args, **kwargs)
def GetTopWindow(*args, **kwargs):
"""
- GetTopWindow(self) -> Window
+ GetTopWindow(self) -> wxWindow
Return the *main* top level window (if it hadn't been set previously
with SetTopWindow(), will return just some top level window and, if
there not any, will return None)
"""
- return _core_.PyApp_GetTopWindow(*args, **kwargs)
+ return __core.wxPyApp_GetTopWindow(*args, **kwargs)
def SetExitOnFrameDelete(*args, **kwargs):
"""
SetExitOnFrameDelete(False)), you'll have to call ExitMainLoop()
explicitly from somewhere.
"""
- return _core_.PyApp_SetExitOnFrameDelete(*args, **kwargs)
+ return __core.wxPyApp_SetExitOnFrameDelete(*args, **kwargs)
def GetExitOnFrameDelete(*args, **kwargs):
"""
Get the current exit behaviour setting.
"""
- return _core_.PyApp_GetExitOnFrameDelete(*args, **kwargs)
+ return __core.wxPyApp_GetExitOnFrameDelete(*args, **kwargs)
def SetUseBestVisual(*args, **kwargs):
"""
Set whether the app should try to use the best available visual on
systems where more than one is available, (Sun, SGI, XFree86 4, etc.)
"""
- return _core_.PyApp_SetUseBestVisual(*args, **kwargs)
+ return __core.wxPyApp_SetUseBestVisual(*args, **kwargs)
def GetUseBestVisual(*args, **kwargs):
"""
Get current UseBestVisual setting.
"""
- return _core_.PyApp_GetUseBestVisual(*args, **kwargs)
+ return __core.wxPyApp_GetUseBestVisual(*args, **kwargs)
def SetPrintMode(*args, **kwargs):
"""SetPrintMode(self, int mode)"""
- return _core_.PyApp_SetPrintMode(*args, **kwargs)
+ return __core.wxPyApp_SetPrintMode(*args, **kwargs)
def GetPrintMode(*args, **kwargs):
"""GetPrintMode(self) -> int"""
- return _core_.PyApp_GetPrintMode(*args, **kwargs)
+ return __core.wxPyApp_GetPrintMode(*args, **kwargs)
def SetAssertMode(*args, **kwargs):
"""
Set the OnAssert behaviour for debug and hybrid builds.
"""
- return _core_.PyApp_SetAssertMode(*args, **kwargs)
+ return __core.wxPyApp_SetAssertMode(*args, **kwargs)
def GetAssertMode(*args, **kwargs):
"""
Get the current OnAssert behaviour setting.
"""
- return _core_.PyApp_GetAssertMode(*args, **kwargs)
+ return __core.wxPyApp_GetAssertMode(*args, **kwargs)
def GetMacSupportPCMenuShortcuts(*args, **kwargs):
"""GetMacSupportPCMenuShortcuts() -> bool"""
- return _core_.PyApp_GetMacSupportPCMenuShortcuts(*args, **kwargs)
+ return __core.wxPyApp_GetMacSupportPCMenuShortcuts(*args, **kwargs)
GetMacSupportPCMenuShortcuts = staticmethod(GetMacSupportPCMenuShortcuts)
def GetMacAboutMenuItemId(*args, **kwargs):
"""GetMacAboutMenuItemId() -> long"""
- return _core_.PyApp_GetMacAboutMenuItemId(*args, **kwargs)
+ return __core.wxPyApp_GetMacAboutMenuItemId(*args, **kwargs)
GetMacAboutMenuItemId = staticmethod(GetMacAboutMenuItemId)
def GetMacPreferencesMenuItemId(*args, **kwargs):
"""GetMacPreferencesMenuItemId() -> long"""
- return _core_.PyApp_GetMacPreferencesMenuItemId(*args, **kwargs)
+ return __core.wxPyApp_GetMacPreferencesMenuItemId(*args, **kwargs)
GetMacPreferencesMenuItemId = staticmethod(GetMacPreferencesMenuItemId)
def GetMacExitMenuItemId(*args, **kwargs):
"""GetMacExitMenuItemId() -> long"""
- return _core_.PyApp_GetMacExitMenuItemId(*args, **kwargs)
+ return __core.wxPyApp_GetMacExitMenuItemId(*args, **kwargs)
GetMacExitMenuItemId = staticmethod(GetMacExitMenuItemId)
def GetMacHelpMenuTitleName(*args, **kwargs):
- """GetMacHelpMenuTitleName() -> String"""
- return _core_.PyApp_GetMacHelpMenuTitleName(*args, **kwargs)
+ """GetMacHelpMenuTitleName() -> wxString"""
+ return __core.wxPyApp_GetMacHelpMenuTitleName(*args, **kwargs)
GetMacHelpMenuTitleName = staticmethod(GetMacHelpMenuTitleName)
def SetMacSupportPCMenuShortcuts(*args, **kwargs):
"""SetMacSupportPCMenuShortcuts(bool val)"""
- return _core_.PyApp_SetMacSupportPCMenuShortcuts(*args, **kwargs)
+ return __core.wxPyApp_SetMacSupportPCMenuShortcuts(*args, **kwargs)
SetMacSupportPCMenuShortcuts = staticmethod(SetMacSupportPCMenuShortcuts)
def SetMacAboutMenuItemId(*args, **kwargs):
"""SetMacAboutMenuItemId(long val)"""
- return _core_.PyApp_SetMacAboutMenuItemId(*args, **kwargs)
+ return __core.wxPyApp_SetMacAboutMenuItemId(*args, **kwargs)
SetMacAboutMenuItemId = staticmethod(SetMacAboutMenuItemId)
def SetMacPreferencesMenuItemId(*args, **kwargs):
"""SetMacPreferencesMenuItemId(long val)"""
- return _core_.PyApp_SetMacPreferencesMenuItemId(*args, **kwargs)
+ return __core.wxPyApp_SetMacPreferencesMenuItemId(*args, **kwargs)
SetMacPreferencesMenuItemId = staticmethod(SetMacPreferencesMenuItemId)
def SetMacExitMenuItemId(*args, **kwargs):
"""SetMacExitMenuItemId(long val)"""
- return _core_.PyApp_SetMacExitMenuItemId(*args, **kwargs)
+ return __core.wxPyApp_SetMacExitMenuItemId(*args, **kwargs)
SetMacExitMenuItemId = staticmethod(SetMacExitMenuItemId)
def SetMacHelpMenuTitleName(*args, **kwargs):
- """SetMacHelpMenuTitleName(String val)"""
- return _core_.PyApp_SetMacHelpMenuTitleName(*args, **kwargs)
+ """SetMacHelpMenuTitleName(wxString val)"""
+ return __core.wxPyApp_SetMacHelpMenuTitleName(*args, **kwargs)
SetMacHelpMenuTitleName = staticmethod(SetMacHelpMenuTitleName)
def _BootstrapApp(*args, **kwargs):
For internal use only
"""
- return _core_.PyApp__BootstrapApp(*args, **kwargs)
+ return __core.wxPyApp__BootstrapApp(*args, **kwargs)
def GetComCtl32Version(*args, **kwargs):
"""
Returns 400, 470, 471, etc. for comctl32.dll 4.00, 4.70, 4.71 or 0 if
it wasn't found at all. Raises an exception on non-Windows platforms.
"""
- return _core_.PyApp_GetComCtl32Version(*args, **kwargs)
+ return __core.wxPyApp_GetComCtl32Version(*args, **kwargs)
GetComCtl32Version = staticmethod(GetComCtl32Version)
-class PyAppPtr(PyApp):
+class wxPyAppPtr(wxPyApp):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = PyApp
-_core_.PyApp_swigregister(PyAppPtr)
+ self.__class__ = wxPyApp
+__core.wxPyApp_swigregister(wxPyAppPtr)
-def PyApp_GetMacSupportPCMenuShortcuts(*args, **kwargs):
- """PyApp_GetMacSupportPCMenuShortcuts() -> bool"""
- return _core_.PyApp_GetMacSupportPCMenuShortcuts(*args, **kwargs)
+def wxPyApp_IsMainLoopRunning(*args, **kwargs):
+ """
+ wxPyApp_IsMainLoopRunning() -> bool
-def PyApp_GetMacAboutMenuItemId(*args, **kwargs):
- """PyApp_GetMacAboutMenuItemId() -> long"""
- return _core_.PyApp_GetMacAboutMenuItemId(*args, **kwargs)
+ Returns True if we're running the main loop, i.e. if the events can
+ currently be dispatched.
+ """
+ return __core.wxPyApp_IsMainLoopRunning(*args, **kwargs)
-def PyApp_GetMacPreferencesMenuItemId(*args, **kwargs):
- """PyApp_GetMacPreferencesMenuItemId() -> long"""
- return _core_.PyApp_GetMacPreferencesMenuItemId(*args, **kwargs)
+def wxPyApp_GetMacSupportPCMenuShortcuts(*args, **kwargs):
+ """wxPyApp_GetMacSupportPCMenuShortcuts() -> bool"""
+ return __core.wxPyApp_GetMacSupportPCMenuShortcuts(*args, **kwargs)
-def PyApp_GetMacExitMenuItemId(*args, **kwargs):
- """PyApp_GetMacExitMenuItemId() -> long"""
- return _core_.PyApp_GetMacExitMenuItemId(*args, **kwargs)
+def wxPyApp_GetMacAboutMenuItemId(*args, **kwargs):
+ """wxPyApp_GetMacAboutMenuItemId() -> long"""
+ return __core.wxPyApp_GetMacAboutMenuItemId(*args, **kwargs)
-def PyApp_GetMacHelpMenuTitleName(*args, **kwargs):
- """PyApp_GetMacHelpMenuTitleName() -> String"""
- return _core_.PyApp_GetMacHelpMenuTitleName(*args, **kwargs)
+def wxPyApp_GetMacPreferencesMenuItemId(*args, **kwargs):
+ """wxPyApp_GetMacPreferencesMenuItemId() -> long"""
+ return __core.wxPyApp_GetMacPreferencesMenuItemId(*args, **kwargs)
-def PyApp_SetMacSupportPCMenuShortcuts(*args, **kwargs):
- """PyApp_SetMacSupportPCMenuShortcuts(bool val)"""
- return _core_.PyApp_SetMacSupportPCMenuShortcuts(*args, **kwargs)
+def wxPyApp_GetMacExitMenuItemId(*args, **kwargs):
+ """wxPyApp_GetMacExitMenuItemId() -> long"""
+ return __core.wxPyApp_GetMacExitMenuItemId(*args, **kwargs)
-def PyApp_SetMacAboutMenuItemId(*args, **kwargs):
- """PyApp_SetMacAboutMenuItemId(long val)"""
- return _core_.PyApp_SetMacAboutMenuItemId(*args, **kwargs)
+def wxPyApp_GetMacHelpMenuTitleName(*args, **kwargs):
+ """wxPyApp_GetMacHelpMenuTitleName() -> wxString"""
+ return __core.wxPyApp_GetMacHelpMenuTitleName(*args, **kwargs)
-def PyApp_SetMacPreferencesMenuItemId(*args, **kwargs):
- """PyApp_SetMacPreferencesMenuItemId(long val)"""
- return _core_.PyApp_SetMacPreferencesMenuItemId(*args, **kwargs)
+def wxPyApp_SetMacSupportPCMenuShortcuts(*args, **kwargs):
+ """wxPyApp_SetMacSupportPCMenuShortcuts(bool val)"""
+ return __core.wxPyApp_SetMacSupportPCMenuShortcuts(*args, **kwargs)
-def PyApp_SetMacExitMenuItemId(*args, **kwargs):
- """PyApp_SetMacExitMenuItemId(long val)"""
- return _core_.PyApp_SetMacExitMenuItemId(*args, **kwargs)
+def wxPyApp_SetMacAboutMenuItemId(*args, **kwargs):
+ """wxPyApp_SetMacAboutMenuItemId(long val)"""
+ return __core.wxPyApp_SetMacAboutMenuItemId(*args, **kwargs)
-def PyApp_SetMacHelpMenuTitleName(*args, **kwargs):
- """PyApp_SetMacHelpMenuTitleName(String val)"""
- return _core_.PyApp_SetMacHelpMenuTitleName(*args, **kwargs)
+def wxPyApp_SetMacPreferencesMenuItemId(*args, **kwargs):
+ """wxPyApp_SetMacPreferencesMenuItemId(long val)"""
+ return __core.wxPyApp_SetMacPreferencesMenuItemId(*args, **kwargs)
-def PyApp_GetComCtl32Version(*args, **kwargs):
+def wxPyApp_SetMacExitMenuItemId(*args, **kwargs):
+ """wxPyApp_SetMacExitMenuItemId(long val)"""
+ return __core.wxPyApp_SetMacExitMenuItemId(*args, **kwargs)
+
+def wxPyApp_SetMacHelpMenuTitleName(*args, **kwargs):
+ """wxPyApp_SetMacHelpMenuTitleName(wxString val)"""
+ return __core.wxPyApp_SetMacHelpMenuTitleName(*args, **kwargs)
+
+def wxPyApp_GetComCtl32Version(*args, **kwargs):
"""
- PyApp_GetComCtl32Version() -> int
+ wxPyApp_GetComCtl32Version() -> int
Returns 400, 470, 471, etc. for comctl32.dll 4.00, 4.70, 4.71 or 0 if
it wasn't found at all. Raises an exception on non-Windows platforms.
"""
- return _core_.PyApp_GetComCtl32Version(*args, **kwargs)
+ return __core.wxPyApp_GetComCtl32Version(*args, **kwargs)
#---------------------------------------------------------------------------
-def Exit(*args, **kwargs):
+def wxExit(*args, **kwargs):
"""
- Exit()
+ wxExit()
Force an exit of the application. Convenience for wx.GetApp().Exit()
"""
- return _core_.Exit(*args, **kwargs)
+ return __core.wxExit(*args, **kwargs)
-def Yield(*args, **kwargs):
+def wxYield(*args, **kwargs):
"""
- Yield() -> bool
+ wxYield() -> bool
Yield to other apps/messages. Convenience for wx.GetApp().Yield()
"""
- return _core_.Yield(*args, **kwargs)
+ return __core.wxYield(*args, **kwargs)
-def YieldIfNeeded(*args, **kwargs):
+def wxYieldIfNeeded(*args, **kwargs):
"""
- YieldIfNeeded() -> bool
+ wxYieldIfNeeded() -> bool
Yield to other apps/messages. Convenience for wx.GetApp().Yield(True)
"""
- return _core_.YieldIfNeeded(*args, **kwargs)
+ return __core.wxYieldIfNeeded(*args, **kwargs)
-def SafeYield(*args, **kwargs):
+def wxSafeYield(*args, **kwargs):
"""
- SafeYield(Window win=None, bool onlyIfNeeded=False) -> bool
+ wxSafeYield(wxWindow win=None, bool onlyIfNeeded=False) -> bool
This function is similar to `wx.Yield`, except that it disables the
user input to all program windows before calling `wx.Yield` and
:Returns: the result of the call to `wx.Yield`.
"""
- return _core_.SafeYield(*args, **kwargs)
+ return __core.wxSafeYield(*args, **kwargs)
-def WakeUpIdle(*args, **kwargs):
+def wxWakeUpIdle(*args, **kwargs):
"""
- WakeUpIdle()
+ wxWakeUpIdle()
Cause the message queue to become empty again, so idle events will be
sent.
"""
- return _core_.WakeUpIdle(*args, **kwargs)
+ return __core.wxWakeUpIdle(*args, **kwargs)
-def PostEvent(*args, **kwargs):
+def wxPostEvent(*args, **kwargs):
"""
- PostEvent(EvtHandler dest, Event event)
+ wxPostEvent(wxEvtHandler dest, wxEvent event)
Send an event to a window or other wx.EvtHandler to be processed
later.
"""
- return _core_.PostEvent(*args, **kwargs)
+ return __core.wxPostEvent(*args, **kwargs)
-def App_CleanUp(*args, **kwargs):
+def wxApp_CleanUp(*args, **kwargs):
"""
- App_CleanUp()
+ wxApp_CleanUp()
For internal use only, it is used to cleanup after wxWidgets when
Python shuts down.
"""
- return _core_.App_CleanUp(*args, **kwargs)
+ return __core.wxApp_CleanUp(*args, **kwargs)
def GetApp(*args, **kwargs):
"""
- GetApp() -> PyApp
+ GetApp() -> wxPyApp
Return a reference to the current wx.App object.
"""
- return _core_.GetApp(*args, **kwargs)
+ return __core.GetApp(*args, **kwargs)
+
+def wxSetDefaultPyEncoding(*args, **kwargs):
+ """
+ SetDefaultPyEncoding(string encoding)
+
+ Sets the encoding that wxPython will use when it needs to convert a
+ Python string or unicode object to or from a wxString.
+
+ The default encoding is the value of ``locale.getdefaultlocale()[1]``
+ but please be aware that the default encoding within the same locale
+ may be slightly different on different platforms. For example, please
+ see http://www.alanwood.net/demos/charsetdiffs.html for differences
+ between the common latin/roman encodings.
+ """
+ return __core.wxSetDefaultPyEncoding(*args, **kwargs)
+
+def wxGetDefaultPyEncoding(*args, **kwargs):
+ """
+ GetDefaultPyEncoding() -> string
+
+ Gets the current encoding that wxPython will use when it needs to
+ convert a Python string or unicode object to or from a wxString.
+ """
+ return __core.wxGetDefaultPyEncoding(*args, **kwargs)
#----------------------------------------------------------------------
class PyOnDemandOutputWindow:
if redirect:
self.RedirectStdio(filename)
+ # Use Python's install prefix as the default
+ wx.StandardPaths.Get().SetInstallPrefix(_sys.prefix)
+
# This finishes the initialization of wxWindows and then calls
# the OnInit that should be present in the derived class
self._BootstrapApp()
#---------------------------------------------------------------------------
-class AcceleratorEntry(object):
+class wxEventLoop(object):
+ """Proxy of C++ wxEventLoop class"""
+ def __repr__(self):
+ return "<%s.%s; proxy of C++ wxEventLoop instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
+ def __init__(self, *args, **kwargs):
+ """__init__(self) -> wxEventLoop"""
+ newobj = __core.new_wxEventLoop(*args, **kwargs)
+ self.this = newobj.this
+ self.thisown = 1
+ del newobj.thisown
+ def __del__(self, destroy=__core.delete_wxEventLoop):
+ """__del__(self)"""
+ try:
+ if self.thisown: destroy(self)
+ except: pass
+
+ def Run(*args, **kwargs):
+ """Run(self) -> int"""
+ return __core.wxEventLoop_Run(*args, **kwargs)
+
+ def Exit(*args, **kwargs):
+ """Exit(self, int rc=0)"""
+ return __core.wxEventLoop_Exit(*args, **kwargs)
+
+ def Pending(*args, **kwargs):
+ """Pending(self) -> bool"""
+ return __core.wxEventLoop_Pending(*args, **kwargs)
+
+ def Dispatch(*args, **kwargs):
+ """Dispatch(self) -> bool"""
+ return __core.wxEventLoop_Dispatch(*args, **kwargs)
+
+ def IsRunning(*args, **kwargs):
+ """IsRunning(self) -> bool"""
+ return __core.wxEventLoop_IsRunning(*args, **kwargs)
+
+ def GetActive(*args, **kwargs):
+ """GetActive() -> wxEventLoop"""
+ return __core.wxEventLoop_GetActive(*args, **kwargs)
+
+ GetActive = staticmethod(GetActive)
+ def SetActive(*args, **kwargs):
+ """SetActive(wxEventLoop loop)"""
+ return __core.wxEventLoop_SetActive(*args, **kwargs)
+
+ SetActive = staticmethod(SetActive)
+
+class wxEventLoopPtr(wxEventLoop):
+ def __init__(self, this):
+ self.this = this
+ if not hasattr(self,"thisown"): self.thisown = 0
+ self.__class__ = wxEventLoop
+__core.wxEventLoop_swigregister(wxEventLoopPtr)
+
+def wxEventLoop_GetActive(*args, **kwargs):
+ """wxEventLoop_GetActive() -> wxEventLoop"""
+ return __core.wxEventLoop_GetActive(*args, **kwargs)
+
+def wxEventLoop_SetActive(*args, **kwargs):
+ """wxEventLoop_SetActive(wxEventLoop loop)"""
+ return __core.wxEventLoop_SetActive(*args, **kwargs)
+
+#---------------------------------------------------------------------------
+
+class wxAcceleratorEntry(object):
"""
A class used to define items in an `wx.AcceleratorTable`. wxPython
programs can choose to use wx.AcceleratorEntry objects, but using a
return "<%s.%s; proxy of C++ wxAcceleratorEntry instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
"""
- __init__(self, int flags=0, int keyCode=0, int cmdID=0) -> AcceleratorEntry
+ __init__(self, int flags=0, int keyCode=0, int cmdID=0) -> wxAcceleratorEntry
Construct a wx.AcceleratorEntry.
"""
- newobj = _core_.new_AcceleratorEntry(*args, **kwargs)
+ newobj = __core.new_wxAcceleratorEntry(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
- def __del__(self, destroy=_core_.delete_AcceleratorEntry):
+ def __del__(self, destroy=__core.delete_wxAcceleratorEntry):
"""__del__(self)"""
try:
if self.thisown: destroy(self)
(Re)set the attributes of a wx.AcceleratorEntry.
:see `__init__`
"""
- return _core_.AcceleratorEntry_Set(*args, **kwargs)
+ return __core.wxAcceleratorEntry_Set(*args, **kwargs)
def GetFlags(*args, **kwargs):
"""
Get the AcceleratorEntry's flags.
"""
- return _core_.AcceleratorEntry_GetFlags(*args, **kwargs)
+ return __core.wxAcceleratorEntry_GetFlags(*args, **kwargs)
def GetKeyCode(*args, **kwargs):
"""
Get the AcceleratorEntry's keycode.
"""
- return _core_.AcceleratorEntry_GetKeyCode(*args, **kwargs)
+ return __core.wxAcceleratorEntry_GetKeyCode(*args, **kwargs)
def GetCommand(*args, **kwargs):
"""
Get the AcceleratorEntry's command ID.
"""
- return _core_.AcceleratorEntry_GetCommand(*args, **kwargs)
+ return __core.wxAcceleratorEntry_GetCommand(*args, **kwargs)
-class AcceleratorEntryPtr(AcceleratorEntry):
+class wxAcceleratorEntryPtr(wxAcceleratorEntry):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = AcceleratorEntry
-_core_.AcceleratorEntry_swigregister(AcceleratorEntryPtr)
+ self.__class__ = wxAcceleratorEntry
+__core.wxAcceleratorEntry_swigregister(wxAcceleratorEntryPtr)
-class AcceleratorTable(Object):
+class wxAcceleratorTable(wxObject):
"""
An accelerator table allows the application to specify a table of
keyboard shortcuts for menus or other commands. On Windows, menu or
:see: `wx.AcceleratorEntry`
"""
- newobj = _core_.new_AcceleratorTable(*args, **kwargs)
+ newobj = __core.new_wxAcceleratorTable(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
- def __del__(self, destroy=_core_.delete_AcceleratorTable):
+ def __del__(self, destroy=__core.delete_wxAcceleratorTable):
"""__del__(self)"""
try:
if self.thisown: destroy(self)
def Ok(*args, **kwargs):
"""Ok(self) -> bool"""
- return _core_.AcceleratorTable_Ok(*args, **kwargs)
+ return __core.wxAcceleratorTable_Ok(*args, **kwargs)
-class AcceleratorTablePtr(AcceleratorTable):
+class wxAcceleratorTablePtr(wxAcceleratorTable):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = AcceleratorTable
-_core_.AcceleratorTable_swigregister(AcceleratorTablePtr)
+ self.__class__ = wxAcceleratorTable
+__core.wxAcceleratorTable_swigregister(wxAcceleratorTablePtr)
-def GetAccelFromString(*args, **kwargs):
- """GetAccelFromString(String label) -> AcceleratorEntry"""
- return _core_.GetAccelFromString(*args, **kwargs)
+def wxGetAccelFromString(*args, **kwargs):
+ """wxGetAccelFromString(wxString label) -> wxAcceleratorEntry"""
+ return __core.wxGetAccelFromString(*args, **kwargs)
#---------------------------------------------------------------------------
-class VisualAttributes(object):
+class wxVisualAttributes(object):
"""struct containing all the visual attributes of a control"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxVisualAttributes instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
"""
- __init__(self) -> VisualAttributes
+ __init__(self) -> wxVisualAttributes
struct containing all the visual attributes of a control
"""
- newobj = _core_.new_VisualAttributes(*args, **kwargs)
+ newobj = __core.new_wxVisualAttributes(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
- def __del__(self, destroy=_core_.delete_VisualAttributes):
+ def __del__(self, destroy=__core.delete_wxVisualAttributes):
"""__del__(self)"""
try:
if self.thisown: destroy(self)
except: pass
- font = property(_core_.VisualAttributes_font_get, _core_.VisualAttributes_font_set)
- colFg = property(_core_.VisualAttributes_colFg_get, _core_.VisualAttributes_colFg_set)
- colBg = property(_core_.VisualAttributes_colBg_get, _core_.VisualAttributes_colBg_set)
+ font = property(__core.wxVisualAttributes_font_get, __core.wxVisualAttributes_font_set)
+ colFg = property(__core.wxVisualAttributes_colFg_get, __core.wxVisualAttributes_colFg_set)
+ colBg = property(__core.wxVisualAttributes_colBg_get, __core.wxVisualAttributes_colBg_set)
-class VisualAttributesPtr(VisualAttributes):
+class wxVisualAttributesPtr(wxVisualAttributes):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = VisualAttributes
-_core_.VisualAttributes_swigregister(VisualAttributesPtr)
-NullAcceleratorTable = cvar.NullAcceleratorTable
+ self.__class__ = wxVisualAttributes
+__core.wxVisualAttributes_swigregister(wxVisualAttributesPtr)
+wxNullAcceleratorTable = cvar.wxNullAcceleratorTable
PanelNameStr = cvar.PanelNameStr
-WINDOW_VARIANT_NORMAL = _core_.WINDOW_VARIANT_NORMAL
-WINDOW_VARIANT_SMALL = _core_.WINDOW_VARIANT_SMALL
-WINDOW_VARIANT_MINI = _core_.WINDOW_VARIANT_MINI
-WINDOW_VARIANT_LARGE = _core_.WINDOW_VARIANT_LARGE
-WINDOW_VARIANT_MAX = _core_.WINDOW_VARIANT_MAX
-class Window(EvtHandler):
+wxWINDOW_VARIANT_NORMAL = __core.wxWINDOW_VARIANT_NORMAL
+wxWINDOW_VARIANT_SMALL = __core.wxWINDOW_VARIANT_SMALL
+wxWINDOW_VARIANT_MINI = __core.wxWINDOW_VARIANT_MINI
+wxWINDOW_VARIANT_LARGE = __core.wxWINDOW_VARIANT_LARGE
+wxWINDOW_VARIANT_MAX = __core.wxWINDOW_VARIANT_MAX
+class wxWindow(wxEvtHandler):
"""
wx.Window is the base class for all windows and represents any visible
object on the screen. All controls, top level windows and so on are
return "<%s.%s; proxy of C++ wxWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
"""
- __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
- Size size=DefaultSize, long style=0, String name=PanelNameStr) -> Window
+ __init__(self, wxWindow parent, int id=-1, wxPoint pos=wxDefaultPosition,
+ wxSize size=wxDefaultSize, long style=0,
+ wxString name=PanelNameStr) -> wxWindow
Construct and show a generic Window.
"""
- newobj = _core_.new_Window(*args, **kwargs)
+ newobj = __core.new_wxWindow(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
def Create(*args, **kwargs):
"""
- Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
- Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
+ Create(self, wxWindow parent, int id=-1, wxPoint pos=wxDefaultPosition,
+ wxSize size=wxDefaultSize, long style=0,
+ wxString name=PanelNameStr) -> bool
Create the GUI part of the Window for 2-phase creation mode.
"""
- return _core_.Window_Create(*args, **kwargs)
+ return __core.wxWindow_Create(*args, **kwargs)
def Close(*args, **kwargs):
"""
however. If force is False (the default) then the window's close
handler will be allowed to veto the destruction of the window.
"""
- return _core_.Window_Close(*args, **kwargs)
+ return __core.wxWindow_Close(*args, **kwargs)
def Destroy(*args, **kwargs):
"""
Returns True if the window has either been successfully deleted, or it
has been added to the list of windows pending real deletion.
"""
- return _core_.Window_Destroy(*args, **kwargs)
+ return __core.wxWindow_Destroy(*args, **kwargs)
def DestroyChildren(*args, **kwargs):
"""
Destroys all children of a window. Called automatically by the
destructor.
"""
- return _core_.Window_DestroyChildren(*args, **kwargs)
+ return __core.wxWindow_DestroyChildren(*args, **kwargs)
def IsBeingDeleted(*args, **kwargs):
"""
Is the window in the process of being deleted?
"""
- return _core_.Window_IsBeingDeleted(*args, **kwargs)
+ return __core.wxWindow_IsBeingDeleted(*args, **kwargs)
def SetTitle(*args, **kwargs):
"""
- SetTitle(self, String title)
+ SetTitle(self, wxString title)
Sets the window's title. Applicable only to frames and dialogs.
"""
- return _core_.Window_SetTitle(*args, **kwargs)
+ return __core.wxWindow_SetTitle(*args, **kwargs)
def GetTitle(*args, **kwargs):
"""
- GetTitle(self) -> String
+ GetTitle(self) -> wxString
Gets the window's title. Applicable only to frames and dialogs.
"""
- return _core_.Window_GetTitle(*args, **kwargs)
+ return __core.wxWindow_GetTitle(*args, **kwargs)
def SetLabel(*args, **kwargs):
"""
- SetLabel(self, String label)
+ SetLabel(self, wxString label)
Set the text which the window shows in its label if applicable.
"""
- return _core_.Window_SetLabel(*args, **kwargs)
+ return __core.wxWindow_SetLabel(*args, **kwargs)
def GetLabel(*args, **kwargs):
"""
- GetLabel(self) -> String
+ GetLabel(self) -> wxString
Generic way of getting a label from any window, for identification
purposes. The interpretation of this function differs from class to
can be useful for meta-programs such as testing tools or special-needs
access programs)which need to identify windows by name.
"""
- return _core_.Window_GetLabel(*args, **kwargs)
+ return __core.wxWindow_GetLabel(*args, **kwargs)
def SetName(*args, **kwargs):
"""
- SetName(self, String name)
+ SetName(self, wxString name)
Sets the window's name. The window name is used for ressource setting
in X, it is not the same as the window title/label
"""
- return _core_.Window_SetName(*args, **kwargs)
+ return __core.wxWindow_SetName(*args, **kwargs)
def GetName(*args, **kwargs):
"""
- GetName(self) -> String
+ GetName(self) -> wxString
Returns the windows name. This name is not guaranteed to be unique;
it is up to the programmer to supply an appropriate name in the window
constructor or via wx.Window.SetName.
"""
- return _core_.Window_GetName(*args, **kwargs)
+ return __core.wxWindow_GetName(*args, **kwargs)
def SetWindowVariant(*args, **kwargs):
"""
Sets the variant of the window/font size to use for this window, if
the platform supports variants, for example, wxMac.
"""
- return _core_.Window_SetWindowVariant(*args, **kwargs)
+ return __core.wxWindow_SetWindowVariant(*args, **kwargs)
def GetWindowVariant(*args, **kwargs):
"""GetWindowVariant(self) -> int"""
- return _core_.Window_GetWindowVariant(*args, **kwargs)
+ return __core.wxWindow_GetWindowVariant(*args, **kwargs)
def SetId(*args, **kwargs):
"""
will be generated. Normally, the identifier should be provided on
creation and should not be modified subsequently.
"""
- return _core_.Window_SetId(*args, **kwargs)
+ return __core.wxWindow_SetId(*args, **kwargs)
def GetId(*args, **kwargs):
"""
-1 is used) then an unique identifier with a negative value will be
generated.
"""
- return _core_.Window_GetId(*args, **kwargs)
+ return __core.wxWindow_GetId(*args, **kwargs)
def NewControlId(*args, **kwargs):
"""
Generate a control id for the controls which were not given one.
"""
- return _core_.Window_NewControlId(*args, **kwargs)
+ return __core.wxWindow_NewControlId(*args, **kwargs)
NewControlId = staticmethod(NewControlId)
def NextControlId(*args, **kwargs):
Get the id of the control following the one with the given
autogenerated) id
"""
- return _core_.Window_NextControlId(*args, **kwargs)
+ return __core.wxWindow_NextControlId(*args, **kwargs)
NextControlId = staticmethod(NextControlId)
def PrevControlId(*args, **kwargs):
Get the id of the control preceding the one with the given
autogenerated) id
"""
- return _core_.Window_PrevControlId(*args, **kwargs)
+ return __core.wxWindow_PrevControlId(*args, **kwargs)
PrevControlId = staticmethod(PrevControlId)
def SetSize(*args, **kwargs):
"""
- SetSize(self, Size size)
+ SetSize(self, wxSize size)
Sets the size of the window in pixels.
"""
- return _core_.Window_SetSize(*args, **kwargs)
+ return __core.wxWindow_SetSize(*args, **kwargs)
def SetDimensions(*args, **kwargs):
"""
- SetDimensions(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)
+ SetDimensions(self, int x, int y, int width, int height, int sizeFlags=wxSIZE_AUTO)
Sets the position and size of the window in pixels. The sizeFlags
parameter indicates the interpretation of the other params if they are
- -1. wx.SIZE_AUTO*: a -1 indicates that a class-specific default
- shoudl be used. wx.SIZE_USE_EXISTING: existing dimensions should be
- used if -1 values are supplied. wxSIZE_ALLOW_MINUS_ONE: allow
- dimensions of -1 and less to be interpreted as real dimensions, not
- default values.
+ equal to -1.
+
+ ======================== ======================================
+ wx.SIZE_AUTO A -1 indicates that a class-specific
+ default should be used.
+ wx.SIZE_USE_EXISTING Axisting dimensions should be used if
+ -1 values are supplied.
+ wxSIZE_ALLOW_MINUS_ONE Allow dimensions of -1 and less to be
+ interpreted as real dimensions, not
+ default values.
+ ======================== ======================================
+
"""
- return _core_.Window_SetDimensions(*args, **kwargs)
+ return __core.wxWindow_SetDimensions(*args, **kwargs)
def SetRect(*args, **kwargs):
"""
- SetRect(self, Rect rect, int sizeFlags=SIZE_AUTO)
+ SetRect(self, wxRect rect, int sizeFlags=wxSIZE_AUTO)
Sets the position and size of the window in pixels using a wx.Rect.
"""
- return _core_.Window_SetRect(*args, **kwargs)
+ return __core.wxWindow_SetRect(*args, **kwargs)
def SetSizeWH(*args, **kwargs):
"""
Sets the size of the window in pixels.
"""
- return _core_.Window_SetSizeWH(*args, **kwargs)
+ return __core.wxWindow_SetSizeWH(*args, **kwargs)
def Move(*args, **kwargs):
"""
- Move(self, Point pt, int flags=SIZE_USE_EXISTING)
+ Move(self, wxPoint pt, int flags=wxSIZE_USE_EXISTING)
Moves the window to the given position.
"""
- return _core_.Window_Move(*args, **kwargs)
+ return __core.wxWindow_Move(*args, **kwargs)
SetPosition = Move
def MoveXY(*args, **kwargs):
"""
- MoveXY(self, int x, int y, int flags=SIZE_USE_EXISTING)
+ MoveXY(self, int x, int y, int flags=wxSIZE_USE_EXISTING)
Moves the window to the given position.
"""
- return _core_.Window_MoveXY(*args, **kwargs)
+ return __core.wxWindow_MoveXY(*args, **kwargs)
def SetBestFittingSize(*args, **kwargs):
"""
- SetBestFittingSize(self, Size size=DefaultSize)
+ SetBestFittingSize(self, wxSize size=wxDefaultSize)
A 'Smart' SetSize that will fill in default size components with the
window's *best size* values. Also set's the minsize for use with sizers.
"""
- return _core_.Window_SetBestFittingSize(*args, **kwargs)
+ return __core.wxWindow_SetBestFittingSize(*args, **kwargs)
def Raise(*args, **kwargs):
"""
Raises the window to the top of the window hierarchy if it is a
managed window (dialog or frame).
"""
- return _core_.Window_Raise(*args, **kwargs)
+ return __core.wxWindow_Raise(*args, **kwargs)
def Lower(*args, **kwargs):
"""
Lowers the window to the bottom of the window hierarchy if it is a
managed window (dialog or frame).
"""
- return _core_.Window_Lower(*args, **kwargs)
+ return __core.wxWindow_Lower(*args, **kwargs)
def SetClientSize(*args, **kwargs):
"""
- SetClientSize(self, Size size)
+ SetClientSize(self, wxSize size)
This sets the size of the window client area in pixels. Using this
function to size a window tends to be more device-independent than
dimensions the border or title bar have when trying to fit the window
around panel items, for example.
"""
- return _core_.Window_SetClientSize(*args, **kwargs)
+ return __core.wxWindow_SetClientSize(*args, **kwargs)
def SetClientSizeWH(*args, **kwargs):
"""
dimensions the border or title bar have when trying to fit the window
around panel items, for example.
"""
- return _core_.Window_SetClientSizeWH(*args, **kwargs)
+ return __core.wxWindow_SetClientSizeWH(*args, **kwargs)
def SetClientRect(*args, **kwargs):
"""
- SetClientRect(self, Rect rect)
+ SetClientRect(self, wxRect rect)
This sets the size of the window client area in pixels. Using this
function to size a window tends to be more device-independent than
dimensions the border or title bar have when trying to fit the window
around panel items, for example.
"""
- return _core_.Window_SetClientRect(*args, **kwargs)
+ return __core.wxWindow_SetClientRect(*args, **kwargs)
def GetPosition(*args, **kwargs):
"""
- GetPosition(self) -> Point
+ GetPosition(self) -> wxPoint
Get the window's position.
"""
- return _core_.Window_GetPosition(*args, **kwargs)
+ return __core.wxWindow_GetPosition(*args, **kwargs)
def GetPositionTuple(*args, **kwargs):
"""
Get the window's position.
"""
- return _core_.Window_GetPositionTuple(*args, **kwargs)
+ return __core.wxWindow_GetPositionTuple(*args, **kwargs)
def GetSize(*args, **kwargs):
"""
- GetSize(self) -> Size
+ GetSize(self) -> wxSize
Get the window size.
"""
- return _core_.Window_GetSize(*args, **kwargs)
+ return __core.wxWindow_GetSize(*args, **kwargs)
def GetSizeTuple(*args, **kwargs):
"""
Get the window size.
"""
- return _core_.Window_GetSizeTuple(*args, **kwargs)
+ return __core.wxWindow_GetSizeTuple(*args, **kwargs)
def GetRect(*args, **kwargs):
"""
- GetRect(self) -> Rect
+ GetRect(self) -> wxRect
Returns the size and position of the window as a wx.Rect object.
"""
- return _core_.Window_GetRect(*args, **kwargs)
+ return __core.wxWindow_GetRect(*args, **kwargs)
def GetClientSize(*args, **kwargs):
"""
- GetClientSize(self) -> Size
+ GetClientSize(self) -> wxSize
This gets the size of the window's 'client area' in pixels. The client
area is the area which may be drawn on by the programmer, excluding
title bar, border, scrollbars, etc.
"""
- return _core_.Window_GetClientSize(*args, **kwargs)
+ return __core.wxWindow_GetClientSize(*args, **kwargs)
def GetClientSizeTuple(*args, **kwargs):
"""
area is the area which may be drawn on by the programmer, excluding
title bar, border, scrollbars, etc.
"""
- return _core_.Window_GetClientSizeTuple(*args, **kwargs)
+ return __core.wxWindow_GetClientSizeTuple(*args, **kwargs)
def GetClientAreaOrigin(*args, **kwargs):
"""
- GetClientAreaOrigin(self) -> Point
+ GetClientAreaOrigin(self) -> wxPoint
Get the origin of the client area of the window relative to the
window's top left corner (the client area may be shifted because of
the borders, scrollbars, other decorations...)
"""
- return _core_.Window_GetClientAreaOrigin(*args, **kwargs)
+ return __core.wxWindow_GetClientAreaOrigin(*args, **kwargs)
def GetClientRect(*args, **kwargs):
"""
- GetClientRect(self) -> Rect
+ GetClientRect(self) -> wxRect
Get the client area position and size as a `wx.Rect` object.
"""
- return _core_.Window_GetClientRect(*args, **kwargs)
+ return __core.wxWindow_GetClientRect(*args, **kwargs)
def GetBestSize(*args, **kwargs):
"""
- GetBestSize(self) -> Size
+ GetBestSize(self) -> wxSize
This function returns the best acceptable minimal size for the
window, if applicable. For example, for a static text control, it will
this function will be the same as the size the window would have had
after calling Fit.
"""
- return _core_.Window_GetBestSize(*args, **kwargs)
+ return __core.wxWindow_GetBestSize(*args, **kwargs)
def GetBestSizeTuple(*args, **kwargs):
"""
this function will be the same as the size the window would have had
after calling Fit.
"""
- return _core_.Window_GetBestSizeTuple(*args, **kwargs)
+ return __core.wxWindow_GetBestSizeTuple(*args, **kwargs)
def InvalidateBestSize(*args, **kwargs):
"""
Reset the cached best size value so it will be recalculated the next
time it is needed.
"""
- return _core_.Window_InvalidateBestSize(*args, **kwargs)
+ return __core.wxWindow_InvalidateBestSize(*args, **kwargs)
def GetBestFittingSize(*args, **kwargs):
"""
- GetBestFittingSize(self) -> Size
+ GetBestFittingSize(self) -> wxSize
This function will merge the window's best size into the window's
minimum size, giving priority to the min size components, and returns
the results.
"""
- return _core_.Window_GetBestFittingSize(*args, **kwargs)
+ return __core.wxWindow_GetBestFittingSize(*args, **kwargs)
def GetAdjustedBestSize(*args, **kwargs):
"""
- GetAdjustedBestSize(self) -> Size
+ GetAdjustedBestSize(self) -> wxSize
This method is similar to GetBestSize, except in one
thing. GetBestSize should return the minimum untruncated size of the
should currently be drawn at, not the minimal size it can possibly
tolerate.
"""
- return _core_.Window_GetAdjustedBestSize(*args, **kwargs)
+ return __core.wxWindow_GetAdjustedBestSize(*args, **kwargs)
def Center(*args, **kwargs):
"""
- Center(self, int direction=BOTH)
+ Center(self, int direction=wxBOTH)
Centers the window. The parameter specifies the direction for
cetering, and may be wx.HORIZONTAL, wx.VERTICAL or wx.BOTH. It may
top-level window and has no parent then it will always be centered
relative to the screen.
"""
- return _core_.Window_Center(*args, **kwargs)
+ return __core.wxWindow_Center(*args, **kwargs)
Centre = Center
def CenterOnScreen(*args, **kwargs):
"""
- CenterOnScreen(self, int dir=BOTH)
+ CenterOnScreen(self, int dir=wxBOTH)
Center on screen (only works for top level windows)
"""
- return _core_.Window_CenterOnScreen(*args, **kwargs)
+ return __core.wxWindow_CenterOnScreen(*args, **kwargs)
CentreOnScreen = CenterOnScreen
def CenterOnParent(*args, **kwargs):
"""
- CenterOnParent(self, int dir=BOTH)
+ CenterOnParent(self, int dir=wxBOTH)
Center with respect to the the parent window
"""
- return _core_.Window_CenterOnParent(*args, **kwargs)
+ return __core.wxWindow_CenterOnParent(*args, **kwargs)
CentreOnParent = CenterOnParent
def Fit(*args, **kwargs):
its calculations) to call window.SetClientSize(child.GetSize())
instead of calling Fit.
"""
- return _core_.Window_Fit(*args, **kwargs)
+ return __core.wxWindow_Fit(*args, **kwargs)
def FitInside(*args, **kwargs):
"""
windows without an interior sizer. This function similarly won't do
anything if there are no subwindows.
"""
- return _core_.Window_FitInside(*args, **kwargs)
+ return __core.wxWindow_FitInside(*args, **kwargs)
def SetSizeHints(*args, **kwargs):
"""
The resizing increments are only significant under Motif or Xt.
"""
- return _core_.Window_SetSizeHints(*args, **kwargs)
+ return __core.wxWindow_SetSizeHints(*args, **kwargs)
def SetSizeHintsSz(*args, **kwargs):
"""
- SetSizeHintsSz(self, Size minSize, Size maxSize=DefaultSize, Size incSize=DefaultSize)
+ SetSizeHintsSz(self, wxSize minSize, wxSize maxSize=wxDefaultSize, wxSize incSize=wxDefaultSize)
Allows specification of minimum and maximum window sizes, and window
size increments. If a pair of values is not set (or set to -1), the
The resizing increments are only significant under Motif or Xt.
"""
- return _core_.Window_SetSizeHintsSz(*args, **kwargs)
+ return __core.wxWindow_SetSizeHintsSz(*args, **kwargs)
def SetVirtualSizeHints(*args, **kwargs):
"""
used. If this function is called, the user will not be able to size
the virtual area of the window outside the given bounds.
"""
- return _core_.Window_SetVirtualSizeHints(*args, **kwargs)
+ return __core.wxWindow_SetVirtualSizeHints(*args, **kwargs)
def SetVirtualSizeHintsSz(*args, **kwargs):
"""
- SetVirtualSizeHintsSz(self, Size minSize, Size maxSize=DefaultSize)
+ SetVirtualSizeHintsSz(self, wxSize minSize, wxSize maxSize=wxDefaultSize)
Allows specification of minimum and maximum virtual window sizes. If a
pair of values is not set (or set to -1), the default values will be
used. If this function is called, the user will not be able to size
the virtual area of the window outside the given bounds.
"""
- return _core_.Window_SetVirtualSizeHintsSz(*args, **kwargs)
+ return __core.wxWindow_SetVirtualSizeHintsSz(*args, **kwargs)
def GetMaxSize(*args, **kwargs):
- """GetMaxSize(self) -> Size"""
- return _core_.Window_GetMaxSize(*args, **kwargs)
+ """GetMaxSize(self) -> wxSize"""
+ return __core.wxWindow_GetMaxSize(*args, **kwargs)
def GetMinSize(*args, **kwargs):
- """GetMinSize(self) -> Size"""
- return _core_.Window_GetMinSize(*args, **kwargs)
+ """GetMinSize(self) -> wxSize"""
+ return __core.wxWindow_GetMinSize(*args, **kwargs)
def SetMinSize(*args, **kwargs):
"""
- SetMinSize(self, Size minSize)
+ SetMinSize(self, wxSize minSize)
A more convenient method than `SetSizeHints` for setting just the
min size.
"""
- return _core_.Window_SetMinSize(*args, **kwargs)
+ return __core.wxWindow_SetMinSize(*args, **kwargs)
def SetMaxSize(*args, **kwargs):
"""
- SetMaxSize(self, Size maxSize)
+ SetMaxSize(self, wxSize maxSize)
A more convenient method than `SetSizeHints` for setting just the
max size.
"""
- return _core_.Window_SetMaxSize(*args, **kwargs)
+ return __core.wxWindow_SetMaxSize(*args, **kwargs)
def GetMinWidth(*args, **kwargs):
"""GetMinWidth(self) -> int"""
- return _core_.Window_GetMinWidth(*args, **kwargs)
+ return __core.wxWindow_GetMinWidth(*args, **kwargs)
def GetMinHeight(*args, **kwargs):
"""GetMinHeight(self) -> int"""
- return _core_.Window_GetMinHeight(*args, **kwargs)
+ return __core.wxWindow_GetMinHeight(*args, **kwargs)
def GetMaxWidth(*args, **kwargs):
"""GetMaxWidth(self) -> int"""
- return _core_.Window_GetMaxWidth(*args, **kwargs)
+ return __core.wxWindow_GetMaxWidth(*args, **kwargs)
def GetMaxHeight(*args, **kwargs):
"""GetMaxHeight(self) -> int"""
- return _core_.Window_GetMaxHeight(*args, **kwargs)
+ return __core.wxWindow_GetMaxHeight(*args, **kwargs)
def SetVirtualSize(*args, **kwargs):
"""
- SetVirtualSize(self, Size size)
+ SetVirtualSize(self, wxSize size)
Set the the virtual size of a window in pixels. For most windows this
is just the client area of the window, but for some like scrolled
windows it is more or less independent of the screen window size.
"""
- return _core_.Window_SetVirtualSize(*args, **kwargs)
+ return __core.wxWindow_SetVirtualSize(*args, **kwargs)
def SetVirtualSizeWH(*args, **kwargs):
"""
is just the client area of the window, but for some like scrolled
windows it is more or less independent of the screen window size.
"""
- return _core_.Window_SetVirtualSizeWH(*args, **kwargs)
+ return __core.wxWindow_SetVirtualSizeWH(*args, **kwargs)
def GetVirtualSize(*args, **kwargs):
"""
- GetVirtualSize(self) -> Size
+ GetVirtualSize(self) -> wxSize
Get the the virtual size of the window in pixels. For most windows
this is just the client area of the window, but for some like scrolled
windows it is more or less independent of the screen window size.
"""
- return _core_.Window_GetVirtualSize(*args, **kwargs)
+ return __core.wxWindow_GetVirtualSize(*args, **kwargs)
def GetVirtualSizeTuple(*args, **kwargs):
"""
this is just the client area of the window, but for some like scrolled
windows it is more or less independent of the screen window size.
"""
- return _core_.Window_GetVirtualSizeTuple(*args, **kwargs)
+ return __core.wxWindow_GetVirtualSizeTuple(*args, **kwargs)
def GetBestVirtualSize(*args, **kwargs):
"""
- GetBestVirtualSize(self) -> Size
+ GetBestVirtualSize(self) -> wxSize
Return the largest of ClientSize and BestSize (as determined by a
sizer, interior children, or other means)
"""
- return _core_.Window_GetBestVirtualSize(*args, **kwargs)
+ return __core.wxWindow_GetBestVirtualSize(*args, **kwargs)
def Show(*args, **kwargs):
"""
the window has been shown or hidden or False if nothing was done
because it already was in the requested state.
"""
- return _core_.Window_Show(*args, **kwargs)
+ return __core.wxWindow_Show(*args, **kwargs)
def Hide(*args, **kwargs):
"""
Equivalent to calling Show(False).
"""
- return _core_.Window_Hide(*args, **kwargs)
+ return __core.wxWindow_Hide(*args, **kwargs)
def Enable(*args, **kwargs):
"""
has been enabled or disabled, false if nothing was done, i.e. if the
window had already been in the specified state.
"""
- return _core_.Window_Enable(*args, **kwargs)
+ return __core.wxWindow_Enable(*args, **kwargs)
def Disable(*args, **kwargs):
"""
Disables the window, same as Enable(false).
"""
- return _core_.Window_Disable(*args, **kwargs)
+ return __core.wxWindow_Disable(*args, **kwargs)
def IsShown(*args, **kwargs):
"""
Returns true if the window is shown, false if it has been hidden.
"""
- return _core_.Window_IsShown(*args, **kwargs)
+ return __core.wxWindow_IsShown(*args, **kwargs)
def IsEnabled(*args, **kwargs):
"""
Returns true if the window is enabled for input, false otherwise.
"""
- return _core_.Window_IsEnabled(*args, **kwargs)
+ return __core.wxWindow_IsEnabled(*args, **kwargs)
def SetWindowStyleFlag(*args, **kwargs):
"""
called after changing the others for the change to take place
immediately.
"""
- return _core_.Window_SetWindowStyleFlag(*args, **kwargs)
+ return __core.wxWindow_SetWindowStyleFlag(*args, **kwargs)
def GetWindowStyleFlag(*args, **kwargs):
"""
Gets the window style that was passed to the constructor or Create
method.
"""
- return _core_.Window_GetWindowStyleFlag(*args, **kwargs)
+ return __core.wxWindow_GetWindowStyleFlag(*args, **kwargs)
SetWindowStyle = SetWindowStyleFlag; GetWindowStyle = GetWindowStyleFlag
def HasFlag(*args, **kwargs):
Test if the given style is set for this window.
"""
- return _core_.Window_HasFlag(*args, **kwargs)
+ return __core.wxWindow_HasFlag(*args, **kwargs)
def IsRetained(*args, **kwargs):
"""
Returns true if the window is retained, false otherwise. Retained
windows are only available on X platforms.
"""
- return _core_.Window_IsRetained(*args, **kwargs)
+ return __core.wxWindow_IsRetained(*args, **kwargs)
def SetExtraStyle(*args, **kwargs):
"""
often used style bits which can't be set with the constructor or with
SetWindowStyleFlag()
"""
- return _core_.Window_SetExtraStyle(*args, **kwargs)
+ return __core.wxWindow_SetExtraStyle(*args, **kwargs)
def GetExtraStyle(*args, **kwargs):
"""
Returns the extra style bits for the window.
"""
- return _core_.Window_GetExtraStyle(*args, **kwargs)
+ return __core.wxWindow_GetExtraStyle(*args, **kwargs)
def MakeModal(*args, **kwargs):
"""
only interact with this window. Passing False will reverse this
effect.
"""
- return _core_.Window_MakeModal(*args, **kwargs)
+ return __core.wxWindow_MakeModal(*args, **kwargs)
def SetThemeEnabled(*args, **kwargs):
"""
Dialogs, notebook pages and the status bar have this flag set to true
by default so that the default look and feel is simulated best.
"""
- return _core_.Window_SetThemeEnabled(*args, **kwargs)
+ return __core.wxWindow_SetThemeEnabled(*args, **kwargs)
def GetThemeEnabled(*args, **kwargs):
"""
Return the themeEnabled flag.
"""
- return _core_.Window_GetThemeEnabled(*args, **kwargs)
+ return __core.wxWindow_GetThemeEnabled(*args, **kwargs)
def SetFocus(*args, **kwargs):
"""
Set's the focus to this window, allowing it to receive keyboard input.
"""
- return _core_.Window_SetFocus(*args, **kwargs)
+ return __core.wxWindow_SetFocus(*args, **kwargs)
def SetFocusFromKbd(*args, **kwargs):
"""
Set focus to this window as the result of a keyboard action. Normally
only called internally.
"""
- return _core_.Window_SetFocusFromKbd(*args, **kwargs)
+ return __core.wxWindow_SetFocusFromKbd(*args, **kwargs)
def FindFocus(*args, **kwargs):
"""
- FindFocus() -> Window
+ FindFocus() -> wxWindow
Returns the window or control that currently has the keyboard focus,
or None.
"""
- return _core_.Window_FindFocus(*args, **kwargs)
+ return __core.wxWindow_FindFocus(*args, **kwargs)
FindFocus = staticmethod(FindFocus)
def AcceptsFocus(*args, **kwargs):
Can this window have focus?
"""
- return _core_.Window_AcceptsFocus(*args, **kwargs)
+ return __core.wxWindow_AcceptsFocus(*args, **kwargs)
def AcceptsFocusFromKeyboard(*args, **kwargs):
"""
only way to give it focus (provided it accepts it at all) is to click
it.
"""
- return _core_.Window_AcceptsFocusFromKeyboard(*args, **kwargs)
+ return __core.wxWindow_AcceptsFocusFromKeyboard(*args, **kwargs)
def GetDefaultItem(*args, **kwargs):
"""
- GetDefaultItem(self) -> Window
+ GetDefaultItem(self) -> wxWindow
Get the default child of this parent, i.e. the one which is activated
by pressing <Enter> such as the OK button on a wx.Dialog.
"""
- return _core_.Window_GetDefaultItem(*args, **kwargs)
+ return __core.wxWindow_GetDefaultItem(*args, **kwargs)
def SetDefaultItem(*args, **kwargs):
"""
- SetDefaultItem(self, Window child) -> Window
+ SetDefaultItem(self, wxWindow child) -> wxWindow
Set this child as default, return the old default.
"""
- return _core_.Window_SetDefaultItem(*args, **kwargs)
+ return __core.wxWindow_SetDefaultItem(*args, **kwargs)
def SetTmpDefaultItem(*args, **kwargs):
"""
- SetTmpDefaultItem(self, Window win)
+ SetTmpDefaultItem(self, wxWindow win)
Set this child as temporary default
"""
- return _core_.Window_SetTmpDefaultItem(*args, **kwargs)
+ return __core.wxWindow_SetTmpDefaultItem(*args, **kwargs)
def Navigate(*args, **kwargs):
"""
Does keyboard navigation from this window to another, by sending a
`wx.NavigationKeyEvent`.
"""
- return _core_.Window_Navigate(*args, **kwargs)
+ return __core.wxWindow_Navigate(*args, **kwargs)
def MoveAfterInTabOrder(*args, **kwargs):
"""
- MoveAfterInTabOrder(self, Window win)
+ MoveAfterInTabOrder(self, wxWindow win)
Moves this window in the tab navigation order after the specified
sibling window. This means that when the user presses the TAB key on
windows.
"""
- return _core_.Window_MoveAfterInTabOrder(*args, **kwargs)
+ return __core.wxWindow_MoveAfterInTabOrder(*args, **kwargs)
def MoveBeforeInTabOrder(*args, **kwargs):
"""
- MoveBeforeInTabOrder(self, Window win)
+ MoveBeforeInTabOrder(self, wxWindow win)
Same as `MoveAfterInTabOrder` except that it inserts this window just
before win instead of putting it right after it.
"""
- return _core_.Window_MoveBeforeInTabOrder(*args, **kwargs)
+ return __core.wxWindow_MoveBeforeInTabOrder(*args, **kwargs)
def GetChildren(*args, **kwargs):
"""
value of this function is only valid as long as the window's children
do not change.
"""
- return _core_.Window_GetChildren(*args, **kwargs)
+ return __core.wxWindow_GetChildren(*args, **kwargs)
def GetParent(*args, **kwargs):
"""
- GetParent(self) -> Window
+ GetParent(self) -> wxWindow
Returns the parent window of this window, or None if there isn't one.
"""
- return _core_.Window_GetParent(*args, **kwargs)
+ return __core.wxWindow_GetParent(*args, **kwargs)
def GetGrandParent(*args, **kwargs):
"""
- GetGrandParent(self) -> Window
+ GetGrandParent(self) -> wxWindow
Returns the parent of the parent of this window, or None if there
isn't one.
"""
- return _core_.Window_GetGrandParent(*args, **kwargs)
+ return __core.wxWindow_GetGrandParent(*args, **kwargs)
def IsTopLevel(*args, **kwargs):
"""
frames and dialogs are always considered to be top-level windows (even
if they have a parent window).
"""
- return _core_.Window_IsTopLevel(*args, **kwargs)
+ return __core.wxWindow_IsTopLevel(*args, **kwargs)
def Reparent(*args, **kwargs):
"""
- Reparent(self, Window newParent) -> bool
+ Reparent(self, wxWindow newParent) -> bool
Reparents the window, i.e the window will be removed from its current
parent window (e.g. a non-standard toolbar in a wxFrame) and then
if the parent was changed, False otherwise (error or newParent ==
oldParent)
"""
- return _core_.Window_Reparent(*args, **kwargs)
+ return __core.wxWindow_Reparent(*args, **kwargs)
def AddChild(*args, **kwargs):
"""
- AddChild(self, Window child)
+ AddChild(self, wxWindow child)
Adds a child window. This is called automatically by window creation
functions so should not be required by the application programmer.
"""
- return _core_.Window_AddChild(*args, **kwargs)
+ return __core.wxWindow_AddChild(*args, **kwargs)
def RemoveChild(*args, **kwargs):
"""
- RemoveChild(self, Window child)
+ RemoveChild(self, wxWindow child)
Removes a child window. This is called automatically by window
deletion functions so should not be required by the application
programmer.
"""
- return _core_.Window_RemoveChild(*args, **kwargs)
+ return __core.wxWindow_RemoveChild(*args, **kwargs)
def FindWindowById(*args, **kwargs):
"""
- FindWindowById(self, long winid) -> Window
+ FindWindowById(self, long winid) -> wxWindow
Find a chld of this window by window ID
"""
- return _core_.Window_FindWindowById(*args, **kwargs)
+ return __core.wxWindow_FindWindowById(*args, **kwargs)
def FindWindowByName(*args, **kwargs):
"""
- FindWindowByName(self, String name) -> Window
+ FindWindowByName(self, wxString name) -> wxWindow
Find a child of this window by name
"""
- return _core_.Window_FindWindowByName(*args, **kwargs)
+ return __core.wxWindow_FindWindowByName(*args, **kwargs)
def GetEventHandler(*args, **kwargs):
"""
- GetEventHandler(self) -> EvtHandler
+ GetEventHandler(self) -> wxEvtHandler
Returns the event handler for this window. By default, the window is
its own event handler.
"""
- return _core_.Window_GetEventHandler(*args, **kwargs)
+ return __core.wxWindow_GetEventHandler(*args, **kwargs)
def SetEventHandler(*args, **kwargs):
"""
- SetEventHandler(self, EvtHandler handler)
+ SetEventHandler(self, wxEvtHandler handler)
Sets the event handler for this window. An event handler is an object
that is capable of processing the events sent to a window. By default,
up a chain of event handlers, where an event not handled by one event
handler is handed to the next one in the chain.
"""
- return _core_.Window_SetEventHandler(*args, **kwargs)
+ return __core.wxWindow_SetEventHandler(*args, **kwargs)
def PushEventHandler(*args, **kwargs):
"""
- PushEventHandler(self, EvtHandler handler)
+ PushEventHandler(self, wxEvtHandler handler)
Pushes this event handler onto the event handler stack for the window.
An event handler is an object that is capable of processing the events
handed to the next one in the chain. Use `wx.Window.PopEventHandler` to
remove the event handler.
"""
- return _core_.Window_PushEventHandler(*args, **kwargs)
+ return __core.wxWindow_PushEventHandler(*args, **kwargs)
def PopEventHandler(*args, **kwargs):
"""
- PopEventHandler(self, bool deleteHandler=False) -> EvtHandler
+ PopEventHandler(self, bool deleteHandler=False) -> wxEvtHandler
Removes and returns the top-most event handler on the event handler
stack. If deleteHandler is True then the wx.EvtHandler object will be
destroyed after it is popped.
"""
- return _core_.Window_PopEventHandler(*args, **kwargs)
+ return __core.wxWindow_PopEventHandler(*args, **kwargs)
def RemoveEventHandler(*args, **kwargs):
"""
- RemoveEventHandler(self, EvtHandler handler) -> bool
+ RemoveEventHandler(self, wxEvtHandler handler) -> bool
Find the given handler in the event handler chain and remove (but not
delete) it from the event handler chain, return True if it was found
function should only be called when the handler is supposed to be
there.)
"""
- return _core_.Window_RemoveEventHandler(*args, **kwargs)
+ return __core.wxWindow_RemoveEventHandler(*args, **kwargs)
def SetValidator(*args, **kwargs):
"""
- SetValidator(self, Validator validator)
+ SetValidator(self, wxValidator validator)
Deletes the current validator (if any) and sets the window validator,
having called wx.Validator.Clone to create a new validator of this
type.
"""
- return _core_.Window_SetValidator(*args, **kwargs)
+ return __core.wxWindow_SetValidator(*args, **kwargs)
def GetValidator(*args, **kwargs):
"""
- GetValidator(self) -> Validator
+ GetValidator(self) -> wxValidator
Returns a pointer to the current validator for the window, or None if
there is none.
"""
- return _core_.Window_GetValidator(*args, **kwargs)
+ return __core.wxWindow_GetValidator(*args, **kwargs)
def Validate(*args, **kwargs):
"""
style flag set, the method will also call Validate() of all child
windows. Returns false if any of the validations failed.
"""
- return _core_.Window_Validate(*args, **kwargs)
+ return __core.wxWindow_Validate(*args, **kwargs)
def TransferDataToWindow(*args, **kwargs):
"""
style flag set, the method will also call TransferDataToWindow() of
all child windows.
"""
- return _core_.Window_TransferDataToWindow(*args, **kwargs)
+ return __core.wxWindow_TransferDataToWindow(*args, **kwargs)
def TransferDataFromWindow(*args, **kwargs):
"""
wx.WS_EX_VALIDATE_RECURSIVELY extra style flag set, the method will
also call TransferDataFromWindow() of all child windows.
"""
- return _core_.Window_TransferDataFromWindow(*args, **kwargs)
+ return __core.wxWindow_TransferDataFromWindow(*args, **kwargs)
def InitDialog(*args, **kwargs):
"""
Sends an EVT_INIT_DIALOG event, whose handler usually transfers data
to the dialog via validators.
"""
- return _core_.Window_InitDialog(*args, **kwargs)
+ return __core.wxWindow_InitDialog(*args, **kwargs)
def SetAcceleratorTable(*args, **kwargs):
"""
- SetAcceleratorTable(self, AcceleratorTable accel)
+ SetAcceleratorTable(self, wxAcceleratorTable accel)
Sets the accelerator table for this window.
"""
- return _core_.Window_SetAcceleratorTable(*args, **kwargs)
+ return __core.wxWindow_SetAcceleratorTable(*args, **kwargs)
def GetAcceleratorTable(*args, **kwargs):
"""
- GetAcceleratorTable(self) -> AcceleratorTable
+ GetAcceleratorTable(self) -> wxAcceleratorTable
Gets the accelerator table for this window.
"""
- return _core_.Window_GetAcceleratorTable(*args, **kwargs)
+ return __core.wxWindow_GetAcceleratorTable(*args, **kwargs)
def RegisterHotKey(*args, **kwargs):
"""
use EVT_HOTKEY with an id equal to hotkeyId. Returns True if the
hotkey was registered successfully.
"""
- return _core_.Window_RegisterHotKey(*args, **kwargs)
+ return __core.wxWindow_RegisterHotKey(*args, **kwargs)
def UnregisterHotKey(*args, **kwargs):
"""
Unregisters a system wide hotkey.
"""
- return _core_.Window_UnregisterHotKey(*args, **kwargs)
+ return __core.wxWindow_UnregisterHotKey(*args, **kwargs)
def ConvertDialogPointToPixels(*args, **kwargs):
"""
- ConvertDialogPointToPixels(self, Point pt) -> Point
+ ConvertDialogPointToPixels(self, wxPoint pt) -> wxPoint
Converts a point or size from dialog units to pixels. Dialog units
are used for maintaining a dialog's proportions even if the font
the dialog units are multiplied by the average character height and
then divided by 8.
"""
- return _core_.Window_ConvertDialogPointToPixels(*args, **kwargs)
+ return __core.wxWindow_ConvertDialogPointToPixels(*args, **kwargs)
def ConvertDialogSizeToPixels(*args, **kwargs):
"""
- ConvertDialogSizeToPixels(self, Size sz) -> Size
+ ConvertDialogSizeToPixels(self, wxSize sz) -> wxSize
Converts a point or size from dialog units to pixels. Dialog units
are used for maintaining a dialog's proportions even if the font
the dialog units are multiplied by the average character height and
then divided by 8.
"""
- return _core_.Window_ConvertDialogSizeToPixels(*args, **kwargs)
+ return __core.wxWindow_ConvertDialogSizeToPixels(*args, **kwargs)
def DLG_PNT(*args, **kwargs):
"""
- DLG_PNT(self, Point pt) -> Point
+ DLG_PNT(self, wxPoint pt) -> wxPoint
Converts a point or size from dialog units to pixels. Dialog units
are used for maintaining a dialog's proportions even if the font
the dialog units are multiplied by the average character height and
then divided by 8.
"""
- return _core_.Window_DLG_PNT(*args, **kwargs)
+ return __core.wxWindow_DLG_PNT(*args, **kwargs)
def DLG_SZE(*args, **kwargs):
"""
- DLG_SZE(self, Size sz) -> Size
+ DLG_SZE(self, wxSize sz) -> wxSize
Converts a point or size from dialog units to pixels. Dialog units
are used for maintaining a dialog's proportions even if the font
the dialog units are multiplied by the average character height and
then divided by 8.
"""
- return _core_.Window_DLG_SZE(*args, **kwargs)
+ return __core.wxWindow_DLG_SZE(*args, **kwargs)
def ConvertPixelPointToDialog(*args, **kwargs):
- """ConvertPixelPointToDialog(self, Point pt) -> Point"""
- return _core_.Window_ConvertPixelPointToDialog(*args, **kwargs)
+ """ConvertPixelPointToDialog(self, wxPoint pt) -> wxPoint"""
+ return __core.wxWindow_ConvertPixelPointToDialog(*args, **kwargs)
def ConvertPixelSizeToDialog(*args, **kwargs):
- """ConvertPixelSizeToDialog(self, Size sz) -> Size"""
- return _core_.Window_ConvertPixelSizeToDialog(*args, **kwargs)
+ """ConvertPixelSizeToDialog(self, wxSize sz) -> wxSize"""
+ return __core.wxWindow_ConvertPixelSizeToDialog(*args, **kwargs)
def WarpPointer(*args, **kwargs):
"""
NOTE: This function is not supported under Mac because Apple Human
Interface Guidelines forbid moving the mouse cursor programmatically.
"""
- return _core_.Window_WarpPointer(*args, **kwargs)
+ return __core.wxWindow_WarpPointer(*args, **kwargs)
def CaptureMouse(*args, **kwargs):
"""
there were no previous window. In particular, this means that you must
release the mouse as many times as you capture it.
"""
- return _core_.Window_CaptureMouse(*args, **kwargs)
+ return __core.wxWindow_CaptureMouse(*args, **kwargs)
def ReleaseMouse(*args, **kwargs):
"""
Releases mouse input captured with wx.Window.CaptureMouse.
"""
- return _core_.Window_ReleaseMouse(*args, **kwargs)
+ return __core.wxWindow_ReleaseMouse(*args, **kwargs)
def GetCapture(*args, **kwargs):
"""
- GetCapture() -> Window
+ GetCapture() -> wxWindow
Returns the window which currently captures the mouse or None
"""
- return _core_.Window_GetCapture(*args, **kwargs)
+ return __core.wxWindow_GetCapture(*args, **kwargs)
GetCapture = staticmethod(GetCapture)
def HasCapture(*args, **kwargs):
Returns true if this window has the current mouse capture.
"""
- return _core_.Window_HasCapture(*args, **kwargs)
+ return __core.wxWindow_HasCapture(*args, **kwargs)
def Refresh(*args, **kwargs):
"""
- Refresh(self, bool eraseBackground=True, Rect rect=None)
+ Refresh(self, bool eraseBackground=True, wxRect rect=None)
Mark the specified rectangle (or the whole window) as "dirty" so it
will be repainted. Causes an EVT_PAINT event to be generated and sent
to the window.
"""
- return _core_.Window_Refresh(*args, **kwargs)
+ return __core.wxWindow_Refresh(*args, **kwargs)
def RefreshRect(*args, **kwargs):
"""
- RefreshRect(self, Rect rect)
+ RefreshRect(self, wxRect rect, bool eraseBackground=True)
Redraws the contents of the given rectangle: the area inside it will
be repainted. This is the same as Refresh but has a nicer syntax.
"""
- return _core_.Window_RefreshRect(*args, **kwargs)
+ return __core.wxWindow_RefreshRect(*args, **kwargs)
def Update(*args, **kwargs):
"""
first if you want to immediately redraw the window (or some portion of
it) unconditionally.
"""
- return _core_.Window_Update(*args, **kwargs)
+ return __core.wxWindow_Update(*args, **kwargs)
def ClearBackground(*args, **kwargs):
"""
Clears the window by filling it with the current background
colour. Does not cause an erase background event to be generated.
"""
- return _core_.Window_ClearBackground(*args, **kwargs)
+ return __core.wxWindow_ClearBackground(*args, **kwargs)
def Freeze(*args, **kwargs):
"""
for all controls so it is mostly just a hint to wxWindows and not a
mandatory directive.
"""
- return _core_.Window_Freeze(*args, **kwargs)
+ return __core.wxWindow_Freeze(*args, **kwargs)
def Thaw(*args, **kwargs):
"""
Freeze/Thaw may be nested, so Thaw must be called the same number of
times that Freeze was before the window will be updated.
"""
- return _core_.Window_Thaw(*args, **kwargs)
+ return __core.wxWindow_Thaw(*args, **kwargs)
def PrepareDC(*args, **kwargs):
"""
- PrepareDC(self, DC dc)
+ PrepareDC(self, wxDC dc)
Call this function to prepare the device context for drawing a
scrolled image. It sets the device origin according to the current
scroll position.
"""
- return _core_.Window_PrepareDC(*args, **kwargs)
+ return __core.wxWindow_PrepareDC(*args, **kwargs)
def GetUpdateRegion(*args, **kwargs):
"""
- GetUpdateRegion(self) -> Region
+ GetUpdateRegion(self) -> wxRegion
Returns the region specifying which parts of the window have been
damaged. Should only be called within an EVT_PAINT handler.
"""
- return _core_.Window_GetUpdateRegion(*args, **kwargs)
+ return __core.wxWindow_GetUpdateRegion(*args, **kwargs)
def GetUpdateClientRect(*args, **kwargs):
"""
- GetUpdateClientRect(self) -> Rect
+ GetUpdateClientRect(self) -> wxRect
Get the update rectangle region bounding box in client coords.
"""
- return _core_.Window_GetUpdateClientRect(*args, **kwargs)
+ return __core.wxWindow_GetUpdateClientRect(*args, **kwargs)
def IsExposed(*args, **kwargs):
"""
optimize redrawing by only redrawing those areas, which have been
exposed.
"""
- return _core_.Window_IsExposed(*args, **kwargs)
+ return __core.wxWindow_IsExposed(*args, **kwargs)
def IsExposedPoint(*args, **kwargs):
"""
- IsExposedPoint(self, Point pt) -> bool
+ IsExposedPoint(self, wxPoint pt) -> bool
Returns true if the given point or rectangle area has been exposed
since the last repaint. Call this in an paint event handler to
optimize redrawing by only redrawing those areas, which have been
exposed.
"""
- return _core_.Window_IsExposedPoint(*args, **kwargs)
+ return __core.wxWindow_IsExposedPoint(*args, **kwargs)
def IsExposedRect(*args, **kwargs):
"""
- IsExposedRect(self, Rect rect) -> bool
+ IsExposedRect(self, wxRect rect) -> bool
Returns true if the given point or rectangle area has been exposed
since the last repaint. Call this in an paint event handler to
optimize redrawing by only redrawing those areas, which have been
exposed.
"""
- return _core_.Window_IsExposedRect(*args, **kwargs)
+ return __core.wxWindow_IsExposedRect(*args, **kwargs)
def GetDefaultAttributes(*args, **kwargs):
"""
- GetDefaultAttributes(self) -> VisualAttributes
+ GetDefaultAttributes(self) -> wxVisualAttributes
Get the default attributes for an instance of this class. This is
useful if you want to use the same font or colour in your own control
coding specific colours or fonts which might look completely out of
place on the user's system, especially if it uses themes.
"""
- return _core_.Window_GetDefaultAttributes(*args, **kwargs)
+ return __core.wxWindow_GetDefaultAttributes(*args, **kwargs)
def GetClassDefaultAttributes(*args, **kwargs):
"""
- GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
+ GetClassDefaultAttributes(int variant=wxWINDOW_VARIANT_NORMAL) -> wxVisualAttributes
Get the default attributes for this class. This is useful if you want
to use the same font or colour in your own control as in a standard
the returned font. See `wx.Window.SetWindowVariant` for more about
this.
"""
- return _core_.Window_GetClassDefaultAttributes(*args, **kwargs)
+ return __core.wxWindow_GetClassDefaultAttributes(*args, **kwargs)
GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
def SetBackgroundColour(*args, **kwargs):
"""
- SetBackgroundColour(self, Colour colour) -> bool
+ SetBackgroundColour(self, wxColour colour) -> bool
Sets the background colour of the window. Returns True if the colour
was changed. The background colour is usually painted by the default
themes represent the appearance chosen by the user to be used for all
applications on the system.
"""
- return _core_.Window_SetBackgroundColour(*args, **kwargs)
+ return __core.wxWindow_SetBackgroundColour(*args, **kwargs)
def SetOwnBackgroundColour(*args, **kwargs):
- """SetOwnBackgroundColour(self, Colour colour)"""
- return _core_.Window_SetOwnBackgroundColour(*args, **kwargs)
+ """SetOwnBackgroundColour(self, wxColour colour)"""
+ return __core.wxWindow_SetOwnBackgroundColour(*args, **kwargs)
def SetForegroundColour(*args, **kwargs):
"""
- SetForegroundColour(self, Colour colour) -> bool
+ SetForegroundColour(self, wxColour colour) -> bool
Sets the foreground colour of the window. Returns True is the colour
was changed. The interpretation of foreground colour is dependent on
the window class; it may be the text colour or other colour, or it may
not be used at all.
"""
- return _core_.Window_SetForegroundColour(*args, **kwargs)
+ return __core.wxWindow_SetForegroundColour(*args, **kwargs)
def SetOwnForegroundColour(*args, **kwargs):
- """SetOwnForegroundColour(self, Colour colour)"""
- return _core_.Window_SetOwnForegroundColour(*args, **kwargs)
+ """SetOwnForegroundColour(self, wxColour colour)"""
+ return __core.wxWindow_SetOwnForegroundColour(*args, **kwargs)
def GetBackgroundColour(*args, **kwargs):
"""
- GetBackgroundColour(self) -> Colour
+ GetBackgroundColour(self) -> wxColour
Returns the background colour of the window.
"""
- return _core_.Window_GetBackgroundColour(*args, **kwargs)
+ return __core.wxWindow_GetBackgroundColour(*args, **kwargs)
def GetForegroundColour(*args, **kwargs):
"""
- GetForegroundColour(self) -> Colour
+ GetForegroundColour(self) -> wxColour
Returns the foreground colour of the window. The interpretation of
foreground colour is dependent on the window class; it may be the text
colour or other colour, or it may not be used at all.
"""
- return _core_.Window_GetForegroundColour(*args, **kwargs)
+ return __core.wxWindow_GetForegroundColour(*args, **kwargs)
+
+ def InheritsBackgroundColour(*args, **kwargs):
+ """InheritsBackgroundColour(self) -> bool"""
+ return __core.wxWindow_InheritsBackgroundColour(*args, **kwargs)
+
+ def UseBgCol(*args, **kwargs):
+ """UseBgCol(self) -> bool"""
+ return __core.wxWindow_UseBgCol(*args, **kwargs)
def SetBackgroundStyle(*args, **kwargs):
"""
:see: `GetBackgroundStyle`, `SetBackgroundColour`
"""
- return _core_.Window_SetBackgroundStyle(*args, **kwargs)
+ return __core.wxWindow_SetBackgroundStyle(*args, **kwargs)
def GetBackgroundStyle(*args, **kwargs):
"""
:see: `SetBackgroundStyle`
"""
- return _core_.Window_GetBackgroundStyle(*args, **kwargs)
+ return __core.wxWindow_GetBackgroundStyle(*args, **kwargs)
+
+ def HasTransparentBackground(*args, **kwargs):
+ """
+ HasTransparentBackground(self) -> bool
+
+ Returns True if this window's background is transparent (as, for
+ example, for `wx.StaticText`) and should show the parent window's
+ background.
+
+ This method is mostly used internally by the library itself and you
+ normally shouldn't have to call it. You may, however, have to override
+ it in your custom control classes to ensure that background is painted
+ correctly.
+ """
+ return __core.wxWindow_HasTransparentBackground(*args, **kwargs)
def SetCursor(*args, **kwargs):
"""
- SetCursor(self, Cursor cursor) -> bool
+ SetCursor(self, wxCursor cursor) -> bool
Sets the window's cursor. Notice that the window cursor also sets it
for the children of the window implicitly.
The cursor may be wx.NullCursor in which case the window cursor will
be reset back to default.
"""
- return _core_.Window_SetCursor(*args, **kwargs)
+ return __core.wxWindow_SetCursor(*args, **kwargs)
def GetCursor(*args, **kwargs):
"""
- GetCursor(self) -> Cursor
+ GetCursor(self) -> wxCursor
Return the cursor associated with this window.
"""
- return _core_.Window_GetCursor(*args, **kwargs)
+ return __core.wxWindow_GetCursor(*args, **kwargs)
def SetFont(*args, **kwargs):
"""
- SetFont(self, Font font) -> bool
+ SetFont(self, wxFont font) -> bool
Sets the font for this window.
"""
- return _core_.Window_SetFont(*args, **kwargs)
+ return __core.wxWindow_SetFont(*args, **kwargs)
def SetOwnFont(*args, **kwargs):
- """SetOwnFont(self, Font font)"""
- return _core_.Window_SetOwnFont(*args, **kwargs)
+ """SetOwnFont(self, wxFont font)"""
+ return __core.wxWindow_SetOwnFont(*args, **kwargs)
def GetFont(*args, **kwargs):
"""
- GetFont(self) -> Font
+ GetFont(self) -> wxFont
Returns the default font used for this window.
"""
- return _core_.Window_GetFont(*args, **kwargs)
+ return __core.wxWindow_GetFont(*args, **kwargs)
def SetCaret(*args, **kwargs):
"""
- SetCaret(self, Caret caret)
+ SetCaret(self, wxCaret caret)
Sets the caret associated with the window.
"""
- return _core_.Window_SetCaret(*args, **kwargs)
+ return __core.wxWindow_SetCaret(*args, **kwargs)
def GetCaret(*args, **kwargs):
"""
- GetCaret(self) -> Caret
+ GetCaret(self) -> wxCaret
Returns the caret associated with the window.
"""
- return _core_.Window_GetCaret(*args, **kwargs)
+ return __core.wxWindow_GetCaret(*args, **kwargs)
def GetCharHeight(*args, **kwargs):
"""
Get the (average) character size for the current font.
"""
- return _core_.Window_GetCharHeight(*args, **kwargs)
+ return __core.wxWindow_GetCharHeight(*args, **kwargs)
def GetCharWidth(*args, **kwargs):
"""
Get the (average) character size for the current font.
"""
- return _core_.Window_GetCharWidth(*args, **kwargs)
+ return __core.wxWindow_GetCharWidth(*args, **kwargs)
def GetTextExtent(*args, **kwargs):
"""
Get the width and height of the text using the current font.
"""
- return _core_.Window_GetTextExtent(*args, **kwargs)
+ return __core.wxWindow_GetTextExtent(*args, **kwargs)
def GetFullTextExtent(*args, **kwargs):
"""
Get the width, height, decent and leading of the text using the
current or specified font.
"""
- return _core_.Window_GetFullTextExtent(*args, **kwargs)
+ return __core.wxWindow_GetFullTextExtent(*args, **kwargs)
def ClientToScreenXY(*args, **kwargs):
"""
Converts to screen coordinates from coordinates relative to this window.
"""
- return _core_.Window_ClientToScreenXY(*args, **kwargs)
+ return __core.wxWindow_ClientToScreenXY(*args, **kwargs)
def ScreenToClientXY(*args, **kwargs):
"""
Converts from screen to client window coordinates.
"""
- return _core_.Window_ScreenToClientXY(*args, **kwargs)
+ return __core.wxWindow_ScreenToClientXY(*args, **kwargs)
def ClientToScreen(*args, **kwargs):
"""
- ClientToScreen(self, Point pt) -> Point
+ ClientToScreen(self, wxPoint pt) -> wxPoint
Converts to screen coordinates from coordinates relative to this window.
"""
- return _core_.Window_ClientToScreen(*args, **kwargs)
+ return __core.wxWindow_ClientToScreen(*args, **kwargs)
def ScreenToClient(*args, **kwargs):
"""
- ScreenToClient(self, Point pt) -> Point
+ ScreenToClient(self, wxPoint pt) -> wxPoint
Converts from screen to client window coordinates.
"""
- return _core_.Window_ScreenToClient(*args, **kwargs)
+ return __core.wxWindow_ScreenToClient(*args, **kwargs)
def HitTestXY(*args, **kwargs):
"""
Test where the given (in client coords) point lies
"""
- return _core_.Window_HitTestXY(*args, **kwargs)
+ return __core.wxWindow_HitTestXY(*args, **kwargs)
def HitTest(*args, **kwargs):
"""
- HitTest(self, Point pt) -> int
+ HitTest(self, wxPoint pt) -> int
Test where the given (in client coords) point lies
"""
- return _core_.Window_HitTest(*args, **kwargs)
+ return __core.wxWindow_HitTest(*args, **kwargs)
def GetBorder(*args):
"""
Get border for the flags of this window
"""
- return _core_.Window_GetBorder(*args)
+ return __core.wxWindow_GetBorder(*args)
def UpdateWindowUI(*args, **kwargs):
"""
- UpdateWindowUI(self, long flags=UPDATE_UI_NONE)
+ UpdateWindowUI(self, long flags=wxUPDATE_UI_NONE)
This function sends EVT_UPDATE_UI events to the window. The particular
implementation depends on the window; for example a wx.ToolBar will
limit the overhead that wxWindows incurs by sending update UI events
in idle time.
"""
- return _core_.Window_UpdateWindowUI(*args, **kwargs)
+ return __core.wxWindow_UpdateWindowUI(*args, **kwargs)
def PopupMenuXY(*args, **kwargs):
"""
- PopupMenuXY(self, Menu menu, int x=-1, int y=-1) -> bool
+ PopupMenuXY(self, wxMenu menu, int x=-1, int y=-1) -> bool
Pops up the given menu at the specified coordinates, relative to this window,
and returns control when the user has dismissed the menu. If a menu item is
usual. If the default position is given then the current position of the
mouse cursor will be used.
"""
- return _core_.Window_PopupMenuXY(*args, **kwargs)
+ return __core.wxWindow_PopupMenuXY(*args, **kwargs)
def PopupMenu(*args, **kwargs):
"""
- PopupMenu(self, Menu menu, Point pos=DefaultPosition) -> bool
+ PopupMenu(self, wxMenu menu, wxPoint pos=wxDefaultPosition) -> bool
Pops up the given menu at the specified coordinates, relative to this window,
and returns control when the user has dismissed the menu. If a menu item is
usual. If the default position is given then the current position of the
mouse cursor will be used.
"""
- return _core_.Window_PopupMenu(*args, **kwargs)
+ return __core.wxWindow_PopupMenu(*args, **kwargs)
def GetHandle(*args, **kwargs):
"""
physical window. Currently on wxMac it returns the handle of the
toplevel parent of the window.
"""
- return _core_.Window_GetHandle(*args, **kwargs)
+ return __core.wxWindow_GetHandle(*args, **kwargs)
def AssociateHandle(*args, **kwargs):
"""
Associate the window with a new native handle
"""
- return _core_.Window_AssociateHandle(*args, **kwargs)
+ return __core.wxWindow_AssociateHandle(*args, **kwargs)
def DissociateHandle(*args, **kwargs):
"""
Dissociate the current native handle from the window
"""
- return _core_.Window_DissociateHandle(*args, **kwargs)
+ return __core.wxWindow_DissociateHandle(*args, **kwargs)
def HasScrollbar(*args, **kwargs):
"""
Does the window have the scrollbar for this orientation?
"""
- return _core_.Window_HasScrollbar(*args, **kwargs)
+ return __core.wxWindow_HasScrollbar(*args, **kwargs)
def SetScrollbar(*args, **kwargs):
"""
Sets the scrollbar properties of a built-in scrollbar.
"""
- return _core_.Window_SetScrollbar(*args, **kwargs)
+ return __core.wxWindow_SetScrollbar(*args, **kwargs)
def SetScrollPos(*args, **kwargs):
"""
Sets the position of one of the built-in scrollbars.
"""
- return _core_.Window_SetScrollPos(*args, **kwargs)
+ return __core.wxWindow_SetScrollPos(*args, **kwargs)
def GetScrollPos(*args, **kwargs):
"""
Returns the built-in scrollbar position.
"""
- return _core_.Window_GetScrollPos(*args, **kwargs)
+ return __core.wxWindow_GetScrollPos(*args, **kwargs)
def GetScrollThumb(*args, **kwargs):
"""
Returns the built-in scrollbar thumb size.
"""
- return _core_.Window_GetScrollThumb(*args, **kwargs)
+ return __core.wxWindow_GetScrollThumb(*args, **kwargs)
def GetScrollRange(*args, **kwargs):
"""
Returns the built-in scrollbar range.
"""
- return _core_.Window_GetScrollRange(*args, **kwargs)
+ return __core.wxWindow_GetScrollRange(*args, **kwargs)
def ScrollWindow(*args, **kwargs):
"""
- ScrollWindow(self, int dx, int dy, Rect rect=None)
+ ScrollWindow(self, int dx, int dy, wxRect rect=None)
Physically scrolls the pixels in the window and move child windows
accordingly. Use this function to optimise your scrolling
implementations, to minimise the area that must be redrawn. Note that
it is rarely required to call this function from a user program.
"""
- return _core_.Window_ScrollWindow(*args, **kwargs)
+ return __core.wxWindow_ScrollWindow(*args, **kwargs)
def ScrollLines(*args, **kwargs):
"""
is negative. Returns True if the window was scrolled, False if it was
already on top/bottom and nothing was done.
"""
- return _core_.Window_ScrollLines(*args, **kwargs)
+ return __core.wxWindow_ScrollLines(*args, **kwargs)
def ScrollPages(*args, **kwargs):
"""
is negative. Returns True if the window was scrolled, False if it was
already on top/bottom and nothing was done.
"""
- return _core_.Window_ScrollPages(*args, **kwargs)
+ return __core.wxWindow_ScrollPages(*args, **kwargs)
def LineUp(*args, **kwargs):
"""
This is just a wrapper for ScrollLines(-1).
"""
- return _core_.Window_LineUp(*args, **kwargs)
+ return __core.wxWindow_LineUp(*args, **kwargs)
def LineDown(*args, **kwargs):
"""
This is just a wrapper for ScrollLines(1).
"""
- return _core_.Window_LineDown(*args, **kwargs)
+ return __core.wxWindow_LineDown(*args, **kwargs)
def PageUp(*args, **kwargs):
"""
This is just a wrapper for ScrollPages(-1).
"""
- return _core_.Window_PageUp(*args, **kwargs)
+ return __core.wxWindow_PageUp(*args, **kwargs)
def PageDown(*args, **kwargs):
"""
This is just a wrapper for ScrollPages(1).
"""
- return _core_.Window_PageDown(*args, **kwargs)
+ return __core.wxWindow_PageDown(*args, **kwargs)
def SetHelpText(*args, **kwargs):
"""
- SetHelpText(self, String text)
+ SetHelpText(self, wxString text)
Sets the help text to be used as context-sensitive help for this
window. Note that the text is actually stored by the current
wxHelpProvider implementation, and not in the window object itself.
"""
- return _core_.Window_SetHelpText(*args, **kwargs)
+ return __core.wxWindow_SetHelpText(*args, **kwargs)
def SetHelpTextForId(*args, **kwargs):
"""
- SetHelpTextForId(self, String text)
+ SetHelpTextForId(self, wxString text)
Associate this help text with all windows with the same id as this
one.
"""
- return _core_.Window_SetHelpTextForId(*args, **kwargs)
+ return __core.wxWindow_SetHelpTextForId(*args, **kwargs)
def GetHelpText(*args, **kwargs):
"""
- GetHelpText(self) -> String
+ GetHelpText(self) -> wxString
Gets the help text to be used as context-sensitive help for this
window. Note that the text is actually stored by the current
wxHelpProvider implementation, and not in the window object itself.
"""
- return _core_.Window_GetHelpText(*args, **kwargs)
+ return __core.wxWindow_GetHelpText(*args, **kwargs)
def SetToolTipString(*args, **kwargs):
"""
- SetToolTipString(self, String tip)
+ SetToolTipString(self, wxString tip)
Attach a tooltip to the window.
"""
- return _core_.Window_SetToolTipString(*args, **kwargs)
+ return __core.wxWindow_SetToolTipString(*args, **kwargs)
def SetToolTip(*args, **kwargs):
"""
- SetToolTip(self, ToolTip tip)
+ SetToolTip(self, wxToolTip tip)
Attach a tooltip to the window.
"""
- return _core_.Window_SetToolTip(*args, **kwargs)
+ return __core.wxWindow_SetToolTip(*args, **kwargs)
def GetToolTip(*args, **kwargs):
"""
- GetToolTip(self) -> ToolTip
+ GetToolTip(self) -> wxToolTip
get the associated tooltip or None if none
"""
- return _core_.Window_GetToolTip(*args, **kwargs)
+ return __core.wxWindow_GetToolTip(*args, **kwargs)
def SetDropTarget(*args, **kwargs):
"""
- SetDropTarget(self, DropTarget dropTarget)
+ SetDropTarget(self, wxPyDropTarget dropTarget)
Associates a drop target with this window. If the window already has
a drop target, it is deleted.
"""
- return _core_.Window_SetDropTarget(*args, **kwargs)
+ return __core.wxWindow_SetDropTarget(*args, **kwargs)
def GetDropTarget(*args, **kwargs):
"""
- GetDropTarget(self) -> DropTarget
+ GetDropTarget(self) -> wxPyDropTarget
Returns the associated drop target, which may be None.
"""
- return _core_.Window_GetDropTarget(*args, **kwargs)
+ return __core.wxWindow_GetDropTarget(*args, **kwargs)
def SetConstraints(*args, **kwargs):
"""
- SetConstraints(self, LayoutConstraints constraints)
+ SetConstraints(self, wxLayoutConstraints constraints)
Sets the window to have the given layout constraints. If an existing
layout constraints object is already owned by the window, it will be
both a wx.LayoutConstraints and a wx.Sizer, only the sizer will have
effect.
"""
- return _core_.Window_SetConstraints(*args, **kwargs)
+ return __core.wxWindow_SetConstraints(*args, **kwargs)
def GetConstraints(*args, **kwargs):
"""
- GetConstraints(self) -> LayoutConstraints
+ GetConstraints(self) -> wxLayoutConstraints
Returns a pointer to the window's layout constraints, or None if there
are none.
"""
- return _core_.Window_GetConstraints(*args, **kwargs)
+ return __core.wxWindow_GetConstraints(*args, **kwargs)
def SetAutoLayout(*args, **kwargs):
"""
if you use SetConstraints you should call it manually or otherwise the
window layout won't be correctly updated when its size changes.
"""
- return _core_.Window_SetAutoLayout(*args, **kwargs)
+ return __core.wxWindow_SetAutoLayout(*args, **kwargs)
def GetAutoLayout(*args, **kwargs):
"""
Returns the current autoLayout setting
"""
- return _core_.Window_GetAutoLayout(*args, **kwargs)
+ return __core.wxWindow_GetAutoLayout(*args, **kwargs)
def Layout(*args, **kwargs):
"""
this function gets called automatically by the default EVT_SIZE
handler when the window is resized.
"""
- return _core_.Window_Layout(*args, **kwargs)
+ return __core.wxWindow_Layout(*args, **kwargs)
def SetSizer(*args, **kwargs):
"""
- SetSizer(self, Sizer sizer, bool deleteOld=True)
+ SetSizer(self, wxSizer sizer, bool deleteOld=True)
Sets the window to have the given layout sizer. The window will then
own the object, and will take care of its deletion. If an existing
layout sizer object is already owned by the window, it will be deleted
if the deleteOld parameter is true. Note that this function will also
call SetAutoLayout implicitly with a True parameter if the sizer is
- non-NoneL and False otherwise.
+ non-None, and False otherwise.
"""
- return _core_.Window_SetSizer(*args, **kwargs)
+ return __core.wxWindow_SetSizer(*args, **kwargs)
def SetSizerAndFit(*args, **kwargs):
"""
- SetSizerAndFit(self, Sizer sizer, bool deleteOld=True)
+ SetSizerAndFit(self, wxSizer sizer, bool deleteOld=True)
The same as SetSizer, except it also sets the size hints for the
window based on the sizer's minimum size.
"""
- return _core_.Window_SetSizerAndFit(*args, **kwargs)
+ return __core.wxWindow_SetSizerAndFit(*args, **kwargs)
def GetSizer(*args, **kwargs):
"""
- GetSizer(self) -> Sizer
+ GetSizer(self) -> wxSizer
Return the sizer associated with the window by a previous call to
SetSizer or None if there isn't one.
"""
- return _core_.Window_GetSizer(*args, **kwargs)
+ return __core.wxWindow_GetSizer(*args, **kwargs)
def SetContainingSizer(*args, **kwargs):
"""
- SetContainingSizer(self, Sizer sizer)
+ SetContainingSizer(self, wxSizer sizer)
This normally does not need to be called by application code. It is
called internally when a window is added to a sizer, and is used so
the window can remove itself from the sizer when it is destroyed.
"""
- return _core_.Window_SetContainingSizer(*args, **kwargs)
+ return __core.wxWindow_SetContainingSizer(*args, **kwargs)
def GetContainingSizer(*args, **kwargs):
"""
- GetContainingSizer(self) -> Sizer
+ GetContainingSizer(self) -> wxSizer
Return the sizer that this window is a member of, if any, otherwise None.
"""
- return _core_.Window_GetContainingSizer(*args, **kwargs)
+ return __core.wxWindow_GetContainingSizer(*args, **kwargs)
def InheritAttributes(*args, **kwargs):
"""
ShouldInheritColours to return false, the colours will not be changed
no matter what and only the font might.
- This rather complicated logic is necessary in order to accomodate the
- different usage scenarius. The most common one is when all default
+ This rather complicated logic is necessary in order to accommodate the
+ different usage scenarios. The most common one is when all default
attributes are used and in this case, nothing should be inherited as
in modern GUIs different controls use different fonts (and colours)
than their siblings so they can't inherit the same value from the
parents attributes.
"""
- return _core_.Window_InheritAttributes(*args, **kwargs)
+ return __core.wxWindow_InheritAttributes(*args, **kwargs)
def ShouldInheritColours(*args, **kwargs):
"""
The base class version returns false, but this method is overridden in
wxControl where it returns true.
"""
- return _core_.Window_ShouldInheritColours(*args, **kwargs)
+ return __core.wxWindow_ShouldInheritColours(*args, **kwargs)
def PostCreate(self, pre):
"""
self._setCallbackInfo(self, self.__class__)
-class WindowPtr(Window):
+class wxWindowPtr(wxWindow):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = Window
-_core_.Window_swigregister(WindowPtr)
+ self.__class__ = wxWindow
+__core.wxWindow_swigregister(wxWindowPtr)
def PreWindow(*args, **kwargs):
"""
- PreWindow() -> Window
+ PreWindow() -> wxWindow
Precreate a Window for 2-phase creation.
"""
- val = _core_.new_PreWindow(*args, **kwargs)
+ val = __core.new_PreWindow(*args, **kwargs)
val.thisown = 1
return val
-def Window_NewControlId(*args, **kwargs):
+def wxWindow_NewControlId(*args, **kwargs):
"""
- Window_NewControlId() -> int
+ wxWindow_NewControlId() -> int
Generate a control id for the controls which were not given one.
"""
- return _core_.Window_NewControlId(*args, **kwargs)
+ return __core.wxWindow_NewControlId(*args, **kwargs)
-def Window_NextControlId(*args, **kwargs):
+def wxWindow_NextControlId(*args, **kwargs):
"""
- Window_NextControlId(int winid) -> int
+ wxWindow_NextControlId(int winid) -> int
Get the id of the control following the one with the given
autogenerated) id
"""
- return _core_.Window_NextControlId(*args, **kwargs)
+ return __core.wxWindow_NextControlId(*args, **kwargs)
-def Window_PrevControlId(*args, **kwargs):
+def wxWindow_PrevControlId(*args, **kwargs):
"""
- Window_PrevControlId(int winid) -> int
+ wxWindow_PrevControlId(int winid) -> int
Get the id of the control preceding the one with the given
autogenerated) id
"""
- return _core_.Window_PrevControlId(*args, **kwargs)
+ return __core.wxWindow_PrevControlId(*args, **kwargs)
-def Window_FindFocus(*args, **kwargs):
+def wxWindow_FindFocus(*args, **kwargs):
"""
- Window_FindFocus() -> Window
+ wxWindow_FindFocus() -> wxWindow
Returns the window or control that currently has the keyboard focus,
or None.
"""
- return _core_.Window_FindFocus(*args, **kwargs)
+ return __core.wxWindow_FindFocus(*args, **kwargs)
-def Window_GetCapture(*args, **kwargs):
+def wxWindow_GetCapture(*args, **kwargs):
"""
- Window_GetCapture() -> Window
+ wxWindow_GetCapture() -> wxWindow
Returns the window which currently captures the mouse or None
"""
- return _core_.Window_GetCapture(*args, **kwargs)
+ return __core.wxWindow_GetCapture(*args, **kwargs)
-def Window_GetClassDefaultAttributes(*args, **kwargs):
+def wxWindow_GetClassDefaultAttributes(*args, **kwargs):
"""
- Window_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
+ wxWindow_GetClassDefaultAttributes(int variant=wxWINDOW_VARIANT_NORMAL) -> wxVisualAttributes
Get the default attributes for this class. This is useful if you want
to use the same font or colour in your own control as in a standard
the returned font. See `wx.Window.SetWindowVariant` for more about
this.
"""
- return _core_.Window_GetClassDefaultAttributes(*args, **kwargs)
+ return __core.wxWindow_GetClassDefaultAttributes(*args, **kwargs)
def DLG_PNT(win, point_or_x, y=None):
"""
return win.ConvertDialogSizeToPixels(wx.Size(size_width, height))
-def FindWindowById(*args, **kwargs):
+def wxFindWindowById(*args, **kwargs):
"""
- FindWindowById(long id, Window parent=None) -> Window
+ wxFindWindowById(long id, wxWindow parent=None) -> wxWindow
Find the first window in the application with the given id. If parent
is None, the search will start from all top-level frames and dialog
boxes; if non-None, the search will be limited to the given window
hierarchy. The search is recursive in both cases.
"""
- return _core_.FindWindowById(*args, **kwargs)
+ return __core.wxFindWindowById(*args, **kwargs)
-def FindWindowByName(*args, **kwargs):
+def wxFindWindowByName(*args, **kwargs):
"""
- FindWindowByName(String name, Window parent=None) -> Window
+ wxFindWindowByName(wxString name, wxWindow parent=None) -> wxWindow
Find a window by its name (as given in a window constructor or Create
function call). If parent is None, the search will start from all
If no window with such name is found, wx.FindWindowByLabel is called.
"""
- return _core_.FindWindowByName(*args, **kwargs)
+ return __core.wxFindWindowByName(*args, **kwargs)
-def FindWindowByLabel(*args, **kwargs):
+def wxFindWindowByLabel(*args, **kwargs):
"""
- FindWindowByLabel(String label, Window parent=None) -> Window
+ wxFindWindowByLabel(wxString label, wxWindow parent=None) -> wxWindow
Find a window by its label. Depending on the type of window, the label
may be a window title or panel item label. If parent is None, the
non-None, the search will be limited to the given window
hierarchy. The search is recursive in both cases.
"""
- return _core_.FindWindowByLabel(*args, **kwargs)
+ return __core.wxFindWindowByLabel(*args, **kwargs)
-def Window_FromHWND(*args, **kwargs):
- """Window_FromHWND(Window parent, unsigned long _hWnd) -> Window"""
- return _core_.Window_FromHWND(*args, **kwargs)
+def wxWindow_FromHWND(*args, **kwargs):
+ """wxWindow_FromHWND(wxWindow parent, unsigned long _hWnd) -> wxWindow"""
+ return __core.wxWindow_FromHWND(*args, **kwargs)
#---------------------------------------------------------------------------
-class Validator(EvtHandler):
+class wxValidator(wxEvtHandler):
+ """Proxy of C++ wxValidator class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxValidator instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
- """__init__(self) -> Validator"""
- newobj = _core_.new_Validator(*args, **kwargs)
+ """__init__(self) -> wxValidator"""
+ newobj = __core.new_wxValidator(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
self._setOORInfo(self)
def Clone(*args, **kwargs):
- """Clone(self) -> Validator"""
- return _core_.Validator_Clone(*args, **kwargs)
+ """Clone(self) -> wxValidator"""
+ return __core.wxValidator_Clone(*args, **kwargs)
def Validate(*args, **kwargs):
- """Validate(self, Window parent) -> bool"""
- return _core_.Validator_Validate(*args, **kwargs)
+ """Validate(self, wxWindow parent) -> bool"""
+ return __core.wxValidator_Validate(*args, **kwargs)
def TransferToWindow(*args, **kwargs):
"""TransferToWindow(self) -> bool"""
- return _core_.Validator_TransferToWindow(*args, **kwargs)
+ return __core.wxValidator_TransferToWindow(*args, **kwargs)
def TransferFromWindow(*args, **kwargs):
"""TransferFromWindow(self) -> bool"""
- return _core_.Validator_TransferFromWindow(*args, **kwargs)
+ return __core.wxValidator_TransferFromWindow(*args, **kwargs)
def GetWindow(*args, **kwargs):
- """GetWindow(self) -> Window"""
- return _core_.Validator_GetWindow(*args, **kwargs)
+ """GetWindow(self) -> wxWindow"""
+ return __core.wxValidator_GetWindow(*args, **kwargs)
def SetWindow(*args, **kwargs):
- """SetWindow(self, Window window)"""
- return _core_.Validator_SetWindow(*args, **kwargs)
+ """SetWindow(self, wxWindow window)"""
+ return __core.wxValidator_SetWindow(*args, **kwargs)
def IsSilent(*args, **kwargs):
"""IsSilent() -> bool"""
- return _core_.Validator_IsSilent(*args, **kwargs)
+ return __core.wxValidator_IsSilent(*args, **kwargs)
IsSilent = staticmethod(IsSilent)
def SetBellOnError(*args, **kwargs):
"""SetBellOnError(int doIt=True)"""
- return _core_.Validator_SetBellOnError(*args, **kwargs)
+ return __core.wxValidator_SetBellOnError(*args, **kwargs)
SetBellOnError = staticmethod(SetBellOnError)
-class ValidatorPtr(Validator):
+class wxValidatorPtr(wxValidator):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = Validator
-_core_.Validator_swigregister(ValidatorPtr)
+ self.__class__ = wxValidator
+__core.wxValidator_swigregister(wxValidatorPtr)
-def Validator_IsSilent(*args, **kwargs):
- """Validator_IsSilent() -> bool"""
- return _core_.Validator_IsSilent(*args, **kwargs)
+def wxValidator_IsSilent(*args, **kwargs):
+ """wxValidator_IsSilent() -> bool"""
+ return __core.wxValidator_IsSilent(*args, **kwargs)
-def Validator_SetBellOnError(*args, **kwargs):
- """Validator_SetBellOnError(int doIt=True)"""
- return _core_.Validator_SetBellOnError(*args, **kwargs)
+def wxValidator_SetBellOnError(*args, **kwargs):
+ """wxValidator_SetBellOnError(int doIt=True)"""
+ return __core.wxValidator_SetBellOnError(*args, **kwargs)
-class PyValidator(Validator):
+class wxPyValidator(wxValidator):
+ """Proxy of C++ wxPyValidator class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxPyValidator instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
- """__init__(self) -> PyValidator"""
- newobj = _core_.new_PyValidator(*args, **kwargs)
+ """__init__(self) -> wxPyValidator"""
+ newobj = __core.new_wxPyValidator(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
def _setCallbackInfo(*args, **kwargs):
"""_setCallbackInfo(self, PyObject self, PyObject _class, int incref=True)"""
- return _core_.PyValidator__setCallbackInfo(*args, **kwargs)
+ return __core.wxPyValidator__setCallbackInfo(*args, **kwargs)
-class PyValidatorPtr(PyValidator):
+class wxPyValidatorPtr(wxPyValidator):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = PyValidator
-_core_.PyValidator_swigregister(PyValidatorPtr)
+ self.__class__ = wxPyValidator
+__core.wxPyValidator_swigregister(wxPyValidatorPtr)
#---------------------------------------------------------------------------
-class Menu(EvtHandler):
+class wxMenu(wxEvtHandler):
+ """Proxy of C++ wxMenu class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxMenu instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
- """__init__(self, String title=EmptyString, long style=0) -> Menu"""
- newobj = _core_.new_Menu(*args, **kwargs)
+ """__init__(self, wxString title=EmptyString, long style=0) -> wxMenu"""
+ newobj = __core.new_wxMenu(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
self._setOORInfo(self)
def Append(*args, **kwargs):
- """Append(self, int id, String text, String help=EmptyString, int kind=ITEM_NORMAL) -> MenuItem"""
- return _core_.Menu_Append(*args, **kwargs)
+ """Append(self, int id, wxString text, wxString help=EmptyString, int kind=wxITEM_NORMAL) -> wxMenuItem"""
+ return __core.wxMenu_Append(*args, **kwargs)
def AppendSeparator(*args, **kwargs):
- """AppendSeparator(self) -> MenuItem"""
- return _core_.Menu_AppendSeparator(*args, **kwargs)
+ """AppendSeparator(self) -> wxMenuItem"""
+ return __core.wxMenu_AppendSeparator(*args, **kwargs)
def AppendCheckItem(*args, **kwargs):
- """AppendCheckItem(self, int id, String text, String help=EmptyString) -> MenuItem"""
- return _core_.Menu_AppendCheckItem(*args, **kwargs)
+ """AppendCheckItem(self, int id, wxString text, wxString help=EmptyString) -> wxMenuItem"""
+ return __core.wxMenu_AppendCheckItem(*args, **kwargs)
def AppendRadioItem(*args, **kwargs):
- """AppendRadioItem(self, int id, String text, String help=EmptyString) -> MenuItem"""
- return _core_.Menu_AppendRadioItem(*args, **kwargs)
+ """AppendRadioItem(self, int id, wxString text, wxString help=EmptyString) -> wxMenuItem"""
+ return __core.wxMenu_AppendRadioItem(*args, **kwargs)
def AppendMenu(*args, **kwargs):
- """AppendMenu(self, int id, String text, Menu submenu, String help=EmptyString) -> MenuItem"""
- return _core_.Menu_AppendMenu(*args, **kwargs)
+ """AppendMenu(self, int id, wxString text, wxMenu submenu, wxString help=EmptyString) -> wxMenuItem"""
+ return __core.wxMenu_AppendMenu(*args, **kwargs)
def AppendItem(*args, **kwargs):
- """AppendItem(self, MenuItem item) -> MenuItem"""
- return _core_.Menu_AppendItem(*args, **kwargs)
+ """AppendItem(self, wxMenuItem item) -> wxMenuItem"""
+ return __core.wxMenu_AppendItem(*args, **kwargs)
def Break(*args, **kwargs):
"""Break(self)"""
- return _core_.Menu_Break(*args, **kwargs)
+ return __core.wxMenu_Break(*args, **kwargs)
def InsertItem(*args, **kwargs):
- """InsertItem(self, size_t pos, MenuItem item) -> MenuItem"""
- return _core_.Menu_InsertItem(*args, **kwargs)
+ """InsertItem(self, size_t pos, wxMenuItem item) -> wxMenuItem"""
+ return __core.wxMenu_InsertItem(*args, **kwargs)
def Insert(*args, **kwargs):
"""
- Insert(self, size_t pos, int id, String text, String help=EmptyString,
- int kind=ITEM_NORMAL) -> MenuItem
+ Insert(self, size_t pos, int id, wxString text, wxString help=EmptyString,
+ int kind=wxITEM_NORMAL) -> wxMenuItem
"""
- return _core_.Menu_Insert(*args, **kwargs)
+ return __core.wxMenu_Insert(*args, **kwargs)
def InsertSeparator(*args, **kwargs):
- """InsertSeparator(self, size_t pos) -> MenuItem"""
- return _core_.Menu_InsertSeparator(*args, **kwargs)
+ """InsertSeparator(self, size_t pos) -> wxMenuItem"""
+ return __core.wxMenu_InsertSeparator(*args, **kwargs)
def InsertCheckItem(*args, **kwargs):
- """InsertCheckItem(self, size_t pos, int id, String text, String help=EmptyString) -> MenuItem"""
- return _core_.Menu_InsertCheckItem(*args, **kwargs)
+ """InsertCheckItem(self, size_t pos, int id, wxString text, wxString help=EmptyString) -> wxMenuItem"""
+ return __core.wxMenu_InsertCheckItem(*args, **kwargs)
def InsertRadioItem(*args, **kwargs):
- """InsertRadioItem(self, size_t pos, int id, String text, String help=EmptyString) -> MenuItem"""
- return _core_.Menu_InsertRadioItem(*args, **kwargs)
+ """InsertRadioItem(self, size_t pos, int id, wxString text, wxString help=EmptyString) -> wxMenuItem"""
+ return __core.wxMenu_InsertRadioItem(*args, **kwargs)
def InsertMenu(*args, **kwargs):
- """InsertMenu(self, size_t pos, int id, String text, Menu submenu, String help=EmptyString) -> MenuItem"""
- return _core_.Menu_InsertMenu(*args, **kwargs)
+ """
+ InsertMenu(self, size_t pos, int id, wxString text, wxMenu submenu,
+ wxString help=EmptyString) -> wxMenuItem
+ """
+ return __core.wxMenu_InsertMenu(*args, **kwargs)
def PrependItem(*args, **kwargs):
- """PrependItem(self, MenuItem item) -> MenuItem"""
- return _core_.Menu_PrependItem(*args, **kwargs)
+ """PrependItem(self, wxMenuItem item) -> wxMenuItem"""
+ return __core.wxMenu_PrependItem(*args, **kwargs)
def Prepend(*args, **kwargs):
- """Prepend(self, int id, String text, String help=EmptyString, int kind=ITEM_NORMAL) -> MenuItem"""
- return _core_.Menu_Prepend(*args, **kwargs)
+ """Prepend(self, int id, wxString text, wxString help=EmptyString, int kind=wxITEM_NORMAL) -> wxMenuItem"""
+ return __core.wxMenu_Prepend(*args, **kwargs)
def PrependSeparator(*args, **kwargs):
- """PrependSeparator(self) -> MenuItem"""
- return _core_.Menu_PrependSeparator(*args, **kwargs)
+ """PrependSeparator(self) -> wxMenuItem"""
+ return __core.wxMenu_PrependSeparator(*args, **kwargs)
def PrependCheckItem(*args, **kwargs):
- """PrependCheckItem(self, int id, String text, String help=EmptyString) -> MenuItem"""
- return _core_.Menu_PrependCheckItem(*args, **kwargs)
+ """PrependCheckItem(self, int id, wxString text, wxString help=EmptyString) -> wxMenuItem"""
+ return __core.wxMenu_PrependCheckItem(*args, **kwargs)
def PrependRadioItem(*args, **kwargs):
- """PrependRadioItem(self, int id, String text, String help=EmptyString) -> MenuItem"""
- return _core_.Menu_PrependRadioItem(*args, **kwargs)
+ """PrependRadioItem(self, int id, wxString text, wxString help=EmptyString) -> wxMenuItem"""
+ return __core.wxMenu_PrependRadioItem(*args, **kwargs)
def PrependMenu(*args, **kwargs):
- """PrependMenu(self, int id, String text, Menu submenu, String help=EmptyString) -> MenuItem"""
- return _core_.Menu_PrependMenu(*args, **kwargs)
+ """PrependMenu(self, int id, wxString text, wxMenu submenu, wxString help=EmptyString) -> wxMenuItem"""
+ return __core.wxMenu_PrependMenu(*args, **kwargs)
def Remove(*args, **kwargs):
- """Remove(self, int id) -> MenuItem"""
- return _core_.Menu_Remove(*args, **kwargs)
+ """Remove(self, int id) -> wxMenuItem"""
+ return __core.wxMenu_Remove(*args, **kwargs)
def RemoveItem(*args, **kwargs):
- """RemoveItem(self, MenuItem item) -> MenuItem"""
- return _core_.Menu_RemoveItem(*args, **kwargs)
+ """RemoveItem(self, wxMenuItem item) -> wxMenuItem"""
+ return __core.wxMenu_RemoveItem(*args, **kwargs)
def Delete(*args, **kwargs):
"""Delete(self, int id) -> bool"""
- return _core_.Menu_Delete(*args, **kwargs)
+ return __core.wxMenu_Delete(*args, **kwargs)
def DeleteItem(*args, **kwargs):
- """DeleteItem(self, MenuItem item) -> bool"""
- return _core_.Menu_DeleteItem(*args, **kwargs)
+ """DeleteItem(self, wxMenuItem item) -> bool"""
+ return __core.wxMenu_DeleteItem(*args, **kwargs)
def Destroy(*args, **kwargs):
"""
Deletes the C++ object this Python object is a proxy for.
"""
- return _core_.Menu_Destroy(*args, **kwargs)
+ return __core.wxMenu_Destroy(*args, **kwargs)
def DestroyId(*args, **kwargs):
"""
Deletes the C++ object this Python object is a proxy for.
"""
- return _core_.Menu_DestroyId(*args, **kwargs)
+ return __core.wxMenu_DestroyId(*args, **kwargs)
def DestroyItem(*args, **kwargs):
"""
- DestroyItem(self, MenuItem item) -> bool
+ DestroyItem(self, wxMenuItem item) -> bool
Deletes the C++ object this Python object is a proxy for.
"""
- return _core_.Menu_DestroyItem(*args, **kwargs)
+ return __core.wxMenu_DestroyItem(*args, **kwargs)
def GetMenuItemCount(*args, **kwargs):
"""GetMenuItemCount(self) -> size_t"""
- return _core_.Menu_GetMenuItemCount(*args, **kwargs)
+ return __core.wxMenu_GetMenuItemCount(*args, **kwargs)
def GetMenuItems(*args, **kwargs):
"""GetMenuItems(self) -> PyObject"""
- return _core_.Menu_GetMenuItems(*args, **kwargs)
+ return __core.wxMenu_GetMenuItems(*args, **kwargs)
def FindItem(*args, **kwargs):
- """FindItem(self, String item) -> int"""
- return _core_.Menu_FindItem(*args, **kwargs)
+ """FindItem(self, wxString item) -> int"""
+ return __core.wxMenu_FindItem(*args, **kwargs)
def FindItemById(*args, **kwargs):
- """FindItemById(self, int id) -> MenuItem"""
- return _core_.Menu_FindItemById(*args, **kwargs)
+ """FindItemById(self, int id) -> wxMenuItem"""
+ return __core.wxMenu_FindItemById(*args, **kwargs)
def FindItemByPosition(*args, **kwargs):
- """FindItemByPosition(self, size_t position) -> MenuItem"""
- return _core_.Menu_FindItemByPosition(*args, **kwargs)
+ """FindItemByPosition(self, size_t position) -> wxMenuItem"""
+ return __core.wxMenu_FindItemByPosition(*args, **kwargs)
def Enable(*args, **kwargs):
"""Enable(self, int id, bool enable)"""
- return _core_.Menu_Enable(*args, **kwargs)
+ return __core.wxMenu_Enable(*args, **kwargs)
def IsEnabled(*args, **kwargs):
"""IsEnabled(self, int id) -> bool"""
- return _core_.Menu_IsEnabled(*args, **kwargs)
+ return __core.wxMenu_IsEnabled(*args, **kwargs)
def Check(*args, **kwargs):
"""Check(self, int id, bool check)"""
- return _core_.Menu_Check(*args, **kwargs)
+ return __core.wxMenu_Check(*args, **kwargs)
def IsChecked(*args, **kwargs):
"""IsChecked(self, int id) -> bool"""
- return _core_.Menu_IsChecked(*args, **kwargs)
+ return __core.wxMenu_IsChecked(*args, **kwargs)
def SetLabel(*args, **kwargs):
- """SetLabel(self, int id, String label)"""
- return _core_.Menu_SetLabel(*args, **kwargs)
+ """SetLabel(self, int id, wxString label)"""
+ return __core.wxMenu_SetLabel(*args, **kwargs)
def GetLabel(*args, **kwargs):
- """GetLabel(self, int id) -> String"""
- return _core_.Menu_GetLabel(*args, **kwargs)
+ """GetLabel(self, int id) -> wxString"""
+ return __core.wxMenu_GetLabel(*args, **kwargs)
def SetHelpString(*args, **kwargs):
- """SetHelpString(self, int id, String helpString)"""
- return _core_.Menu_SetHelpString(*args, **kwargs)
+ """SetHelpString(self, int id, wxString helpString)"""
+ return __core.wxMenu_SetHelpString(*args, **kwargs)
def GetHelpString(*args, **kwargs):
- """GetHelpString(self, int id) -> String"""
- return _core_.Menu_GetHelpString(*args, **kwargs)
+ """GetHelpString(self, int id) -> wxString"""
+ return __core.wxMenu_GetHelpString(*args, **kwargs)
def SetTitle(*args, **kwargs):
- """SetTitle(self, String title)"""
- return _core_.Menu_SetTitle(*args, **kwargs)
+ """SetTitle(self, wxString title)"""
+ return __core.wxMenu_SetTitle(*args, **kwargs)
def GetTitle(*args, **kwargs):
- """GetTitle(self) -> String"""
- return _core_.Menu_GetTitle(*args, **kwargs)
+ """GetTitle(self) -> wxString"""
+ return __core.wxMenu_GetTitle(*args, **kwargs)
def SetEventHandler(*args, **kwargs):
- """SetEventHandler(self, EvtHandler handler)"""
- return _core_.Menu_SetEventHandler(*args, **kwargs)
+ """SetEventHandler(self, wxEvtHandler handler)"""
+ return __core.wxMenu_SetEventHandler(*args, **kwargs)
def GetEventHandler(*args, **kwargs):
- """GetEventHandler(self) -> EvtHandler"""
- return _core_.Menu_GetEventHandler(*args, **kwargs)
+ """GetEventHandler(self) -> wxEvtHandler"""
+ return __core.wxMenu_GetEventHandler(*args, **kwargs)
def SetInvokingWindow(*args, **kwargs):
- """SetInvokingWindow(self, Window win)"""
- return _core_.Menu_SetInvokingWindow(*args, **kwargs)
+ """SetInvokingWindow(self, wxWindow win)"""
+ return __core.wxMenu_SetInvokingWindow(*args, **kwargs)
def GetInvokingWindow(*args, **kwargs):
- """GetInvokingWindow(self) -> Window"""
- return _core_.Menu_GetInvokingWindow(*args, **kwargs)
+ """GetInvokingWindow(self) -> wxWindow"""
+ return __core.wxMenu_GetInvokingWindow(*args, **kwargs)
def GetStyle(*args, **kwargs):
"""GetStyle(self) -> long"""
- return _core_.Menu_GetStyle(*args, **kwargs)
+ return __core.wxMenu_GetStyle(*args, **kwargs)
def UpdateUI(*args, **kwargs):
- """UpdateUI(self, EvtHandler source=None)"""
- return _core_.Menu_UpdateUI(*args, **kwargs)
+ """UpdateUI(self, wxEvtHandler source=None)"""
+ return __core.wxMenu_UpdateUI(*args, **kwargs)
def GetMenuBar(*args, **kwargs):
- """GetMenuBar(self) -> MenuBar"""
- return _core_.Menu_GetMenuBar(*args, **kwargs)
+ """GetMenuBar(self) -> wxMenuBar"""
+ return __core.wxMenu_GetMenuBar(*args, **kwargs)
def Attach(*args, **kwargs):
"""Attach(self, wxMenuBarBase menubar)"""
- return _core_.Menu_Attach(*args, **kwargs)
+ return __core.wxMenu_Attach(*args, **kwargs)
def Detach(*args, **kwargs):
"""Detach(self)"""
- return _core_.Menu_Detach(*args, **kwargs)
+ return __core.wxMenu_Detach(*args, **kwargs)
def IsAttached(*args, **kwargs):
"""IsAttached(self) -> bool"""
- return _core_.Menu_IsAttached(*args, **kwargs)
+ return __core.wxMenu_IsAttached(*args, **kwargs)
def SetParent(*args, **kwargs):
- """SetParent(self, Menu parent)"""
- return _core_.Menu_SetParent(*args, **kwargs)
+ """SetParent(self, wxMenu parent)"""
+ return __core.wxMenu_SetParent(*args, **kwargs)
def GetParent(*args, **kwargs):
- """GetParent(self) -> Menu"""
- return _core_.Menu_GetParent(*args, **kwargs)
+ """GetParent(self) -> wxMenu"""
+ return __core.wxMenu_GetParent(*args, **kwargs)
-class MenuPtr(Menu):
+class wxMenuPtr(wxMenu):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = Menu
-_core_.Menu_swigregister(MenuPtr)
-DefaultValidator = cvar.DefaultValidator
+ self.__class__ = wxMenu
+__core.wxMenu_swigregister(wxMenuPtr)
+wxDefaultValidator = cvar.wxDefaultValidator
#---------------------------------------------------------------------------
-class MenuBar(Window):
+class wxMenuBar(wxWindow):
+ """Proxy of C++ wxMenuBar class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxMenuBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
- """__init__(self, long style=0) -> MenuBar"""
- newobj = _core_.new_MenuBar(*args, **kwargs)
+ """__init__(self, long style=0) -> wxMenuBar"""
+ newobj = __core.new_wxMenuBar(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
self._setOORInfo(self)
def Append(*args, **kwargs):
- """Append(self, Menu menu, String title) -> bool"""
- return _core_.MenuBar_Append(*args, **kwargs)
+ """Append(self, wxMenu menu, wxString title) -> bool"""
+ return __core.wxMenuBar_Append(*args, **kwargs)
def Insert(*args, **kwargs):
- """Insert(self, size_t pos, Menu menu, String title) -> bool"""
- return _core_.MenuBar_Insert(*args, **kwargs)
+ """Insert(self, size_t pos, wxMenu menu, wxString title) -> bool"""
+ return __core.wxMenuBar_Insert(*args, **kwargs)
def GetMenuCount(*args, **kwargs):
"""GetMenuCount(self) -> size_t"""
- return _core_.MenuBar_GetMenuCount(*args, **kwargs)
+ return __core.wxMenuBar_GetMenuCount(*args, **kwargs)
def GetMenu(*args, **kwargs):
- """GetMenu(self, size_t pos) -> Menu"""
- return _core_.MenuBar_GetMenu(*args, **kwargs)
+ """GetMenu(self, size_t pos) -> wxMenu"""
+ return __core.wxMenuBar_GetMenu(*args, **kwargs)
def Replace(*args, **kwargs):
- """Replace(self, size_t pos, Menu menu, String title) -> Menu"""
- return _core_.MenuBar_Replace(*args, **kwargs)
+ """Replace(self, size_t pos, wxMenu menu, wxString title) -> wxMenu"""
+ return __core.wxMenuBar_Replace(*args, **kwargs)
def Remove(*args, **kwargs):
- """Remove(self, size_t pos) -> Menu"""
- return _core_.MenuBar_Remove(*args, **kwargs)
+ """Remove(self, size_t pos) -> wxMenu"""
+ return __core.wxMenuBar_Remove(*args, **kwargs)
def EnableTop(*args, **kwargs):
"""EnableTop(self, size_t pos, bool enable)"""
- return _core_.MenuBar_EnableTop(*args, **kwargs)
+ return __core.wxMenuBar_EnableTop(*args, **kwargs)
def IsEnabledTop(*args, **kwargs):
"""IsEnabledTop(self, size_t pos) -> bool"""
- return _core_.MenuBar_IsEnabledTop(*args, **kwargs)
+ return __core.wxMenuBar_IsEnabledTop(*args, **kwargs)
def SetLabelTop(*args, **kwargs):
- """SetLabelTop(self, size_t pos, String label)"""
- return _core_.MenuBar_SetLabelTop(*args, **kwargs)
+ """SetLabelTop(self, size_t pos, wxString label)"""
+ return __core.wxMenuBar_SetLabelTop(*args, **kwargs)
def GetLabelTop(*args, **kwargs):
- """GetLabelTop(self, size_t pos) -> String"""
- return _core_.MenuBar_GetLabelTop(*args, **kwargs)
+ """GetLabelTop(self, size_t pos) -> wxString"""
+ return __core.wxMenuBar_GetLabelTop(*args, **kwargs)
def FindMenuItem(*args, **kwargs):
- """FindMenuItem(self, String menu, String item) -> int"""
- return _core_.MenuBar_FindMenuItem(*args, **kwargs)
+ """FindMenuItem(self, wxString menu, wxString item) -> int"""
+ return __core.wxMenuBar_FindMenuItem(*args, **kwargs)
def FindItemById(*args, **kwargs):
- """FindItemById(self, int id) -> MenuItem"""
- return _core_.MenuBar_FindItemById(*args, **kwargs)
+ """FindItemById(self, int id) -> wxMenuItem"""
+ return __core.wxMenuBar_FindItemById(*args, **kwargs)
def FindMenu(*args, **kwargs):
- """FindMenu(self, String title) -> int"""
- return _core_.MenuBar_FindMenu(*args, **kwargs)
+ """FindMenu(self, wxString title) -> int"""
+ return __core.wxMenuBar_FindMenu(*args, **kwargs)
def Enable(*args, **kwargs):
"""Enable(self, int id, bool enable)"""
- return _core_.MenuBar_Enable(*args, **kwargs)
+ return __core.wxMenuBar_Enable(*args, **kwargs)
def Check(*args, **kwargs):
"""Check(self, int id, bool check)"""
- return _core_.MenuBar_Check(*args, **kwargs)
+ return __core.wxMenuBar_Check(*args, **kwargs)
def IsChecked(*args, **kwargs):
"""IsChecked(self, int id) -> bool"""
- return _core_.MenuBar_IsChecked(*args, **kwargs)
+ return __core.wxMenuBar_IsChecked(*args, **kwargs)
def IsEnabled(*args, **kwargs):
"""IsEnabled(self, int id) -> bool"""
- return _core_.MenuBar_IsEnabled(*args, **kwargs)
+ return __core.wxMenuBar_IsEnabled(*args, **kwargs)
def SetLabel(*args, **kwargs):
- """SetLabel(self, int id, String label)"""
- return _core_.MenuBar_SetLabel(*args, **kwargs)
+ """SetLabel(self, int id, wxString label)"""
+ return __core.wxMenuBar_SetLabel(*args, **kwargs)
def GetLabel(*args, **kwargs):
- """GetLabel(self, int id) -> String"""
- return _core_.MenuBar_GetLabel(*args, **kwargs)
+ """GetLabel(self, int id) -> wxString"""
+ return __core.wxMenuBar_GetLabel(*args, **kwargs)
def SetHelpString(*args, **kwargs):
- """SetHelpString(self, int id, String helpString)"""
- return _core_.MenuBar_SetHelpString(*args, **kwargs)
+ """SetHelpString(self, int id, wxString helpString)"""
+ return __core.wxMenuBar_SetHelpString(*args, **kwargs)
def GetHelpString(*args, **kwargs):
- """GetHelpString(self, int id) -> String"""
- return _core_.MenuBar_GetHelpString(*args, **kwargs)
+ """GetHelpString(self, int id) -> wxString"""
+ return __core.wxMenuBar_GetHelpString(*args, **kwargs)
def GetFrame(*args, **kwargs):
"""GetFrame(self) -> wxFrame"""
- return _core_.MenuBar_GetFrame(*args, **kwargs)
+ return __core.wxMenuBar_GetFrame(*args, **kwargs)
def IsAttached(*args, **kwargs):
"""IsAttached(self) -> bool"""
- return _core_.MenuBar_IsAttached(*args, **kwargs)
+ return __core.wxMenuBar_IsAttached(*args, **kwargs)
def Attach(*args, **kwargs):
"""Attach(self, wxFrame frame)"""
- return _core_.MenuBar_Attach(*args, **kwargs)
+ return __core.wxMenuBar_Attach(*args, **kwargs)
def Detach(*args, **kwargs):
"""Detach(self)"""
- return _core_.MenuBar_Detach(*args, **kwargs)
+ return __core.wxMenuBar_Detach(*args, **kwargs)
-class MenuBarPtr(MenuBar):
+class wxMenuBarPtr(wxMenuBar):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = MenuBar
-_core_.MenuBar_swigregister(MenuBarPtr)
+ self.__class__ = wxMenuBar
+__core.wxMenuBar_swigregister(wxMenuBarPtr)
#---------------------------------------------------------------------------
-class MenuItem(Object):
+class wxMenuItem(wxObject):
+ """Proxy of C++ wxMenuItem class"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxMenuItem instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
"""
- __init__(self, Menu parentMenu=None, int id=ID_ANY, String text=EmptyString,
- String help=EmptyString, int kind=ITEM_NORMAL,
- Menu subMenu=None) -> MenuItem
+ __init__(self, wxMenu parentMenu=None, int id=wxID_ANY, wxString text=EmptyString,
+ wxString help=EmptyString, int kind=wxITEM_NORMAL,
+ wxMenu subMenu=None) -> wxMenuItem
"""
- newobj = _core_.new_MenuItem(*args, **kwargs)
+ newobj = __core.new_wxMenuItem(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
def GetMenu(*args, **kwargs):
- """GetMenu(self) -> Menu"""
- return _core_.MenuItem_GetMenu(*args, **kwargs)
+ """GetMenu(self) -> wxMenu"""
+ return __core.wxMenuItem_GetMenu(*args, **kwargs)
def SetMenu(*args, **kwargs):
- """SetMenu(self, Menu menu)"""
- return _core_.MenuItem_SetMenu(*args, **kwargs)
+ """SetMenu(self, wxMenu menu)"""
+ return __core.wxMenuItem_SetMenu(*args, **kwargs)
def SetId(*args, **kwargs):
"""SetId(self, int id)"""
- return _core_.MenuItem_SetId(*args, **kwargs)
+ return __core.wxMenuItem_SetId(*args, **kwargs)
def GetId(*args, **kwargs):
"""GetId(self) -> int"""
- return _core_.MenuItem_GetId(*args, **kwargs)
+ return __core.wxMenuItem_GetId(*args, **kwargs)
def IsSeparator(*args, **kwargs):
"""IsSeparator(self) -> bool"""
- return _core_.MenuItem_IsSeparator(*args, **kwargs)
+ return __core.wxMenuItem_IsSeparator(*args, **kwargs)
def SetText(*args, **kwargs):
- """SetText(self, String str)"""
- return _core_.MenuItem_SetText(*args, **kwargs)
+ """SetText(self, wxString str)"""
+ return __core.wxMenuItem_SetText(*args, **kwargs)
def GetLabel(*args, **kwargs):
- """GetLabel(self) -> String"""
- return _core_.MenuItem_GetLabel(*args, **kwargs)
+ """GetLabel(self) -> wxString"""
+ return __core.wxMenuItem_GetLabel(*args, **kwargs)
def GetText(*args, **kwargs):
- """GetText(self) -> String"""
- return _core_.MenuItem_GetText(*args, **kwargs)
+ """GetText(self) -> wxString"""
+ return __core.wxMenuItem_GetText(*args, **kwargs)
def GetLabelFromText(*args, **kwargs):
- """GetLabelFromText(String text) -> String"""
- return _core_.MenuItem_GetLabelFromText(*args, **kwargs)
+ """GetLabelFromText(wxString text) -> wxString"""
+ return __core.wxMenuItem_GetLabelFromText(*args, **kwargs)
GetLabelFromText = staticmethod(GetLabelFromText)
def GetKind(*args, **kwargs):
"""GetKind(self) -> int"""
- return _core_.MenuItem_GetKind(*args, **kwargs)
+ return __core.wxMenuItem_GetKind(*args, **kwargs)
def SetKind(*args, **kwargs):
"""SetKind(self, int kind)"""
- return _core_.MenuItem_SetKind(*args, **kwargs)
+ return __core.wxMenuItem_SetKind(*args, **kwargs)
def SetCheckable(*args, **kwargs):
"""SetCheckable(self, bool checkable)"""
- return _core_.MenuItem_SetCheckable(*args, **kwargs)
+ return __core.wxMenuItem_SetCheckable(*args, **kwargs)
def IsCheckable(*args, **kwargs):
"""IsCheckable(self) -> bool"""
- return _core_.MenuItem_IsCheckable(*args, **kwargs)
+ return __core.wxMenuItem_IsCheckable(*args, **kwargs)
def IsSubMenu(*args, **kwargs):
"""IsSubMenu(self) -> bool"""
- return _core_.MenuItem_IsSubMenu(*args, **kwargs)
+ return __core.wxMenuItem_IsSubMenu(*args, **kwargs)
def SetSubMenu(*args, **kwargs):
- """SetSubMenu(self, Menu menu)"""
- return _core_.MenuItem_SetSubMenu(*args, **kwargs)
+ """SetSubMenu(self, wxMenu menu)"""
+ return __core.wxMenuItem_SetSubMenu(*args, **kwargs)
def GetSubMenu(*args, **kwargs):
- """GetSubMenu(self) -> Menu"""
- return _core_.MenuItem_GetSubMenu(*args, **kwargs)
+ """GetSubMenu(self) -> wxMenu"""
+ return __core.wxMenuItem_GetSubMenu(*args, **kwargs)
def Enable(*args, **kwargs):
"""Enable(self, bool enable=True)"""
- return _core_.MenuItem_Enable(*args, **kwargs)
+ return __core.wxMenuItem_Enable(*args, **kwargs)
def IsEnabled(*args, **kwargs):
"""IsEnabled(self) -> bool"""
- return _core_.MenuItem_IsEnabled(*args, **kwargs)
+ return __core.wxMenuItem_IsEnabled(*args, **kwargs)
def Check(*args, **kwargs):
"""Check(self, bool check=True)"""
- return _core_.MenuItem_Check(*args, **kwargs)
+ return __core.wxMenuItem_Check(*args, **kwargs)
def IsChecked(*args, **kwargs):
"""IsChecked(self) -> bool"""
- return _core_.MenuItem_IsChecked(*args, **kwargs)
+ return __core.wxMenuItem_IsChecked(*args, **kwargs)
def Toggle(*args, **kwargs):
"""Toggle(self)"""
- return _core_.MenuItem_Toggle(*args, **kwargs)
+ return __core.wxMenuItem_Toggle(*args, **kwargs)
def SetHelp(*args, **kwargs):
- """SetHelp(self, String str)"""
- return _core_.MenuItem_SetHelp(*args, **kwargs)
+ """SetHelp(self, wxString str)"""
+ return __core.wxMenuItem_SetHelp(*args, **kwargs)
def GetHelp(*args, **kwargs):
- """GetHelp(self) -> String"""
- return _core_.MenuItem_GetHelp(*args, **kwargs)
+ """GetHelp(self) -> wxString"""
+ return __core.wxMenuItem_GetHelp(*args, **kwargs)
def GetAccel(*args, **kwargs):
- """GetAccel(self) -> AcceleratorEntry"""
- return _core_.MenuItem_GetAccel(*args, **kwargs)
+ """GetAccel(self) -> wxAcceleratorEntry"""
+ return __core.wxMenuItem_GetAccel(*args, **kwargs)
def SetAccel(*args, **kwargs):
- """SetAccel(self, AcceleratorEntry accel)"""
- return _core_.MenuItem_SetAccel(*args, **kwargs)
+ """SetAccel(self, wxAcceleratorEntry accel)"""
+ return __core.wxMenuItem_SetAccel(*args, **kwargs)
+
+ def SetFont(*args, **kwargs):
+ """SetFont(self, wxFont font)"""
+ return __core.wxMenuItem_SetFont(*args, **kwargs)
+
+ def GetFont(*args, **kwargs):
+ """GetFont(self) -> wxFont"""
+ return __core.wxMenuItem_GetFont(*args, **kwargs)
+
+ def SetTextColour(*args, **kwargs):
+ """SetTextColour(self, wxColour colText)"""
+ return __core.wxMenuItem_SetTextColour(*args, **kwargs)
+
+ def GetTextColour(*args, **kwargs):
+ """GetTextColour(self) -> wxColour"""
+ return __core.wxMenuItem_GetTextColour(*args, **kwargs)
+
+ def SetBackgroundColour(*args, **kwargs):
+ """SetBackgroundColour(self, wxColour colBack)"""
+ return __core.wxMenuItem_SetBackgroundColour(*args, **kwargs)
+
+ def GetBackgroundColour(*args, **kwargs):
+ """GetBackgroundColour(self) -> wxColour"""
+ return __core.wxMenuItem_GetBackgroundColour(*args, **kwargs)
+
+ def SetBitmaps(*args, **kwargs):
+ """SetBitmaps(self, wxBitmap bmpChecked, wxBitmap bmpUnchecked=wxNullBitmap)"""
+ return __core.wxMenuItem_SetBitmaps(*args, **kwargs)
+
+ def SetDisabledBitmap(*args, **kwargs):
+ """SetDisabledBitmap(self, wxBitmap bmpDisabled)"""
+ return __core.wxMenuItem_SetDisabledBitmap(*args, **kwargs)
+
+ def GetDisabledBitmap(*args, **kwargs):
+ """GetDisabledBitmap(self) -> wxBitmap"""
+ return __core.wxMenuItem_GetDisabledBitmap(*args, **kwargs)
+
+ def SetMarginWidth(*args, **kwargs):
+ """SetMarginWidth(self, int nWidth)"""
+ return __core.wxMenuItem_SetMarginWidth(*args, **kwargs)
+
+ def GetMarginWidth(*args, **kwargs):
+ """GetMarginWidth(self) -> int"""
+ return __core.wxMenuItem_GetMarginWidth(*args, **kwargs)
def GetDefaultMarginWidth(*args, **kwargs):
"""GetDefaultMarginWidth() -> int"""
- return _core_.MenuItem_GetDefaultMarginWidth(*args, **kwargs)
+ return __core.wxMenuItem_GetDefaultMarginWidth(*args, **kwargs)
GetDefaultMarginWidth = staticmethod(GetDefaultMarginWidth)
+ def IsOwnerDrawn(*args, **kwargs):
+ """IsOwnerDrawn(self) -> bool"""
+ return __core.wxMenuItem_IsOwnerDrawn(*args, **kwargs)
+
+ def SetOwnerDrawn(*args, **kwargs):
+ """SetOwnerDrawn(self, bool ownerDrawn=True)"""
+ return __core.wxMenuItem_SetOwnerDrawn(*args, **kwargs)
+
+ def ResetOwnerDrawn(*args, **kwargs):
+ """ResetOwnerDrawn(self)"""
+ return __core.wxMenuItem_ResetOwnerDrawn(*args, **kwargs)
+
def SetBitmap(*args, **kwargs):
- """SetBitmap(self, Bitmap bitmap)"""
- return _core_.MenuItem_SetBitmap(*args, **kwargs)
+ """SetBitmap(self, wxBitmap bitmap)"""
+ return __core.wxMenuItem_SetBitmap(*args, **kwargs)
def GetBitmap(*args, **kwargs):
- """GetBitmap(self) -> Bitmap"""
- return _core_.MenuItem_GetBitmap(*args, **kwargs)
+ """GetBitmap(self) -> wxBitmap"""
+ return __core.wxMenuItem_GetBitmap(*args, **kwargs)
-class MenuItemPtr(MenuItem):
+class wxMenuItemPtr(wxMenuItem):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = MenuItem
-_core_.MenuItem_swigregister(MenuItemPtr)
+ self.__class__ = wxMenuItem
+__core.wxMenuItem_swigregister(wxMenuItemPtr)
-def MenuItem_GetLabelFromText(*args, **kwargs):
- """MenuItem_GetLabelFromText(String text) -> String"""
- return _core_.MenuItem_GetLabelFromText(*args, **kwargs)
+def wxMenuItem_GetLabelFromText(*args, **kwargs):
+ """wxMenuItem_GetLabelFromText(wxString text) -> wxString"""
+ return __core.wxMenuItem_GetLabelFromText(*args, **kwargs)
-def MenuItem_GetDefaultMarginWidth(*args, **kwargs):
- """MenuItem_GetDefaultMarginWidth() -> int"""
- return _core_.MenuItem_GetDefaultMarginWidth(*args, **kwargs)
+def wxMenuItem_GetDefaultMarginWidth(*args, **kwargs):
+ """wxMenuItem_GetDefaultMarginWidth() -> int"""
+ return __core.wxMenuItem_GetDefaultMarginWidth(*args, **kwargs)
#---------------------------------------------------------------------------
-class Control(Window):
+class wxControl(wxWindow):
"""
This is the base class for a control or 'widget'.
return "<%s.%s; proxy of C++ wxControl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
"""
- __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
- Size size=DefaultSize, long style=0, Validator validator=DefaultValidator,
- String name=ControlNameStr) -> Control
+ __init__(self, wxWindow parent, int id=-1, wxPoint pos=wxDefaultPosition,
+ wxSize size=wxDefaultSize, long style=0,
+ wxValidator validator=wxDefaultValidator,
+ wxString name=ControlNameStr) -> wxControl
Create a Control. Normally you should only call this from a subclass'
__init__ as a plain old wx.Control is not very useful.
"""
- newobj = _core_.new_Control(*args, **kwargs)
+ newobj = __core.new_wxControl(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
def Create(*args, **kwargs):
"""
- Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
- Size size=DefaultSize, long style=0, Validator validator=DefaultValidator,
- String name=ControlNameStr) -> bool
+ Create(self, wxWindow parent, int id=-1, wxPoint pos=wxDefaultPosition,
+ wxSize size=wxDefaultSize, long style=0,
+ wxValidator validator=wxDefaultValidator,
+ wxString name=ControlNameStr) -> bool
Do the 2nd phase and create the GUI control.
"""
- return _core_.Control_Create(*args, **kwargs)
+ return __core.wxControl_Create(*args, **kwargs)
def Command(*args, **kwargs):
"""
- Command(self, CommandEvent event)
+ Command(self, wxCommandEvent event)
Simulates the effect of the user issuing a command to the item.
:see: `wx.CommandEvent`
"""
- return _core_.Control_Command(*args, **kwargs)
+ return __core.wxControl_Command(*args, **kwargs)
def GetLabel(*args, **kwargs):
"""
- GetLabel(self) -> String
+ GetLabel(self) -> wxString
Return a control's text.
"""
- return _core_.Control_GetLabel(*args, **kwargs)
+ return __core.wxControl_GetLabel(*args, **kwargs)
def SetLabel(*args, **kwargs):
"""
- SetLabel(self, String label)
+ SetLabel(self, wxString label)
Sets the item's text.
"""
- return _core_.Control_SetLabel(*args, **kwargs)
+ return __core.wxControl_SetLabel(*args, **kwargs)
def GetClassDefaultAttributes(*args, **kwargs):
"""
- GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
+ GetClassDefaultAttributes(int variant=wxWINDOW_VARIANT_NORMAL) -> wxVisualAttributes
Get the default attributes for this class. This is useful if you want
to use the same font or colour in your own control as in a standard
the returned font. See `wx.Window.SetWindowVariant` for more about
this.
"""
- return _core_.Control_GetClassDefaultAttributes(*args, **kwargs)
+ return __core.wxControl_GetClassDefaultAttributes(*args, **kwargs)
GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
-class ControlPtr(Control):
+class wxControlPtr(wxControl):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = Control
-_core_.Control_swigregister(ControlPtr)
+ self.__class__ = wxControl
+__core.wxControl_swigregister(wxControlPtr)
ControlNameStr = cvar.ControlNameStr
def PreControl(*args, **kwargs):
"""
- PreControl() -> Control
+ PreControl() -> wxControl
Precreate a Control control for 2-phase creation
"""
- val = _core_.new_PreControl(*args, **kwargs)
+ val = __core.new_PreControl(*args, **kwargs)
val.thisown = 1
return val
-def Control_GetClassDefaultAttributes(*args, **kwargs):
+def wxControl_GetClassDefaultAttributes(*args, **kwargs):
"""
- Control_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
+ wxControl_GetClassDefaultAttributes(int variant=wxWINDOW_VARIANT_NORMAL) -> wxVisualAttributes
Get the default attributes for this class. This is useful if you want
to use the same font or colour in your own control as in a standard
the returned font. See `wx.Window.SetWindowVariant` for more about
this.
"""
- return _core_.Control_GetClassDefaultAttributes(*args, **kwargs)
+ return __core.wxControl_GetClassDefaultAttributes(*args, **kwargs)
#---------------------------------------------------------------------------
-class ItemContainer(object):
+class wxItemContainer(object):
"""
- wx.ItemContainer defines an interface which is implemented by all
- controls which have string subitems, each of which may be selected,
- such as `wx.ListBox`, `wx.CheckListBox`, `wx.Choice` as well as
- `wx.ComboBox` which implements an extended interface deriving from
+ The wx.ItemContainer class defines an interface which is implemented
+ by all controls which have string subitems, each of which may be
+ selected, such as `wx.ListBox`, `wx.CheckListBox`, `wx.Choice` as well
+ as `wx.ComboBox` which implements an extended interface deriving from
this one.
It defines the methods for accessing the control's items and although
return "<%s.%s; proxy of C++ wxItemContainer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def Append(*args, **kwargs):
"""
- Append(self, String item, PyObject clientData=None) -> int
+ Append(self, wxString item, PyObject clientData=None) -> int
Adds the item to the control, associating the given data with the item
if not None. The return value is the index of the newly added item
which may be different from the last one if the control is sorted (e.g.
has wx.LB_SORT or wx.CB_SORT style).
"""
- return _core_.ItemContainer_Append(*args, **kwargs)
+ return __core.wxItemContainer_Append(*args, **kwargs)
def AppendItems(*args, **kwargs):
"""
method may be much faster than appending the items one by one if you
need to add a lot of items.
"""
- return _core_.ItemContainer_AppendItems(*args, **kwargs)
+ return __core.wxItemContainer_AppendItems(*args, **kwargs)
def Insert(*args, **kwargs):
"""
- Insert(self, String item, int pos, PyObject clientData=None) -> int
+ Insert(self, wxString item, int pos, PyObject clientData=None) -> int
Insert an item into the control before the item at the ``pos`` index,
optionally associating some data object with the item.
"""
- return _core_.ItemContainer_Insert(*args, **kwargs)
+ return __core.wxItemContainer_Insert(*args, **kwargs)
def Clear(*args, **kwargs):
"""
Removes all items from the control.
"""
- return _core_.ItemContainer_Clear(*args, **kwargs)
+ return __core.wxItemContainer_Clear(*args, **kwargs)
def Delete(*args, **kwargs):
"""
enabled) to remove an item with the index negative or greater or equal
than the number of items in the control.
"""
- return _core_.ItemContainer_Delete(*args, **kwargs)
+ return __core.wxItemContainer_Delete(*args, **kwargs)
+
+ def GetClientData(*args, **kwargs):
+ """
+ GetClientData(self, int n) -> PyObject
+
+ Returns the client data associated with the given item, (if any.)
+ """
+ return __core.wxItemContainer_GetClientData(*args, **kwargs)
+
+ def SetClientData(*args, **kwargs):
+ """
+ SetClientData(self, int n, PyObject clientData)
+
+ Associate the given client data with the item at position n.
+ """
+ return __core.wxItemContainer_SetClientData(*args, **kwargs)
def GetCount(*args, **kwargs):
"""
Returns the number of items in the control.
"""
- return _core_.ItemContainer_GetCount(*args, **kwargs)
+ return __core.wxItemContainer_GetCount(*args, **kwargs)
def IsEmpty(*args, **kwargs):
"""
Returns True if the control is empty or False if it has some items.
"""
- return _core_.ItemContainer_IsEmpty(*args, **kwargs)
+ return __core.wxItemContainer_IsEmpty(*args, **kwargs)
def GetString(*args, **kwargs):
"""
- GetString(self, int n) -> String
+ GetString(self, int n) -> wxString
Returns the label of the item with the given index.
"""
- return _core_.ItemContainer_GetString(*args, **kwargs)
+ return __core.wxItemContainer_GetString(*args, **kwargs)
def GetStrings(*args, **kwargs):
"""GetStrings(self) -> wxArrayString"""
- return _core_.ItemContainer_GetStrings(*args, **kwargs)
+ return __core.wxItemContainer_GetStrings(*args, **kwargs)
def SetString(*args, **kwargs):
"""
- SetString(self, int n, String s)
+ SetString(self, int n, wxString s)
Sets the label for the given item.
"""
- return _core_.ItemContainer_SetString(*args, **kwargs)
+ return __core.wxItemContainer_SetString(*args, **kwargs)
def FindString(*args, **kwargs):
"""
- FindString(self, String s) -> int
+ FindString(self, wxString s) -> int
Finds an item whose label matches the given string. Returns the
zero-based position of the item, or ``wx.NOT_FOUND`` if the string was not
found.
"""
- return _core_.ItemContainer_FindString(*args, **kwargs)
+ return __core.wxItemContainer_FindString(*args, **kwargs)
- def Select(*args, **kwargs):
+ def SetSelection(*args, **kwargs):
"""
- Select(self, int n)
+ SetSelection(self, int n)
Sets the item at index 'n' to be the selected item.
"""
- return _core_.ItemContainer_Select(*args, **kwargs)
+ return __core.wxItemContainer_SetSelection(*args, **kwargs)
- SetSelection = Select
def GetSelection(*args, **kwargs):
"""
GetSelection(self) -> int
Returns the index of the selected item or ``wx.NOT_FOUND`` if no item
is selected.
"""
- return _core_.ItemContainer_GetSelection(*args, **kwargs)
+ return __core.wxItemContainer_GetSelection(*args, **kwargs)
+
+ def SetStringSelection(*args, **kwargs):
+ """SetStringSelection(self, wxString s) -> bool"""
+ return __core.wxItemContainer_SetStringSelection(*args, **kwargs)
def GetStringSelection(*args, **kwargs):
"""
- GetStringSelection(self) -> String
+ GetStringSelection(self) -> wxString
Returns the label of the selected item or an empty string if no item
is selected.
"""
- return _core_.ItemContainer_GetStringSelection(*args, **kwargs)
+ return __core.wxItemContainer_GetStringSelection(*args, **kwargs)
- def GetClientData(*args, **kwargs):
- """
- GetClientData(self, int n) -> PyObject
-
- Returns the client data associated with the given item, (if any.)
- """
- return _core_.ItemContainer_GetClientData(*args, **kwargs)
-
- def SetClientData(*args, **kwargs):
+ def Select(*args, **kwargs):
"""
- SetClientData(self, int n, PyObject clientData)
+ Select(self, int n)
- Associate the given client data with the item at position n.
+ This is the same as `SetSelection` and exists only because it is
+ slightly more natural for controls which support multiple selection.
"""
- return _core_.ItemContainer_SetClientData(*args, **kwargs)
+ return __core.wxItemContainer_Select(*args, **kwargs)
-class ItemContainerPtr(ItemContainer):
+class wxItemContainerPtr(wxItemContainer):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = ItemContainer
-_core_.ItemContainer_swigregister(ItemContainerPtr)
+ self.__class__ = wxItemContainer
+__core.wxItemContainer_swigregister(wxItemContainerPtr)
#---------------------------------------------------------------------------
-class ControlWithItems(Control,ItemContainer):
+class wxControlWithItems(wxControl,wxItemContainer):
"""
wx.ControlWithItems combines the ``wx.ItemContainer`` class with the
wx.Control class, and is used for the base class of various controls
def __repr__(self):
return "<%s.%s; proxy of C++ wxControlWithItems instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
-class ControlWithItemsPtr(ControlWithItems):
+class wxControlWithItemsPtr(wxControlWithItems):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = ControlWithItems
-_core_.ControlWithItems_swigregister(ControlWithItemsPtr)
+ self.__class__ = wxControlWithItems
+__core.wxControlWithItems_swigregister(wxControlWithItemsPtr)
#---------------------------------------------------------------------------
-class SizerItem(Object):
+class wxSizerItem(wxObject):
"""
The wx.SizerItem class is used to track the position, size and other
attributes of each item managed by a `wx.Sizer`. In normal usage user
return "<%s.%s; proxy of C++ wxSizerItem instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
"""
- __init__(self) -> SizerItem
+ __init__(self) -> wxSizerItem
Constructs an empty wx.SizerItem. Either a window, sizer or spacer
size will need to be set before this item can be used in a Sizer.
:see: `wx.SizerItemSpacer`, `wx.SizerItemWindow`, `wx.SizerItemSizer`
"""
- newobj = _core_.new_SizerItem(*args, **kwargs)
+ newobj = __core.new_wxSizerItem(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
Destroy the window or the windows in a subsizer, depending on the type
of item.
"""
- return _core_.SizerItem_DeleteWindows(*args, **kwargs)
+ return __core.wxSizerItem_DeleteWindows(*args, **kwargs)
def DetachSizer(*args, **kwargs):
"""
Enable deleting the SizerItem without destroying the contained sizer.
"""
- return _core_.SizerItem_DetachSizer(*args, **kwargs)
+ return __core.wxSizerItem_DetachSizer(*args, **kwargs)
def GetSize(*args, **kwargs):
"""
- GetSize(self) -> Size
+ GetSize(self) -> wxSize
Get the current size of the item, as set in the last Layout.
"""
- return _core_.SizerItem_GetSize(*args, **kwargs)
+ return __core.wxSizerItem_GetSize(*args, **kwargs)
def CalcMin(*args, **kwargs):
"""
- CalcMin(self) -> Size
+ CalcMin(self) -> wxSize
Calculates the minimum desired size for the item, including any space
needed by borders.
"""
- return _core_.SizerItem_CalcMin(*args, **kwargs)
+ return __core.wxSizerItem_CalcMin(*args, **kwargs)
def SetDimension(*args, **kwargs):
"""
- SetDimension(self, Point pos, Size size)
+ SetDimension(self, wxPoint pos, wxSize size)
Set the position and size of the space allocated for this item by the
sizer, and adjust the position and size of the item (window or
subsizer) to be within that space taking alignment and borders into
account.
"""
- return _core_.SizerItem_SetDimension(*args, **kwargs)
+ return __core.wxSizerItem_SetDimension(*args, **kwargs)
def GetMinSize(*args, **kwargs):
"""
- GetMinSize(self) -> Size
+ GetMinSize(self) -> wxSize
Get the minimum size needed for the item.
"""
- return _core_.SizerItem_GetMinSize(*args, **kwargs)
+ return __core.wxSizerItem_GetMinSize(*args, **kwargs)
def GetMinSizeWithBorder(*args, **kwargs):
"""
- GetMinSizeWithBorder(self) -> Size
+ GetMinSizeWithBorder(self) -> wxSize
Get the minimum size needed for the item with space for the borders
added, if needed.
"""
- return _core_.SizerItem_GetMinSizeWithBorder(*args, **kwargs)
+ return __core.wxSizerItem_GetMinSizeWithBorder(*args, **kwargs)
def SetInitSize(*args, **kwargs):
"""SetInitSize(self, int x, int y)"""
- return _core_.SizerItem_SetInitSize(*args, **kwargs)
+ return __core.wxSizerItem_SetInitSize(*args, **kwargs)
def SetRatioWH(*args, **kwargs):
"""
Set the ratio item attribute.
"""
- return _core_.SizerItem_SetRatioWH(*args, **kwargs)
+ return __core.wxSizerItem_SetRatioWH(*args, **kwargs)
def SetRatioSize(*args, **kwargs):
"""
- SetRatioSize(self, Size size)
+ SetRatioSize(self, wxSize size)
Set the ratio item attribute.
"""
- return _core_.SizerItem_SetRatioSize(*args, **kwargs)
+ return __core.wxSizerItem_SetRatioSize(*args, **kwargs)
def SetRatio(*args, **kwargs):
"""
Set the ratio item attribute.
"""
- return _core_.SizerItem_SetRatio(*args, **kwargs)
+ return __core.wxSizerItem_SetRatio(*args, **kwargs)
def GetRatio(*args, **kwargs):
"""
Set the ratio item attribute.
"""
- return _core_.SizerItem_GetRatio(*args, **kwargs)
+ return __core.wxSizerItem_GetRatio(*args, **kwargs)
+
+ def GetRect(*args, **kwargs):
+ """
+ GetRect(self) -> wxRect
+
+ Returns the rectangle that the sizer item should occupy
+ """
+ return __core.wxSizerItem_GetRect(*args, **kwargs)
def IsWindow(*args, **kwargs):
"""
Is this sizer item a window?
"""
- return _core_.SizerItem_IsWindow(*args, **kwargs)
+ return __core.wxSizerItem_IsWindow(*args, **kwargs)
def IsSizer(*args, **kwargs):
"""
Is this sizer item a subsizer?
"""
- return _core_.SizerItem_IsSizer(*args, **kwargs)
+ return __core.wxSizerItem_IsSizer(*args, **kwargs)
def IsSpacer(*args, **kwargs):
"""
Is this sizer item a spacer?
"""
- return _core_.SizerItem_IsSpacer(*args, **kwargs)
+ return __core.wxSizerItem_IsSpacer(*args, **kwargs)
def SetProportion(*args, **kwargs):
"""
Set the proportion value for this item.
"""
- return _core_.SizerItem_SetProportion(*args, **kwargs)
+ return __core.wxSizerItem_SetProportion(*args, **kwargs)
def GetProportion(*args, **kwargs):
"""
Get the proportion value for this item.
"""
- return _core_.SizerItem_GetProportion(*args, **kwargs)
+ return __core.wxSizerItem_GetProportion(*args, **kwargs)
SetOption = wx._deprecated(SetProportion, "Please use `SetProportion` instead.")
GetOption = wx._deprecated(GetProportion, "Please use `GetProportion` instead.")
Set the flag value for this item.
"""
- return _core_.SizerItem_SetFlag(*args, **kwargs)
+ return __core.wxSizerItem_SetFlag(*args, **kwargs)
def GetFlag(*args, **kwargs):
"""
Get the flag value for this item.
"""
- return _core_.SizerItem_GetFlag(*args, **kwargs)
+ return __core.wxSizerItem_GetFlag(*args, **kwargs)
def SetBorder(*args, **kwargs):
"""
Set the border value for this item.
"""
- return _core_.SizerItem_SetBorder(*args, **kwargs)
+ return __core.wxSizerItem_SetBorder(*args, **kwargs)
def GetBorder(*args, **kwargs):
"""
Get the border value for this item.
"""
- return _core_.SizerItem_GetBorder(*args, **kwargs)
+ return __core.wxSizerItem_GetBorder(*args, **kwargs)
def GetWindow(*args, **kwargs):
"""
- GetWindow(self) -> Window
+ GetWindow(self) -> wxWindow
Get the window (if any) that is managed by this sizer item.
"""
- return _core_.SizerItem_GetWindow(*args, **kwargs)
+ return __core.wxSizerItem_GetWindow(*args, **kwargs)
def SetWindow(*args, **kwargs):
"""
- SetWindow(self, Window window)
+ SetWindow(self, wxWindow window)
Set the window to be managed by this sizer item.
"""
- return _core_.SizerItem_SetWindow(*args, **kwargs)
+ return __core.wxSizerItem_SetWindow(*args, **kwargs)
def GetSizer(*args, **kwargs):
"""
- GetSizer(self) -> Sizer
+ GetSizer(self) -> wxSizer
Get the subsizer (if any) that is managed by this sizer item.
"""
- return _core_.SizerItem_GetSizer(*args, **kwargs)
+ return __core.wxSizerItem_GetSizer(*args, **kwargs)
def SetSizer(*args, **kwargs):
"""
- SetSizer(self, Sizer sizer)
+ SetSizer(self, wxSizer sizer)
Set the subsizer to be managed by this sizer item.
"""
- return _core_.SizerItem_SetSizer(*args, **kwargs)
+ return __core.wxSizerItem_SetSizer(*args, **kwargs)
def GetSpacer(*args, **kwargs):
"""
- GetSpacer(self) -> Size
+ GetSpacer(self) -> wxSize
Get the size of the spacer managed by this sizer item.
"""
- return _core_.SizerItem_GetSpacer(*args, **kwargs)
+ return __core.wxSizerItem_GetSpacer(*args, **kwargs)
def SetSpacer(*args, **kwargs):
"""
- SetSpacer(self, Size size)
+ SetSpacer(self, wxSize size)
Set the size of the spacer to be managed by this sizer item.
"""
- return _core_.SizerItem_SetSpacer(*args, **kwargs)
+ return __core.wxSizerItem_SetSpacer(*args, **kwargs)
def Show(*args, **kwargs):
"""
is to be made part of the layout or not. If the item is tracking a
window then it is shown or hidden as needed.
"""
- return _core_.SizerItem_Show(*args, **kwargs)
+ return __core.wxSizerItem_Show(*args, **kwargs)
def IsShown(*args, **kwargs):
"""
Is the item to be shown in the layout?
"""
- return _core_.SizerItem_IsShown(*args, **kwargs)
+ return __core.wxSizerItem_IsShown(*args, **kwargs)
def GetPosition(*args, **kwargs):
"""
- GetPosition(self) -> Point
+ GetPosition(self) -> wxPoint
Returns the current position of the item, as set in the last Layout.
"""
- return _core_.SizerItem_GetPosition(*args, **kwargs)
+ return __core.wxSizerItem_GetPosition(*args, **kwargs)
def GetUserData(*args, **kwargs):
"""
Returns the userData associated with this sizer item, or None if there
isn't any.
"""
- return _core_.SizerItem_GetUserData(*args, **kwargs)
+ return __core.wxSizerItem_GetUserData(*args, **kwargs)
-class SizerItemPtr(SizerItem):
+class wxSizerItemPtr(wxSizerItem):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = SizerItem
-_core_.SizerItem_swigregister(SizerItemPtr)
+ self.__class__ = wxSizerItem
+__core.wxSizerItem_swigregister(wxSizerItemPtr)
def SizerItemWindow(*args, **kwargs):
"""
- SizerItemWindow(Window window, int proportion, int flag, int border,
- PyObject userData=None) -> SizerItem
+ SizerItemWindow(wxWindow window, int proportion, int flag, int border,
+ PyObject userData=None) -> wxSizerItem
Constructs a `wx.SizerItem` for tracking a window.
"""
- val = _core_.new_SizerItemWindow(*args, **kwargs)
+ val = __core.new_SizerItemWindow(*args, **kwargs)
val.thisown = 1
return val
def SizerItemSpacer(*args, **kwargs):
"""
SizerItemSpacer(int width, int height, int proportion, int flag, int border,
- PyObject userData=None) -> SizerItem
+ PyObject userData=None) -> wxSizerItem
Constructs a `wx.SizerItem` for tracking a spacer.
"""
- val = _core_.new_SizerItemSpacer(*args, **kwargs)
+ val = __core.new_SizerItemSpacer(*args, **kwargs)
val.thisown = 1
return val
def SizerItemSizer(*args, **kwargs):
"""
- SizerItemSizer(Sizer sizer, int proportion, int flag, int border,
- PyObject userData=None) -> SizerItem
+ SizerItemSizer(wxSizer sizer, int proportion, int flag, int border,
+ PyObject userData=None) -> wxSizerItem
Constructs a `wx.SizerItem` for tracking a subsizer
"""
- val = _core_.new_SizerItemSizer(*args, **kwargs)
+ val = __core.new_SizerItemSizer(*args, **kwargs)
val.thisown = 1
return val
-class Sizer(Object):
+class wxSizer(wxObject):
"""
wx.Sizer is the abstract base class used for laying out subwindows in
a window. You cannot use wx.Sizer directly; instead, you will have to
return "<%s.%s; proxy of C++ wxSizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def _setOORInfo(*args, **kwargs):
"""_setOORInfo(self, PyObject _self)"""
- return _core_.Sizer__setOORInfo(*args, **kwargs)
+ return __core.wxSizer__setOORInfo(*args, **kwargs)
def Add(*args, **kwargs):
"""
Add(self, item, int proportion=0, int flag=0, int border=0,
- PyObject userData=None)
+ PyObject userData=None) -> wx.SizerItem
Appends a child item to the sizer.
"""
- return _core_.Sizer_Add(*args, **kwargs)
+ return __core.wxSizer_Add(*args, **kwargs)
def Insert(*args, **kwargs):
"""
Insert(self, int before, item, int proportion=0, int flag=0, int border=0,
- PyObject userData=None)
+ PyObject userData=None) -> wx.SizerItem
Inserts a new item into the list of items managed by this sizer before
the item at index *before*. See `Add` for a description of the parameters.
"""
- return _core_.Sizer_Insert(*args, **kwargs)
+ return __core.wxSizer_Insert(*args, **kwargs)
def Prepend(*args, **kwargs):
"""
Prepend(self, item, int proportion=0, int flag=0, int border=0,
- PyObject userData=None)
+ PyObject userData=None) -> wx.SizerItem
Adds a new item to the begining of the list of sizer items managed by
this sizer. See `Add` for a description of the parameters.
"""
- return _core_.Sizer_Prepend(*args, **kwargs)
+ return __core.wxSizer_Prepend(*args, **kwargs)
def Remove(*args, **kwargs):
"""
index of an item to remove. Returns True if the child item was found
and removed.
"""
- return _core_.Sizer_Remove(*args, **kwargs)
+ return __core.wxSizer_Remove(*args, **kwargs)
def Detach(*args, **kwargs):
"""
zero-based index of the item to be detached. Returns True if the child item
was found and detached.
"""
- return _core_.Sizer_Detach(*args, **kwargs)
+ return __core.wxSizer_Detach(*args, **kwargs)
+
+ def GetItem(*args, **kwargs):
+ """
+ GetItem(self, item) -> wx.SizerItem
+
+ Returns the `wx.SizerItem` which holds the *item* given. The *item*
+ parameter can be either a window, a sizer, or the zero-based index of
+ the item to be detached.
+ """
+ return __core.wxSizer_GetItem(*args, **kwargs)
def _SetItemMinSize(*args, **kwargs):
- """_SetItemMinSize(self, PyObject item, Size size)"""
- return _core_.Sizer__SetItemMinSize(*args, **kwargs)
+ """_SetItemMinSize(self, PyObject item, wxSize size)"""
+ return __core.wxSizer__SetItemMinSize(*args, **kwargs)
def SetItemMinSize(self, item, *args):
"""
Adds a `wx.SizerItem` to the sizer.
"""
- return _core_.Sizer_AddItem(*args, **kwargs)
+ return __core.wxSizer_AddItem(*args, **kwargs)
def InsertItem(*args, **kwargs):
"""
Inserts a `wx.SizerItem` to the sizer at the position given by *index*.
"""
- return _core_.Sizer_InsertItem(*args, **kwargs)
+ return __core.wxSizer_InsertItem(*args, **kwargs)
def PrependItem(*args, **kwargs):
"""
Prepends a `wx.SizerItem` to the sizer.
"""
- return _core_.Sizer_PrependItem(*args, **kwargs)
+ return __core.wxSizer_PrependItem(*args, **kwargs)
def AddMany(self, items):
"""
self.Add(*item)
# for backwards compatibility only, please do not use in new code
- AddWindow = wx._deprecated(Add, "AddWindow is deprecated, use `Add` instead.")
- AddSizer = wx._deprecated(Add, "AddSizer is deprecated, use `Add` instead.")
- AddSpacer = wx._deprecated(Add, "AddSpacer is deprecated, use `Add` instead.")
- PrependWindow = wx._deprecated(Prepend, "PrependWindow is deprecated, use `Prepend` instead.")
- PrependSizer = wx._deprecated(Prepend, "PrependSizer is deprecated, use `Prepend` instead.")
- PrependSpacer = wx._deprecated(Prepend, "PrependSpacer is deprecated, use `Prepend` instead.")
- InsertWindow = wx._deprecated(Insert, "InsertWindow is deprecated, use `Insert` instead.")
- InsertSizer = wx._deprecated(Insert, "InsertSizer is deprecated, use `Insert` instead.")
- InsertSpacer = wx._deprecated(Insert, "InsertSpacer is deprecated, use `Insert` instead.")
- RemoveWindow = wx._deprecated(Remove, "RemoveWindow is deprecated, use `Remove` instead.")
- RemoveSizer = wx._deprecated(Remove, "RemoveSizer is deprecated, use `Remove` instead.")
- RemovePos = wx._deprecated(Remove, "RemovePos is deprecated, use `Remove` instead.")
+ def AddWindow(self, *args, **kw):
+ """Compatibility alias for `Add`."""
+ return self.Add(*args, **kw)
+ def AddSizer(self, *args, **kw):
+ """Compatibility alias for `Add`."""
+ return self.Add(*args, **kw)
+ def AddSpacer(self, *args, **kw):
+ """Compatibility alias for `Add`."""
+ return self.Add(*args, **kw)
+
+ def PrependWindow(self, *args, **kw):
+ """Compatibility alias for `Prepend`."""
+ return self.Prepend(*args, **kw)
+ def PrependSizer(self, *args, **kw):
+ """Compatibility alias for `Prepend`."""
+ return self.Prepend(*args, **kw)
+ def PrependSpacer(self, *args, **kw):
+ """Compatibility alias for `Prepend`."""
+ return self.Prepend(*args, **kw)
+
+ def InsertWindow(self, *args, **kw):
+ """Compatibility alias for `Insert`."""
+ return self.Insert(*args, **kw)
+ def InsertSizer(self, *args, **kw):
+ """Compatibility alias for `Insert`."""
+ return self.Insert(*args, **kw)
+ def InsertSpacer(self, *args, **kw):
+ """Compatibility alias for `Insert`."""
+ return self.Insert(*args, **kw)
+
+ def RemoveWindow(self, *args, **kw):
+ """Compatibility alias for `Remove`."""
+ return self.Remove(*args, **kw)
+ def RemoveSizer(self, *args, **kw):
+ """Compatibility alias for `Remove`."""
+ return self.Remove(*args, **kw)
+ def RemovePos(self, *args, **kw):
+ """Compatibility alias for `Remove`."""
+ return self.Remove(*args, **kw)
def SetDimension(*args, **kwargs):
the rules defined by the parameter in the `Add`, `Insert` or `Prepend`
methods.
"""
- return _core_.Sizer_SetDimension(*args, **kwargs)
+ return __core.wxSizer_SetDimension(*args, **kwargs)
def SetMinSize(*args, **kwargs):
"""
- SetMinSize(self, Size size)
+ SetMinSize(self, wxSize size)
Call this to give the sizer a minimal size. Normally, the sizer will
calculate its minimal size based purely on how much space its children
minimal size as requested by its children or the minimal size set
here, depending on which is bigger.
"""
- return _core_.Sizer_SetMinSize(*args, **kwargs)
+ return __core.wxSizer_SetMinSize(*args, **kwargs)
def GetSize(*args, **kwargs):
"""
- GetSize(self) -> Size
+ GetSize(self) -> wxSize
Returns the current size of the space managed by the sizer.
"""
- return _core_.Sizer_GetSize(*args, **kwargs)
+ return __core.wxSizer_GetSize(*args, **kwargs)
def GetPosition(*args, **kwargs):
"""
- GetPosition(self) -> Point
+ GetPosition(self) -> wxPoint
Returns the current position of the sizer's managed space.
"""
- return _core_.Sizer_GetPosition(*args, **kwargs)
+ return __core.wxSizer_GetPosition(*args, **kwargs)
def GetMinSize(*args, **kwargs):
"""
- GetMinSize(self) -> Size
+ GetMinSize(self) -> wxSize
Returns the minimal size of the sizer. This is either the combined
minimal size of all the children and their borders or the minimal size
set by SetMinSize, depending on which is bigger.
"""
- return _core_.Sizer_GetMinSize(*args, **kwargs)
+ return __core.wxSizer_GetMinSize(*args, **kwargs)
def GetSizeTuple(self):
return self.GetSize().Get()
items managed by this sizer. You should not need to call this directly as
it is called by `Layout`.
"""
- return _core_.Sizer_RecalcSizes(*args, **kwargs)
+ return __core.wxSizer_RecalcSizes(*args, **kwargs)
def CalcMin(*args, **kwargs):
"""
- CalcMin(self) -> Size
+ CalcMin(self) -> wxSize
This method is where the sizer will do the actual calculation of its
children's minimal sizes. You should not need to call this directly as
it is called by `Layout`.
"""
- return _core_.Sizer_CalcMin(*args, **kwargs)
+ return __core.wxSizer_CalcMin(*args, **kwargs)
def Layout(*args, **kwargs):
"""
one of the items in a sizer change size, or items are added or
removed.
"""
- return _core_.Sizer_Layout(*args, **kwargs)
+ return __core.wxSizer_Layout(*args, **kwargs)
def Fit(*args, **kwargs):
"""
- Fit(self, Window window) -> Size
+ Fit(self, wxWindow window) -> wxSize
Tell the sizer to resize the *window* to match the sizer's minimal
size. This is commonly done in the constructor of the window itself in
For a top level window this is the total window size, not the client size.
"""
- return _core_.Sizer_Fit(*args, **kwargs)
+ return __core.wxSizer_Fit(*args, **kwargs)
def FitInside(*args, **kwargs):
"""
- FitInside(self, Window window)
+ FitInside(self, wxWindow window)
Tell the sizer to resize the *virtual size* of the *window* to match the
sizer's minimal size. This will not alter the on screen size of the
:see: `wx.ScrolledWindow.SetScrollbars`, `SetVirtualSizeHints`
"""
- return _core_.Sizer_FitInside(*args, **kwargs)
+ return __core.wxSizer_FitInside(*args, **kwargs)
def SetSizeHints(*args, **kwargs):
"""
- SetSizeHints(self, Window window)
+ SetSizeHints(self, wxWindow window)
Tell the sizer to set (and `Fit`) the minimal size of the *window* to
match the sizer's minimal size. This is commonly done in the
to prevent the window from being sized smaller than the minimal size
required by the sizer.
"""
- return _core_.Sizer_SetSizeHints(*args, **kwargs)
+ return __core.wxSizer_SetSizeHints(*args, **kwargs)
def SetVirtualSizeHints(*args, **kwargs):
"""
- SetVirtualSizeHints(self, Window window)
+ SetVirtualSizeHints(self, wxWindow window)
Tell the sizer to set the minimal size of the window virtual area to
match the sizer's minimal size. For windows with managed scrollbars
:see: `wx.ScrolledWindow.SetScrollbars`
"""
- return _core_.Sizer_SetVirtualSizeHints(*args, **kwargs)
+ return __core.wxSizer_SetVirtualSizeHints(*args, **kwargs)
def Clear(*args, **kwargs):
"""
Clear all items from the sizer, optionally destroying the window items
as well.
"""
- return _core_.Sizer_Clear(*args, **kwargs)
+ return __core.wxSizer_Clear(*args, **kwargs)
def DeleteWindows(*args, **kwargs):
"""
Destroy all windows managed by the sizer.
"""
- return _core_.Sizer_DeleteWindows(*args, **kwargs)
+ return __core.wxSizer_DeleteWindows(*args, **kwargs)
def GetChildren(*args, **kwargs):
"""
- GetChildren(sefl) -> list
+ GetChildren(self) -> list
Returns a list of all the `wx.SizerItem` objects managed by the sizer.
"""
- return _core_.Sizer_GetChildren(*args, **kwargs)
+ return __core.wxSizer_GetChildren(*args, **kwargs)
def Show(*args, **kwargs):
"""
- Show(self, item, bool show=True, bool recursive=False) -> bool
+ Show(self, item, bool show=True, bool recursive=false) -> bool
Shows or hides an item managed by the sizer. To make a sizer item
disappear or reappear, use Show followed by `Layout`. The *item*
the item. Use the recursive parameter to show or hide an item in a
subsizer. Returns True if the item was found.
"""
- return _core_.Sizer_Show(*args, **kwargs)
+ return __core.wxSizer_Show(*args, **kwargs)
def IsShown(*args, **kwargs):
"""
parameter can be either a window, a sizer, or the zero-based index of
the item.
"""
- return _core_.Sizer_IsShown(*args, **kwargs)
+ return __core.wxSizer_IsShown(*args, **kwargs)
def Hide(self, item, recursive=False):
"""
- A convenience method for Show(item, False, recursive).
+ A convenience method for `Show`(item, False, recursive).
"""
return self.Show(item, False, recursive)
"""
ShowItems(self, bool show)
- Recursively call `wx.Window.Show` on all sizer items.
+ Recursively call `wx.SizerItem.Show` on all sizer items.
"""
- return _core_.Sizer_ShowItems(*args, **kwargs)
+ return __core.wxSizer_ShowItems(*args, **kwargs)
-class SizerPtr(Sizer):
+class wxSizerPtr(wxSizer):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = Sizer
-_core_.Sizer_swigregister(SizerPtr)
+ self.__class__ = wxSizer
+__core.wxSizer_swigregister(wxSizerPtr)
-class PySizer(Sizer):
+class wxPySizer(wxSizer):
"""
wx.PySizer is a special version of `wx.Sizer` that has been
instrumented to allow the C++ virtual methods to be overloaded in
When `Layout` is called it first calls `CalcMin` followed by
`RecalcSizes` so you can optimize a bit by saving the results of
- `CalcMin` and resuing them in `RecalcSizes`.
+ `CalcMin` and reusing them in `RecalcSizes`.
:see: `wx.SizerItem`, `wx.Sizer.GetChildren`
return "<%s.%s; proxy of C++ wxPySizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
"""
- __init__(self) -> PySizer
+ __init__(self) -> wxPySizer
Creates a wx.PySizer. Must be called from the __init__ in the derived
class.
"""
- newobj = _core_.new_PySizer(*args, **kwargs)
+ newobj = __core.new_wxPySizer(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
def _setCallbackInfo(*args, **kwargs):
"""_setCallbackInfo(self, PyObject self, PyObject _class)"""
- return _core_.PySizer__setCallbackInfo(*args, **kwargs)
+ return __core.wxPySizer__setCallbackInfo(*args, **kwargs)
-class PySizerPtr(PySizer):
+class wxPySizerPtr(wxPySizer):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = PySizer
-_core_.PySizer_swigregister(PySizerPtr)
+ self.__class__ = wxPySizer
+__core.wxPySizer_swigregister(wxPySizerPtr)
#---------------------------------------------------------------------------
-class BoxSizer(Sizer):
+class wxBoxSizer(wxSizer):
"""
The basic idea behind a box sizer is that windows will most often be
laid out in rather simple basic geometry, typically in a row or a
return "<%s.%s; proxy of C++ wxBoxSizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
"""
- __init__(self, int orient=HORIZONTAL) -> BoxSizer
+ __init__(self, int orient=wxHORIZONTAL) -> wxBoxSizer
Constructor for a wx.BoxSizer. *orient* may be one of ``wx.VERTICAL``
or ``wx.HORIZONTAL`` for creating either a column sizer or a row
sizer.
"""
- newobj = _core_.new_BoxSizer(*args, **kwargs)
+ newobj = __core.new_wxBoxSizer(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
Returns the current orientation of the sizer.
"""
- return _core_.BoxSizer_GetOrientation(*args, **kwargs)
+ return __core.wxBoxSizer_GetOrientation(*args, **kwargs)
def SetOrientation(*args, **kwargs):
"""
Resets the orientation of the sizer.
"""
- return _core_.BoxSizer_SetOrientation(*args, **kwargs)
+ return __core.wxBoxSizer_SetOrientation(*args, **kwargs)
-class BoxSizerPtr(BoxSizer):
+class wxBoxSizerPtr(wxBoxSizer):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = BoxSizer
-_core_.BoxSizer_swigregister(BoxSizerPtr)
+ self.__class__ = wxBoxSizer
+__core.wxBoxSizer_swigregister(wxBoxSizerPtr)
#---------------------------------------------------------------------------
-class StaticBoxSizer(BoxSizer):
+class wxStaticBoxSizer(wxBoxSizer):
"""
wx.StaticBoxSizer derives from and functions identically to the
`wx.BoxSizer` and adds a `wx.StaticBox` around the items that the sizer
return "<%s.%s; proxy of C++ wxStaticBoxSizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
"""
- __init__(self, StaticBox box, int orient=HORIZONTAL) -> StaticBoxSizer
+ __init__(self, wxStaticBox box, int orient=wxHORIZONTAL) -> wxStaticBoxSizer
Constructor. It takes an associated static box and the orientation
*orient* as parameters - orient can be either of ``wx.VERTICAL`` or
``wx.HORIZONTAL``.
"""
- newobj = _core_.new_StaticBoxSizer(*args, **kwargs)
+ newobj = __core.new_wxStaticBoxSizer(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
def GetStaticBox(*args, **kwargs):
"""
- GetStaticBox(self) -> StaticBox
+ GetStaticBox(self) -> wxStaticBox
Returns the static box associated with this sizer.
"""
- return _core_.StaticBoxSizer_GetStaticBox(*args, **kwargs)
+ return __core.wxStaticBoxSizer_GetStaticBox(*args, **kwargs)
-class StaticBoxSizerPtr(StaticBoxSizer):
+class wxStaticBoxSizerPtr(wxStaticBoxSizer):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = StaticBoxSizer
-_core_.StaticBoxSizer_swigregister(StaticBoxSizerPtr)
+ self.__class__ = wxStaticBoxSizer
+__core.wxStaticBoxSizer_swigregister(wxStaticBoxSizerPtr)
#---------------------------------------------------------------------------
-class GridSizer(Sizer):
+class wxGridSizer(wxSizer):
"""
A grid sizer is a sizer which lays out its children in a
two-dimensional table with all cells having the same size. In other
return "<%s.%s; proxy of C++ wxGridSizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
"""
- __init__(self, int rows=1, int cols=0, int vgap=0, int hgap=0) -> GridSizer
+ __init__(self, int rows=1, int cols=0, int vgap=0, int hgap=0) -> wxGridSizer
Constructor for a wx.GridSizer. *rows* and *cols* determine the number
of columns and rows in the sizer - if either of the parameters is
the sizer, thus making the sizer grow dynamically. *vgap* and *hgap*
define extra space between all children.
"""
- newobj = _core_.new_GridSizer(*args, **kwargs)
+ newobj = __core.new_wxGridSizer(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
Sets the number of columns in the sizer.
"""
- return _core_.GridSizer_SetCols(*args, **kwargs)
+ return __core.wxGridSizer_SetCols(*args, **kwargs)
def SetRows(*args, **kwargs):
"""
Sets the number of rows in the sizer.
"""
- return _core_.GridSizer_SetRows(*args, **kwargs)
+ return __core.wxGridSizer_SetRows(*args, **kwargs)
def SetVGap(*args, **kwargs):
"""
Sets the vertical gap (in pixels) between the cells in the sizer.
"""
- return _core_.GridSizer_SetVGap(*args, **kwargs)
+ return __core.wxGridSizer_SetVGap(*args, **kwargs)
def SetHGap(*args, **kwargs):
"""
Sets the horizontal gap (in pixels) between cells in the sizer
"""
- return _core_.GridSizer_SetHGap(*args, **kwargs)
+ return __core.wxGridSizer_SetHGap(*args, **kwargs)
def GetCols(*args, **kwargs):
"""
Returns the number of columns in the sizer.
"""
- return _core_.GridSizer_GetCols(*args, **kwargs)
+ return __core.wxGridSizer_GetCols(*args, **kwargs)
def GetRows(*args, **kwargs):
"""
Returns the number of rows in the sizer.
"""
- return _core_.GridSizer_GetRows(*args, **kwargs)
+ return __core.wxGridSizer_GetRows(*args, **kwargs)
def GetVGap(*args, **kwargs):
"""
Returns the vertical gap (in pixels) between the cells in the sizer.
"""
- return _core_.GridSizer_GetVGap(*args, **kwargs)
+ return __core.wxGridSizer_GetVGap(*args, **kwargs)
def GetHGap(*args, **kwargs):
"""
Returns the horizontal gap (in pixels) between cells in the sizer.
"""
- return _core_.GridSizer_GetHGap(*args, **kwargs)
+ return __core.wxGridSizer_GetHGap(*args, **kwargs)
-class GridSizerPtr(GridSizer):
+class wxGridSizerPtr(wxGridSizer):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = GridSizer
-_core_.GridSizer_swigregister(GridSizerPtr)
+ self.__class__ = wxGridSizer
+__core.wxGridSizer_swigregister(wxGridSizerPtr)
#---------------------------------------------------------------------------
-FLEX_GROWMODE_NONE = _core_.FLEX_GROWMODE_NONE
-FLEX_GROWMODE_SPECIFIED = _core_.FLEX_GROWMODE_SPECIFIED
-FLEX_GROWMODE_ALL = _core_.FLEX_GROWMODE_ALL
-class FlexGridSizer(GridSizer):
+wxFLEX_GROWMODE_NONE = __core.wxFLEX_GROWMODE_NONE
+wxFLEX_GROWMODE_SPECIFIED = __core.wxFLEX_GROWMODE_SPECIFIED
+wxFLEX_GROWMODE_ALL = __core.wxFLEX_GROWMODE_ALL
+class wxFlexGridSizer(wxGridSizer):
"""
A flex grid sizer is a sizer which lays out its children in a
two-dimensional table with all table cells in one row having the same
return "<%s.%s; proxy of C++ wxFlexGridSizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
"""
- __init__(self, int rows=1, int cols=0, int vgap=0, int hgap=0) -> FlexGridSizer
+ __init__(self, int rows=1, int cols=0, int vgap=0, int hgap=0) -> wxFlexGridSizer
Constructor for a wx.FlexGridSizer. *rows* and *cols* determine the
number of columns and rows in the sizer - if either of the parameters
the sizer, thus making the sizer grow dynamically. *vgap* and *hgap*
define extra space between all children.
"""
- newobj = _core_.new_FlexGridSizer(*args, **kwargs)
+ newobj = __core.new_wxFlexGridSizer(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
for the box sizers except that if all proportions are 0, then all
columns are resized equally (instead of not being resized at all).
"""
- return _core_.FlexGridSizer_AddGrowableRow(*args, **kwargs)
+ return __core.wxFlexGridSizer_AddGrowableRow(*args, **kwargs)
def RemoveGrowableRow(*args, **kwargs):
"""
Specifies that row *idx* is no longer growable.
"""
- return _core_.FlexGridSizer_RemoveGrowableRow(*args, **kwargs)
+ return __core.wxFlexGridSizer_RemoveGrowableRow(*args, **kwargs)
def AddGrowableCol(*args, **kwargs):
"""
for the box sizers except that if all proportions are 0, then all
columns are resized equally (instead of not being resized at all).
"""
- return _core_.FlexGridSizer_AddGrowableCol(*args, **kwargs)
+ return __core.wxFlexGridSizer_AddGrowableCol(*args, **kwargs)
def RemoveGrowableCol(*args, **kwargs):
"""
Specifies that column *idx* is no longer growable.
"""
- return _core_.FlexGridSizer_RemoveGrowableCol(*args, **kwargs)
+ return __core.wxFlexGridSizer_RemoveGrowableCol(*args, **kwargs)
def SetFlexibleDirection(*args, **kwargs):
"""
Note that this method does not trigger relayout.
"""
- return _core_.FlexGridSizer_SetFlexibleDirection(*args, **kwargs)
+ return __core.wxFlexGridSizer_SetFlexibleDirection(*args, **kwargs)
def GetFlexibleDirection(*args, **kwargs):
"""
:see: `SetFlexibleDirection`
"""
- return _core_.FlexGridSizer_GetFlexibleDirection(*args, **kwargs)
+ return __core.wxFlexGridSizer_GetFlexibleDirection(*args, **kwargs)
def SetNonFlexibleGrowMode(*args, **kwargs):
"""
"""
- return _core_.FlexGridSizer_SetNonFlexibleGrowMode(*args, **kwargs)
+ return __core.wxFlexGridSizer_SetNonFlexibleGrowMode(*args, **kwargs)
def GetNonFlexibleGrowMode(*args, **kwargs):
"""
:see: `SetNonFlexibleGrowMode`
"""
- return _core_.FlexGridSizer_GetNonFlexibleGrowMode(*args, **kwargs)
+ return __core.wxFlexGridSizer_GetNonFlexibleGrowMode(*args, **kwargs)
def GetRowHeights(*args, **kwargs):
"""
Returns a list of integers representing the heights of each of the
rows in the sizer.
"""
- return _core_.FlexGridSizer_GetRowHeights(*args, **kwargs)
+ return __core.wxFlexGridSizer_GetRowHeights(*args, **kwargs)
def GetColWidths(*args, **kwargs):
"""
Returns a list of integers representing the widths of each of the
columns in the sizer.
"""
- return _core_.FlexGridSizer_GetColWidths(*args, **kwargs)
+ return __core.wxFlexGridSizer_GetColWidths(*args, **kwargs)
+
+
+class wxFlexGridSizerPtr(wxFlexGridSizer):
+ def __init__(self, this):
+ self.this = this
+ if not hasattr(self,"thisown"): self.thisown = 0
+ self.__class__ = wxFlexGridSizer
+__core.wxFlexGridSizer_swigregister(wxFlexGridSizerPtr)
+
+class wxStdDialogButtonSizer(wxBoxSizer):
+ """
+ A special sizer that knows how to order and position standard buttons
+ in order to conform to the current platform's standards. You simply
+ need to add each `wx.Button` to the sizer, and be sure to create the
+ buttons using the standard ID's. Then call `Realize` and the sizer
+ will take care of the rest.
+
+ """
+ def __repr__(self):
+ return "<%s.%s; proxy of C++ wxStdDialogButtonSizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
+ def __init__(self, *args, **kwargs):
+ """__init__(self) -> wxStdDialogButtonSizer"""
+ newobj = __core.new_wxStdDialogButtonSizer(*args, **kwargs)
+ self.this = newobj.this
+ self.thisown = 1
+ del newobj.thisown
+ def AddButton(*args, **kwargs):
+ """
+ AddButton(self, wxButton button)
+
+ Use this to add the buttons to this sizer. Do not use the `Add`
+ method in the base class.
+ """
+ return __core.wxStdDialogButtonSizer_AddButton(*args, **kwargs)
+
+ def Realize(*args, **kwargs):
+ """
+ Realize(self)
+
+ This funciton needs to be called after all the buttons have been added
+ to the sizer. It will reorder them and position them in a platform
+ specifc manner.
+ """
+ return __core.wxStdDialogButtonSizer_Realize(*args, **kwargs)
+
+ def SetAffirmativeButton(*args, **kwargs):
+ """SetAffirmativeButton(self, wxButton button)"""
+ return __core.wxStdDialogButtonSizer_SetAffirmativeButton(*args, **kwargs)
+ def SetNegativeButton(*args, **kwargs):
+ """SetNegativeButton(self, wxButton button)"""
+ return __core.wxStdDialogButtonSizer_SetNegativeButton(*args, **kwargs)
-class FlexGridSizerPtr(FlexGridSizer):
+ def SetCancelButton(*args, **kwargs):
+ """SetCancelButton(self, wxButton button)"""
+ return __core.wxStdDialogButtonSizer_SetCancelButton(*args, **kwargs)
+
+ def GetAffirmativeButton(*args, **kwargs):
+ """GetAffirmativeButton(self) -> wxButton"""
+ return __core.wxStdDialogButtonSizer_GetAffirmativeButton(*args, **kwargs)
+
+ def GetApplyButton(*args, **kwargs):
+ """GetApplyButton(self) -> wxButton"""
+ return __core.wxStdDialogButtonSizer_GetApplyButton(*args, **kwargs)
+
+ def GetNegativeButton(*args, **kwargs):
+ """GetNegativeButton(self) -> wxButton"""
+ return __core.wxStdDialogButtonSizer_GetNegativeButton(*args, **kwargs)
+
+ def GetCancelButton(*args, **kwargs):
+ """GetCancelButton(self) -> wxButton"""
+ return __core.wxStdDialogButtonSizer_GetCancelButton(*args, **kwargs)
+
+ def GetHelpButton(*args, **kwargs):
+ """GetHelpButton(self) -> wxButton"""
+ return __core.wxStdDialogButtonSizer_GetHelpButton(*args, **kwargs)
+
+
+class wxStdDialogButtonSizerPtr(wxStdDialogButtonSizer):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = FlexGridSizer
-_core_.FlexGridSizer_swigregister(FlexGridSizerPtr)
+ self.__class__ = wxStdDialogButtonSizer
+__core.wxStdDialogButtonSizer_swigregister(wxStdDialogButtonSizerPtr)
#---------------------------------------------------------------------------
-class GBPosition(object):
+class wxGBPosition(object):
"""
This class represents the position of an item in a virtual grid of
rows and columns managed by a `wx.GridBagSizer`. wxPython has
return "<%s.%s; proxy of C++ wxGBPosition instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
"""
- __init__(self, int row=0, int col=0) -> GBPosition
+ __init__(self, int row=0, int col=0) -> wxGBPosition
This class represents the position of an item in a virtual grid of
rows and columns managed by a `wx.GridBagSizer`. wxPython has
integers to a wx.GBPosition, so you can use the more pythonic
representation of the position nearly transparently in Python code.
"""
- newobj = _core_.new_GBPosition(*args, **kwargs)
+ newobj = __core.new_wxGBPosition(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
def GetRow(*args, **kwargs):
"""GetRow(self) -> int"""
- return _core_.GBPosition_GetRow(*args, **kwargs)
+ return __core.wxGBPosition_GetRow(*args, **kwargs)
def GetCol(*args, **kwargs):
"""GetCol(self) -> int"""
- return _core_.GBPosition_GetCol(*args, **kwargs)
+ return __core.wxGBPosition_GetCol(*args, **kwargs)
def SetRow(*args, **kwargs):
"""SetRow(self, int row)"""
- return _core_.GBPosition_SetRow(*args, **kwargs)
+ return __core.wxGBPosition_SetRow(*args, **kwargs)
def SetCol(*args, **kwargs):
"""SetCol(self, int col)"""
- return _core_.GBPosition_SetCol(*args, **kwargs)
+ return __core.wxGBPosition_SetCol(*args, **kwargs)
def __eq__(*args, **kwargs):
- """__eq__(self, GBPosition other) -> bool"""
- return _core_.GBPosition___eq__(*args, **kwargs)
+ """__eq__(self, wxGBPosition other) -> bool"""
+ return __core.wxGBPosition___eq__(*args, **kwargs)
def __ne__(*args, **kwargs):
- """__ne__(self, GBPosition other) -> bool"""
- return _core_.GBPosition___ne__(*args, **kwargs)
+ """__ne__(self, wxGBPosition other) -> bool"""
+ return __core.wxGBPosition___ne__(*args, **kwargs)
def Set(*args, **kwargs):
"""Set(self, int row=0, int col=0)"""
- return _core_.GBPosition_Set(*args, **kwargs)
+ return __core.wxGBPosition_Set(*args, **kwargs)
def Get(*args, **kwargs):
"""Get(self) -> PyObject"""
- return _core_.GBPosition_Get(*args, **kwargs)
+ return __core.wxGBPosition_Get(*args, **kwargs)
asTuple = wx._deprecated(Get, "asTuple is deprecated, use `Get` instead")
def __str__(self): return str(self.Get())
col = property(GetCol, SetCol)
-class GBPositionPtr(GBPosition):
+class wxGBPositionPtr(wxGBPosition):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = GBPosition
-_core_.GBPosition_swigregister(GBPositionPtr)
+ self.__class__ = wxGBPosition
+__core.wxGBPosition_swigregister(wxGBPositionPtr)
-class GBSpan(object):
+class wxGBSpan(object):
"""
This class is used to hold the row and column spanning attributes of
items in a `wx.GridBagSizer`. wxPython has typemaps that will
return "<%s.%s; proxy of C++ wxGBSpan instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
"""
- __init__(self, int rowspan=1, int colspan=1) -> GBSpan
+ __init__(self, int rowspan=1, int colspan=1) -> wxGBSpan
Construct a new wxGBSpan, optionally setting the rowspan and
colspan. The default is (1,1). (Meaning that the item occupies one
cell in each direction.
"""
- newobj = _core_.new_GBSpan(*args, **kwargs)
+ newobj = __core.new_wxGBSpan(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
def GetRowspan(*args, **kwargs):
"""GetRowspan(self) -> int"""
- return _core_.GBSpan_GetRowspan(*args, **kwargs)
+ return __core.wxGBSpan_GetRowspan(*args, **kwargs)
def GetColspan(*args, **kwargs):
"""GetColspan(self) -> int"""
- return _core_.GBSpan_GetColspan(*args, **kwargs)
+ return __core.wxGBSpan_GetColspan(*args, **kwargs)
def SetRowspan(*args, **kwargs):
"""SetRowspan(self, int rowspan)"""
- return _core_.GBSpan_SetRowspan(*args, **kwargs)
+ return __core.wxGBSpan_SetRowspan(*args, **kwargs)
def SetColspan(*args, **kwargs):
"""SetColspan(self, int colspan)"""
- return _core_.GBSpan_SetColspan(*args, **kwargs)
+ return __core.wxGBSpan_SetColspan(*args, **kwargs)
def __eq__(*args, **kwargs):
- """__eq__(self, GBSpan other) -> bool"""
- return _core_.GBSpan___eq__(*args, **kwargs)
+ """__eq__(self, wxGBSpan other) -> bool"""
+ return __core.wxGBSpan___eq__(*args, **kwargs)
def __ne__(*args, **kwargs):
- """__ne__(self, GBSpan other) -> bool"""
- return _core_.GBSpan___ne__(*args, **kwargs)
+ """__ne__(self, wxGBSpan other) -> bool"""
+ return __core.wxGBSpan___ne__(*args, **kwargs)
def Set(*args, **kwargs):
"""Set(self, int rowspan=1, int colspan=1)"""
- return _core_.GBSpan_Set(*args, **kwargs)
+ return __core.wxGBSpan_Set(*args, **kwargs)
def Get(*args, **kwargs):
"""Get(self) -> PyObject"""
- return _core_.GBSpan_Get(*args, **kwargs)
+ return __core.wxGBSpan_Get(*args, **kwargs)
asTuple = wx._deprecated(Get, "asTuple is deprecated, use `Get` instead")
def __str__(self): return str(self.Get())
colspan = property(GetColspan, SetColspan)
-class GBSpanPtr(GBSpan):
+class wxGBSpanPtr(wxGBSpan):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = GBSpan
-_core_.GBSpan_swigregister(GBSpanPtr)
+ self.__class__ = wxGBSpan
+__core.wxGBSpan_swigregister(wxGBSpanPtr)
-class GBSizerItem(SizerItem):
+class wxGBSizerItem(wxSizerItem):
"""
The wx.GBSizerItem class is used to track the additional data about
items in a `wx.GridBagSizer` such as the item's position in the grid
return "<%s.%s; proxy of C++ wxGBSizerItem instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
"""
- __init__(self) -> GBSizerItem
+ __init__(self) -> wxGBSizerItem
Constructs an empty wx.GBSizerItem. Either a window, sizer or spacer
size will need to be set, as well as a position and span before this
You will probably never need to create a wx.GBSizerItem directly as they
are created automatically when the sizer's Add method is called.
"""
- newobj = _core_.new_GBSizerItem(*args, **kwargs)
+ newobj = __core.new_wxGBSizerItem(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
def GetPos(*args, **kwargs):
"""
- GetPos(self) -> GBPosition
+ GetPos(self) -> wxGBPosition
Get the grid position of the item
"""
- return _core_.GBSizerItem_GetPos(*args, **kwargs)
+ return __core.wxGBSizerItem_GetPos(*args, **kwargs)
def GetPosTuple(self): return self.GetPos().Get()
def GetSpan(*args, **kwargs):
"""
- GetSpan(self) -> GBSpan
+ GetSpan(self) -> wxGBSpan
Get the row and column spanning of the item
"""
- return _core_.GBSizerItem_GetSpan(*args, **kwargs)
+ return __core.wxGBSizerItem_GetSpan(*args, **kwargs)
def GetSpanTuple(self): return self.GetSpan().Get()
def SetPos(*args, **kwargs):
"""
- SetPos(self, GBPosition pos) -> bool
+ SetPos(self, wxGBPosition pos) -> bool
If the item is already a member of a sizer then first ensure that
there is no other item that would intersect with this one at the new
position, then set the new position. Returns True if the change is
successful and after the next Layout() the item will be moved.
"""
- return _core_.GBSizerItem_SetPos(*args, **kwargs)
+ return __core.wxGBSizerItem_SetPos(*args, **kwargs)
def SetSpan(*args, **kwargs):
"""
- SetSpan(self, GBSpan span) -> bool
+ SetSpan(self, wxGBSpan span) -> bool
If the item is already a member of a sizer then first ensure that
there is no other item that would intersect with this one with its new
is successful and after the next Layout() the item will be resized.
"""
- return _core_.GBSizerItem_SetSpan(*args, **kwargs)
+ return __core.wxGBSizerItem_SetSpan(*args, **kwargs)
def Intersects(*args, **kwargs):
"""
- Intersects(self, GBSizerItem other) -> bool
+ Intersects(self, wxGBSizerItem other) -> bool
Returns True if this item and the other item instersect.
"""
- return _core_.GBSizerItem_Intersects(*args, **kwargs)
+ return __core.wxGBSizerItem_Intersects(*args, **kwargs)
def IntersectsPos(*args, **kwargs):
"""
- IntersectsPos(self, GBPosition pos, GBSpan span) -> bool
+ IntersectsPos(self, wxGBPosition pos, wxGBSpan span) -> bool
Returns True if the given pos/span would intersect with this item.
"""
- return _core_.GBSizerItem_IntersectsPos(*args, **kwargs)
+ return __core.wxGBSizerItem_IntersectsPos(*args, **kwargs)
def GetEndPos(*args, **kwargs):
"""
- GetEndPos(self) -> GBPosition
+ GetEndPos(self) -> wxGBPosition
Get the row and column of the endpoint of this item.
"""
- return _core_.GBSizerItem_GetEndPos(*args, **kwargs)
+ return __core.wxGBSizerItem_GetEndPos(*args, **kwargs)
def GetGBSizer(*args, **kwargs):
"""
- GetGBSizer(self) -> GridBagSizer
+ GetGBSizer(self) -> wxGridBagSizer
Get the sizer this item is a member of.
"""
- return _core_.GBSizerItem_GetGBSizer(*args, **kwargs)
+ return __core.wxGBSizerItem_GetGBSizer(*args, **kwargs)
def SetGBSizer(*args, **kwargs):
"""
- SetGBSizer(self, GridBagSizer sizer)
+ SetGBSizer(self, wxGridBagSizer sizer)
Set the sizer this item is a member of.
"""
- return _core_.GBSizerItem_SetGBSizer(*args, **kwargs)
+ return __core.wxGBSizerItem_SetGBSizer(*args, **kwargs)
-class GBSizerItemPtr(GBSizerItem):
+class wxGBSizerItemPtr(wxGBSizerItem):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = GBSizerItem
-_core_.GBSizerItem_swigregister(GBSizerItemPtr)
-DefaultSpan = cvar.DefaultSpan
+ self.__class__ = wxGBSizerItem
+__core.wxGBSizerItem_swigregister(wxGBSizerItemPtr)
+wxDefaultSpan = cvar.wxDefaultSpan
def GBSizerItemWindow(*args, **kwargs):
"""
- GBSizerItemWindow(Window window, GBPosition pos, GBSpan span, int flag,
- int border, PyObject userData=None) -> GBSizerItem
+ GBSizerItemWindow(wxWindow window, wxGBPosition pos, wxGBSpan span, int flag,
+ int border, PyObject userData=None) -> wxGBSizerItem
Construct a `wx.GBSizerItem` for a window.
"""
- val = _core_.new_GBSizerItemWindow(*args, **kwargs)
+ val = __core.new_GBSizerItemWindow(*args, **kwargs)
val.thisown = 1
return val
def GBSizerItemSizer(*args, **kwargs):
"""
- GBSizerItemSizer(Sizer sizer, GBPosition pos, GBSpan span, int flag,
- int border, PyObject userData=None) -> GBSizerItem
+ GBSizerItemSizer(wxSizer sizer, wxGBPosition pos, wxGBSpan span, int flag,
+ int border, PyObject userData=None) -> wxGBSizerItem
Construct a `wx.GBSizerItem` for a sizer
"""
- val = _core_.new_GBSizerItemSizer(*args, **kwargs)
+ val = __core.new_GBSizerItemSizer(*args, **kwargs)
val.thisown = 1
return val
def GBSizerItemSpacer(*args, **kwargs):
"""
- GBSizerItemSpacer(int width, int height, GBPosition pos, GBSpan span,
- int flag, int border, PyObject userData=None) -> GBSizerItem
+ GBSizerItemSpacer(int width, int height, wxGBPosition pos, wxGBSpan span,
+ int flag, int border, PyObject userData=None) -> wxGBSizerItem
Construct a `wx.GBSizerItem` for a spacer.
"""
- val = _core_.new_GBSizerItemSpacer(*args, **kwargs)
+ val = __core.new_GBSizerItemSpacer(*args, **kwargs)
val.thisown = 1
return val
-class GridBagSizer(FlexGridSizer):
+class wxGridBagSizer(wxFlexGridSizer):
"""
A `wx.Sizer` that can lay out items in a virtual grid like a
`wx.FlexGridSizer` but in this case explicit positioning of the items
return "<%s.%s; proxy of C++ wxGridBagSizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
"""
- __init__(self, int vgap=0, int hgap=0) -> GridBagSizer
+ __init__(self, int vgap=0, int hgap=0) -> wxGridBagSizer
Constructor, with optional parameters to specify the gap between the
rows and columns.
"""
- newobj = _core_.new_GridBagSizer(*args, **kwargs)
+ newobj = __core.new_wxGridBagSizer(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
+ self._setOORInfo(self)
+
def Add(*args, **kwargs):
"""
Add(self, item, GBPosition pos, GBSpan span=DefaultSpan, int flag=0,
- int border=0, userData=None)
+ int border=0, userData=None) -> wx.GBSizerItem
Adds an item to the sizer at the grid cell *pos*, optionally spanning
more than one row or column as specified with *span*. The remaining
position, False if something was already there.
"""
- return _core_.GridBagSizer_Add(*args, **kwargs)
+ return __core.wxGridBagSizer_Add(*args, **kwargs)
def AddItem(*args, **kwargs):
"""
- Add(self, GBSizerItem item) -> bool
+ Add(self, GBSizerItem item) -> wx.GBSizerItem
Add an item to the sizer using a `wx.GBSizerItem`. Returns True if
the item was successfully placed at its given cell position, False if
something was already there.
"""
- return _core_.GridBagSizer_AddItem(*args, **kwargs)
+ return __core.wxGridBagSizer_AddItem(*args, **kwargs)
+
+ def GetCellSize(*args, **kwargs):
+ """
+ GetCellSize(self, int row, int col) -> wxSize
+
+ Get the size of the specified cell, including hgap and
+ vgap. Only valid after a Layout.
+ """
+ return __core.wxGridBagSizer_GetCellSize(*args, **kwargs)
def GetEmptyCellSize(*args, **kwargs):
"""
- GetEmptyCellSize(self) -> Size
+ GetEmptyCellSize(self) -> wxSize
Get the size used for cells in the grid with no item.
"""
- return _core_.GridBagSizer_GetEmptyCellSize(*args, **kwargs)
+ return __core.wxGridBagSizer_GetEmptyCellSize(*args, **kwargs)
def SetEmptyCellSize(*args, **kwargs):
"""
- SetEmptyCellSize(self, Size sz)
+ SetEmptyCellSize(self, wxSize sz)
Set the size used for cells in the grid with no item.
"""
- return _core_.GridBagSizer_SetEmptyCellSize(*args, **kwargs)
+ return __core.wxGridBagSizer_SetEmptyCellSize(*args, **kwargs)
def GetItemPosition(*args):
"""
window or subsizer that is a member of this sizer, or a zero-based
index of an item.
"""
- return _core_.GridBagSizer_GetItemPosition(*args)
+ return __core.wxGridBagSizer_GetItemPosition(*args)
def SetItemPosition(*args):
"""
allowed (because an item is already there) then False is returned.
"""
- return _core_.GridBagSizer_SetItemPosition(*args)
+ return __core.wxGridBagSizer_SetItemPosition(*args)
def GetItemSpan(*args):
"""
either a window or subsizer that is a member of this sizer, or a
zero-based index of an item.
"""
- return _core_.GridBagSizer_GetItemSpan(*args)
+ return __core.wxGridBagSizer_GetItemSpan(*args)
def SetItemSpan(*args):
"""
zero-based index of an item. Returns True on success. If the move is
not allowed (because an item is already there) then False is returned.
"""
- return _core_.GridBagSizer_SetItemSpan(*args)
+ return __core.wxGridBagSizer_SetItemSpan(*args)
def FindItem(*args):
"""
Find the sizer item for the given window or subsizer, returns None if
not found. (non-recursive)
"""
- return _core_.GridBagSizer_FindItem(*args)
+ return __core.wxGridBagSizer_FindItem(*args)
def FindItemAtPosition(*args, **kwargs):
"""
- FindItemAtPosition(self, GBPosition pos) -> GBSizerItem
+ FindItemAtPosition(self, wxGBPosition pos) -> wxGBSizerItem
Return the sizer item for the given grid cell, or None if there is no
item at that position. (non-recursive)
"""
- return _core_.GridBagSizer_FindItemAtPosition(*args, **kwargs)
+ return __core.wxGridBagSizer_FindItemAtPosition(*args, **kwargs)
def FindItemAtPoint(*args, **kwargs):
"""
- FindItemAtPoint(self, Point pt) -> GBSizerItem
+ FindItemAtPoint(self, wxPoint pt) -> wxGBSizerItem
Return the sizer item located at the point given in *pt*, or None if
there is no item at that point. The (x,y) coordinates in pt correspond
to the client coordinates of the window using the sizer for
layout. (non-recursive)
"""
- return _core_.GridBagSizer_FindItemAtPoint(*args, **kwargs)
+ return __core.wxGridBagSizer_FindItemAtPoint(*args, **kwargs)
def CheckForIntersection(*args, **kwargs):
"""
- CheckForIntersection(self, GBSizerItem item, GBSizerItem excludeItem=None) -> bool
+ CheckForIntersection(self, wxGBSizerItem item, wxGBSizerItem excludeItem=None) -> bool
Look at all items and see if any intersect (or would overlap) the
given *item*. Returns True if so, False if there would be no overlap.
position of.
"""
- return _core_.GridBagSizer_CheckForIntersection(*args, **kwargs)
+ return __core.wxGridBagSizer_CheckForIntersection(*args, **kwargs)
def CheckForIntersectionPos(*args, **kwargs):
"""
- CheckForIntersectionPos(self, GBPosition pos, GBSpan span, GBSizerItem excludeItem=None) -> bool
+ CheckForIntersectionPos(self, wxGBPosition pos, wxGBSpan span, wxGBSizerItem excludeItem=None) -> bool
Look at all items and see if any intersect (or would overlap) the
given position and span. Returns True if so, False if there would be
for intersection, for example it may be the item we are checking the
position of.
"""
- return _core_.GridBagSizer_CheckForIntersectionPos(*args, **kwargs)
+ return __core.wxGridBagSizer_CheckForIntersectionPos(*args, **kwargs)
-class GridBagSizerPtr(GridBagSizer):
+class wxGridBagSizerPtr(wxGridBagSizer):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = GridBagSizer
-_core_.GridBagSizer_swigregister(GridBagSizerPtr)
+ self.__class__ = wxGridBagSizer
+__core.wxGridBagSizer_swigregister(wxGridBagSizerPtr)
#---------------------------------------------------------------------------
-Left = _core_.Left
-Top = _core_.Top
-Right = _core_.Right
-Bottom = _core_.Bottom
-Width = _core_.Width
-Height = _core_.Height
-Centre = _core_.Centre
-Center = _core_.Center
-CentreX = _core_.CentreX
-CentreY = _core_.CentreY
-Unconstrained = _core_.Unconstrained
-AsIs = _core_.AsIs
-PercentOf = _core_.PercentOf
-Above = _core_.Above
-Below = _core_.Below
-LeftOf = _core_.LeftOf
-RightOf = _core_.RightOf
-SameAs = _core_.SameAs
-Absolute = _core_.Absolute
-class IndividualLayoutConstraint(Object):
+wxLeft = __core.wxLeft
+wxTop = __core.wxTop
+wxRight = __core.wxRight
+wxBottom = __core.wxBottom
+wxWidth = __core.wxWidth
+wxHeight = __core.wxHeight
+wxCentre = __core.wxCentre
+wxCenter = __core.wxCenter
+wxCentreX = __core.wxCentreX
+wxCentreY = __core.wxCentreY
+wxUnconstrained = __core.wxUnconstrained
+wxAsIs = __core.wxAsIs
+wxPercentOf = __core.wxPercentOf
+wxAbove = __core.wxAbove
+wxBelow = __core.wxBelow
+wxLeftOf = __core.wxLeftOf
+wxRightOf = __core.wxRightOf
+wxSameAs = __core.wxSameAs
+wxAbsolute = __core.wxAbsolute
+class wxIndividualLayoutConstraint(wxObject):
"""
Objects of this class are stored in the `wx.LayoutConstraints` class as
one of eight possible constraints that a window can be involved in.
return "<%s.%s; proxy of C++ wxIndividualLayoutConstraint instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def Set(*args, **kwargs):
"""
- Set(self, int rel, Window otherW, int otherE, int val=0, int marg=wxLAYOUT_DEFAULT_MARGIN)
+ Set(self, int rel, wxWindow otherW, int otherE, int val=0, int marg=wxLAYOUT_DEFAULT_MARGIN)
Sets the properties of the constraint. Normally called by one of the
convenience functions such as Above, RightOf, SameAs.
"""
- return _core_.IndividualLayoutConstraint_Set(*args, **kwargs)
+ return __core.wxIndividualLayoutConstraint_Set(*args, **kwargs)
def LeftOf(*args, **kwargs):
"""
- LeftOf(self, Window sibling, int marg=0)
+ LeftOf(self, wxWindow sibling, int marg=0)
Constrains this edge to be to the left of the given window, with an
optional margin. Implicitly, this is relative to the left edge of the
other window.
"""
- return _core_.IndividualLayoutConstraint_LeftOf(*args, **kwargs)
+ return __core.wxIndividualLayoutConstraint_LeftOf(*args, **kwargs)
def RightOf(*args, **kwargs):
"""
- RightOf(self, Window sibling, int marg=0)
+ RightOf(self, wxWindow sibling, int marg=0)
Constrains this edge to be to the right of the given window, with an
optional margin. Implicitly, this is relative to the right edge of the
other window.
"""
- return _core_.IndividualLayoutConstraint_RightOf(*args, **kwargs)
+ return __core.wxIndividualLayoutConstraint_RightOf(*args, **kwargs)
def Above(*args, **kwargs):
"""
- Above(self, Window sibling, int marg=0)
+ Above(self, wxWindow sibling, int marg=0)
Constrains this edge to be above the given window, with an optional
margin. Implicitly, this is relative to the top edge of the other
window.
"""
- return _core_.IndividualLayoutConstraint_Above(*args, **kwargs)
+ return __core.wxIndividualLayoutConstraint_Above(*args, **kwargs)
def Below(*args, **kwargs):
"""
- Below(self, Window sibling, int marg=0)
+ Below(self, wxWindow sibling, int marg=0)
Constrains this edge to be below the given window, with an optional
margin. Implicitly, this is relative to the bottom edge of the other
window.
"""
- return _core_.IndividualLayoutConstraint_Below(*args, **kwargs)
+ return __core.wxIndividualLayoutConstraint_Below(*args, **kwargs)
def SameAs(*args, **kwargs):
"""
- SameAs(self, Window otherW, int edge, int marg=0)
+ SameAs(self, wxWindow otherW, int edge, int marg=0)
Constrains this edge or dimension to be to the same as the edge of the
given window, with an optional margin.
"""
- return _core_.IndividualLayoutConstraint_SameAs(*args, **kwargs)
+ return __core.wxIndividualLayoutConstraint_SameAs(*args, **kwargs)
def PercentOf(*args, **kwargs):
"""
- PercentOf(self, Window otherW, int wh, int per)
+ PercentOf(self, wxWindow otherW, int wh, int per)
Constrains this edge or dimension to be to a percentage of the given
window, with an optional margin.
"""
- return _core_.IndividualLayoutConstraint_PercentOf(*args, **kwargs)
+ return __core.wxIndividualLayoutConstraint_PercentOf(*args, **kwargs)
def Absolute(*args, **kwargs):
"""
Constrains this edge or dimension to be the given absolute value.
"""
- return _core_.IndividualLayoutConstraint_Absolute(*args, **kwargs)
+ return __core.wxIndividualLayoutConstraint_Absolute(*args, **kwargs)
def Unconstrained(*args, **kwargs):
"""
Sets this edge or dimension to be unconstrained, that is, dependent on
other edges and dimensions from which this value can be deduced.
"""
- return _core_.IndividualLayoutConstraint_Unconstrained(*args, **kwargs)
+ return __core.wxIndividualLayoutConstraint_Unconstrained(*args, **kwargs)
def AsIs(*args, **kwargs):
"""
size, such as a button, which may take its size from the size of the
button label.
"""
- return _core_.IndividualLayoutConstraint_AsIs(*args, **kwargs)
+ return __core.wxIndividualLayoutConstraint_AsIs(*args, **kwargs)
def GetOtherWindow(*args, **kwargs):
- """GetOtherWindow(self) -> Window"""
- return _core_.IndividualLayoutConstraint_GetOtherWindow(*args, **kwargs)
+ """GetOtherWindow(self) -> wxWindow"""
+ return __core.wxIndividualLayoutConstraint_GetOtherWindow(*args, **kwargs)
def GetMyEdge(*args, **kwargs):
"""GetMyEdge(self) -> int"""
- return _core_.IndividualLayoutConstraint_GetMyEdge(*args, **kwargs)
+ return __core.wxIndividualLayoutConstraint_GetMyEdge(*args, **kwargs)
def SetEdge(*args, **kwargs):
"""SetEdge(self, int which)"""
- return _core_.IndividualLayoutConstraint_SetEdge(*args, **kwargs)
+ return __core.wxIndividualLayoutConstraint_SetEdge(*args, **kwargs)
def SetValue(*args, **kwargs):
"""SetValue(self, int v)"""
- return _core_.IndividualLayoutConstraint_SetValue(*args, **kwargs)
+ return __core.wxIndividualLayoutConstraint_SetValue(*args, **kwargs)
def GetMargin(*args, **kwargs):
"""GetMargin(self) -> int"""
- return _core_.IndividualLayoutConstraint_GetMargin(*args, **kwargs)
+ return __core.wxIndividualLayoutConstraint_GetMargin(*args, **kwargs)
def SetMargin(*args, **kwargs):
"""SetMargin(self, int m)"""
- return _core_.IndividualLayoutConstraint_SetMargin(*args, **kwargs)
+ return __core.wxIndividualLayoutConstraint_SetMargin(*args, **kwargs)
def GetValue(*args, **kwargs):
"""GetValue(self) -> int"""
- return _core_.IndividualLayoutConstraint_GetValue(*args, **kwargs)
+ return __core.wxIndividualLayoutConstraint_GetValue(*args, **kwargs)
def GetPercent(*args, **kwargs):
"""GetPercent(self) -> int"""
- return _core_.IndividualLayoutConstraint_GetPercent(*args, **kwargs)
+ return __core.wxIndividualLayoutConstraint_GetPercent(*args, **kwargs)
def GetOtherEdge(*args, **kwargs):
"""GetOtherEdge(self) -> int"""
- return _core_.IndividualLayoutConstraint_GetOtherEdge(*args, **kwargs)
+ return __core.wxIndividualLayoutConstraint_GetOtherEdge(*args, **kwargs)
def GetDone(*args, **kwargs):
"""GetDone(self) -> bool"""
- return _core_.IndividualLayoutConstraint_GetDone(*args, **kwargs)
+ return __core.wxIndividualLayoutConstraint_GetDone(*args, **kwargs)
def SetDone(*args, **kwargs):
"""SetDone(self, bool d)"""
- return _core_.IndividualLayoutConstraint_SetDone(*args, **kwargs)
+ return __core.wxIndividualLayoutConstraint_SetDone(*args, **kwargs)
def GetRelationship(*args, **kwargs):
"""GetRelationship(self) -> int"""
- return _core_.IndividualLayoutConstraint_GetRelationship(*args, **kwargs)
+ return __core.wxIndividualLayoutConstraint_GetRelationship(*args, **kwargs)
def SetRelationship(*args, **kwargs):
"""SetRelationship(self, int r)"""
- return _core_.IndividualLayoutConstraint_SetRelationship(*args, **kwargs)
+ return __core.wxIndividualLayoutConstraint_SetRelationship(*args, **kwargs)
def ResetIfWin(*args, **kwargs):
"""
- ResetIfWin(self, Window otherW) -> bool
+ ResetIfWin(self, wxWindow otherW) -> bool
Reset constraint if it mentions otherWin
"""
- return _core_.IndividualLayoutConstraint_ResetIfWin(*args, **kwargs)
+ return __core.wxIndividualLayoutConstraint_ResetIfWin(*args, **kwargs)
def SatisfyConstraint(*args, **kwargs):
"""
- SatisfyConstraint(self, LayoutConstraints constraints, Window win) -> bool
+ SatisfyConstraint(self, wxLayoutConstraints constraints, wxWindow win) -> bool
Try to satisfy constraint
"""
- return _core_.IndividualLayoutConstraint_SatisfyConstraint(*args, **kwargs)
+ return __core.wxIndividualLayoutConstraint_SatisfyConstraint(*args, **kwargs)
def GetEdge(*args, **kwargs):
"""
- GetEdge(self, int which, Window thisWin, Window other) -> int
+ GetEdge(self, int which, wxWindow thisWin, wxWindow other) -> int
Get the value of this edge or dimension, or if this
is not determinable, -1.
"""
- return _core_.IndividualLayoutConstraint_GetEdge(*args, **kwargs)
+ return __core.wxIndividualLayoutConstraint_GetEdge(*args, **kwargs)
-class IndividualLayoutConstraintPtr(IndividualLayoutConstraint):
+class wxIndividualLayoutConstraintPtr(wxIndividualLayoutConstraint):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = IndividualLayoutConstraint
-_core_.IndividualLayoutConstraint_swigregister(IndividualLayoutConstraintPtr)
+ self.__class__ = wxIndividualLayoutConstraint
+__core.wxIndividualLayoutConstraint_swigregister(wxIndividualLayoutConstraintPtr)
-class LayoutConstraints(Object):
+class wxLayoutConstraints(wxObject):
"""
**Note:** constraints are now deprecated and you should use sizers
instead.
"""
def __repr__(self):
return "<%s.%s; proxy of C++ wxLayoutConstraints instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
- left = property(_core_.LayoutConstraints_left_get)
- top = property(_core_.LayoutConstraints_top_get)
- right = property(_core_.LayoutConstraints_right_get)
- bottom = property(_core_.LayoutConstraints_bottom_get)
- width = property(_core_.LayoutConstraints_width_get)
- height = property(_core_.LayoutConstraints_height_get)
- centreX = property(_core_.LayoutConstraints_centreX_get)
- centreY = property(_core_.LayoutConstraints_centreY_get)
+ left = property(__core.wxLayoutConstraints_left_get)
+ top = property(__core.wxLayoutConstraints_top_get)
+ right = property(__core.wxLayoutConstraints_right_get)
+ bottom = property(__core.wxLayoutConstraints_bottom_get)
+ width = property(__core.wxLayoutConstraints_width_get)
+ height = property(__core.wxLayoutConstraints_height_get)
+ centreX = property(__core.wxLayoutConstraints_centreX_get)
+ centreY = property(__core.wxLayoutConstraints_centreY_get)
def __init__(self, *args, **kwargs):
- """__init__(self) -> LayoutConstraints"""
- newobj = _core_.new_LayoutConstraints(*args, **kwargs)
+ """__init__(self) -> wxLayoutConstraints"""
+ newobj = __core.new_wxLayoutConstraints(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
def SatisfyConstraints(*args, **kwargs):
"""SatisfyConstraints(Window win) -> (areSatisfied, noChanges)"""
- return _core_.LayoutConstraints_SatisfyConstraints(*args, **kwargs)
+ return __core.wxLayoutConstraints_SatisfyConstraints(*args, **kwargs)
def AreSatisfied(*args, **kwargs):
"""AreSatisfied(self) -> bool"""
- return _core_.LayoutConstraints_AreSatisfied(*args, **kwargs)
+ return __core.wxLayoutConstraints_AreSatisfied(*args, **kwargs)
-class LayoutConstraintsPtr(LayoutConstraints):
+class wxLayoutConstraintsPtr(wxLayoutConstraints):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = LayoutConstraints
-_core_.LayoutConstraints_swigregister(LayoutConstraintsPtr)
+ self.__class__ = wxLayoutConstraints
+__core.wxLayoutConstraints_swigregister(wxLayoutConstraintsPtr)
#----------------------------------------------------------------------------
#----------------------------------------------------------------------------
+# Set the default string<-->unicode conversion encoding from the
+# locale. This encoding is used when string or unicode objects need
+# to be converted in order to pass them to wxWidgets. Please be aware
+# that the default encoding within the same locale may be slightly
+# different on different platforms. For example, please see
+# http://www.alanwood.net/demos/charsetdiffs.html for differences
+# between the common latin/roman encodings.
+
+default = _sys.getdefaultencoding()
+if default == 'ascii':
+ import locale
+ import codecs
+ try:
+ default = locale.getdefaultlocale()[1]
+ codecs.lookup(default)
+ except (ValueError, LookupError):
+ default = _sys.getdefaultencoding()
+ del locale
+ del codecs
+if default:
+ wx.SetDefaultPyEncoding(default)
+del default
+
+#----------------------------------------------------------------------------
+
class PyDeadObjectError(AttributeError):
pass
#----------------------------------------------------------------------------
-_wxPyCallAfterId = None
def CallAfter(callable, *args, **kw):
"""
app = wx.GetApp()
assert app is not None, 'No wx.App created yet'
- global _wxPyCallAfterId
- if _wxPyCallAfterId is None:
- _wxPyCallAfterId = wx.NewEventType()
- app.Connect(-1, -1, _wxPyCallAfterId,
- lambda event: event.callable(*event.args, **event.kw) )
+ if not hasattr(app, "_CallAfterId"):
+ app._CallAfterId = wx.NewEventType()
+ app.Connect(-1, -1, app._CallAfterId,
+ lambda event: event.callable(*event.args, **event.kw) )
evt = wx.PyEvent()
- evt.SetEventType(_wxPyCallAfterId)
+ evt.SetEventType(app._CallAfterId)
evt.callable = callable
evt.args = args
evt.kw = kw
wx.PostEvent(app, evt)
-
#----------------------------------------------------------------------------
class FutureCall:
"""
- A convenience class for wx.Timer, that calls the given callable
+ A convenience class for `wx.Timer`, that calls the given callable
object once after the given amount of milliseconds, passing any
positional or keyword args. The return value of the callable is
availbale after it has been run with the `GetResult` method.