Module hexeditor :: Class HexEditor
[hide private]
[frames] | no frames]

Class HexEditor

source code

     object --+                    
              |                    
wx._core.Object --+                
                  |                
wx._core.EvtHandler --+            
                      |            
        wx._core.Window --+        
                          |        
          wx._windows.Panel --+    
                              |    
     wx._windows.ScrolledWindow --+
                                  |
                                 HexEditor

Instance Methods [hide private]
EvtHandler
__init__(self, parent, id=-1, style=262144, _set_pos=None, _set_sel=None, _set_val=None)
__init__(self, Window parent, int id=-1, Point pos=DefaultPosition, ...
source code
 
_map_events(self) source code
 
_create_context_menu(self) source code
 
SetData(self, data) source code
 
SetTitle(self, title) source code
 
SetStatusDisplay(self, _set_pos=None, _set_sel=None, _set_val=None) source code
 
OnEraseBackground(self, _) source code
 
_set_pos(self, pos) source code
 
_set_sel(self, sel_start, sel_end) source code
 
_set_val(self, v) source code
 
_to_char_line(self, x, y)
Convert an x,y point to (char, line)
source code
 
_to_xy(self, char, line) source code
 
_to_buffer_offset(self, char, line) source code
 
_set_and_move(self, evt) source code
 
_gen_values(self, _data, _ofs)
Generate the values of various number formats starting at the current offset.
source code
 
_apply_template(self, template_name) source code
 
_display_result(self, result)
Display the results from applying a Python routine over the data
source code
 
OnLoadFile(self, _) source code
 
OnSaveAs(self, _) source code
 
hexdumpdata(self) source code
 
OnSaveHexdumpAs(self, _) source code
 
OnSaveSelection(self, _) source code
 
OnReloadModule(self, _) source code
 
OnApplyFunc(self, _) source code
 
OnImportModule(self, _) source code
 
OnStartSelMenu(self, evt) source code
 
OnEndSelMenu(self, _) source code
 
OnViewValue(self, _) source code
 
OnStartSelection(self, evt) source code
 
OnMakeSelection(self, evt) source code
 
OnEndSelection(self, evt) source code
 
OnRightClick(self, evt) source code
 
OnTemplateLoad(self, _) source code
 
OnTemplateSaveAs(self, _) source code
 
OnTemplateApply(self, _) source code
 
OnTemplateEdit(self, _) source code
 
OnSearch(self, evt) source code
 
OnSearchAgain(self, evt) source code
 
OnSize(self, evt) source code
 
OnGainFocus(self, _) source code
 
OnLoseFocus(self, _) source code
 
highlightrange(self, start, end) source code
 
_ishighlighted(self, pos) source code
 
sethighlight(self, foreground, background) source code
 
setnormal(self, foreground, background) source code
 
setfont(self, font) source code
 
updatescrollbars(self) source code
 
_setnormal(self, dc) source code
 
_sethighlight(self, dc) source code
 
_setstatus(self, dc) source code
 
OnDraw(self, dc) source code
 
updatebuffer(self) source code
 
OnPaint(self, event)
OnPaint(self, PaintEvent event)
source code
 
OnScrollWin(self, event) source code

Inherited from wx._windows.ScrolledWindow: AdjustScrollbars, CalcScrollInc, CalcScrolledPosition, CalcUnscrolledPosition, Create, DoPrepareDC, EnableScrolling, GetScaleX, GetScaleY, GetScrollPageSize, GetScrollPixelsPerUnit, GetTargetRect, GetTargetWindow, GetViewStart, Scroll, SetScale, SetScrollPageSize, SetScrollRate, SetScrollbars, SetTargetRect, SetTargetWindow, __repr__

Inherited from wx._windows.Panel: SetFocusIgnoringChildren

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

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

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

Inherited from wx._core.Object: GetClassName, IsSameAs

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

Static Methods [hide private]

Inherited from wx._windows.ScrolledWindow: GetClassDefaultAttributes

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

Class Variables [hide private]
  _addr_range = xrange(8)
  _hex_range_start = 10
  _hex_range_start2 = 33
  _hex_range = xrange(10, 58)
  _ascii_range_start = 60
  _ascii_range = xrange(60, 76)
  _value_formats = (('unsigned char', 'B', 1), ('signed char', '...
Properties [hide private]

Inherited from wx._windows.ScrolledWindow: ScaleX, ScaleY, TargetWindow, ViewStart, thisown

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

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

Inherited from wx._core.Object: ClassName

Inherited from object: __class__

Method Details [hide private]

__init__(self, parent, id=-1, style=262144, _set_pos=None, _set_sel=None, _set_val=None)
(Constructor)

source code 

__init__(self, Window parent, int id=-1, Point pos=DefaultPosition, 
    Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL, 
    String name=PanelNameStr) -> ScrolledWindow

Returns: EvtHandler
Overrides: object.__init__
(inherited documentation)

OnPaint(self, event)

source code 

OnPaint(self, PaintEvent event)

Overrides: wx._core.Window.OnPaint
(inherited documentation)

Class Variable Details [hide private]

_value_formats

Value:
(('unsigned char', 'B', 1),
 ('signed char', 'b', 1),
 ('LE unsigned short', '<H', 2),
 ('LE signed short', '<h', 2),
 ('BE unsigned short', '>H', 2),
 ('BE signed short', '>h', 2),
 ('LE unsigned int', '<I', 4),
 ('LE signed int', '<i', 4),
...