libtextworker 0.1.4
Cross-platform, free and open library for Python projects
Public Member Functions | Static Public Attributes | List of all members
libtextworker.interface.wx.dirctrl.DirList Class Reference
Inheritance diagram for libtextworker.interface.wx.dirctrl.DirList:
Inheritance graph
[legend]

Public Member Functions

def __init__ (this, wx.Window parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.LC_REPORT, validator=wx.DefaultValidator, name=wx.ListCtrlNameStr, auto w_styles=DC_USEICON)
 
def Destroy (this)
 
def DrawItems (this, str path=os.path.expanduser("~/"))
 
def SetFolder (this, evt=None, str path="")
 
def GoUp (this, evt)
 
def GetFullPath (this, str|Callable|None item=None, Callable|None event=None)
 
- Public Member Functions inherited from libtextworker.interface.wx.dirctrl.FSEventHandler
def evtIsDir (this, FileSystemEvent event)
 
def getTarget (this)
 
def on_moved (this, FileSystemEvent event)
 
def on_created (this, FileSystemEvent event)
 
def on_deleted (this, FileSystemEvent event)
 
def on_modified (this, FileSystemEvent event)
 
def on_closed (this, FileSystemEvent event)
 
def on_opened (this, FileSystemEvent event)
 
- Public Member Functions inherited from libtextworker.interface.base.dirctrl.DirCtrlBase
def SetFolder (this, str path, bool newroot)
 
def GoForward (this)
 
def GoBack (this)
 
bool PostSetDir (this, path, Literal["forward", "back", "go"] mode)
 
def sizeof_fmt (this, num, suffix="B")
 

Static Public Attributes

 Styles = DC_USEICON
 
 list
 
bool TargetIsSelf = True
 
- Static Public Attributes inherited from libtextworker.interface.wx.dirctrl.FSEventHandler
 bool
 
- Static Public Attributes inherited from libtextworker.interface.base.dirctrl.DirCtrlBase
 Styles = DC_EDIT | DC_USEICON
 
 int
 

Detailed Description

Unlike wxDirCtrl, wxDirList lists not only files + folders, but also their
last modified and item type, size. You will see it most in your file explorer,
the main pane.
Of couse this is wxLC_REPORT will be used.
This comes with check buttons, which is optional.

libtextworker flags to be ignored:
* DC_HIDEROOT (where's the root node in this list control?)
* DC_ONEROOT (one root by default so this is useless)

Definition at line 385 of file dirctrl.py.


The documentation for this class was generated from the following file: