Package wx :: Class GenericDirCtrl
[frames | no frames]

Type GenericDirCtrl

object --+                
         |                
    Object --+            
             |            
    EvtHandler --+        
                 |        
            Window --+    
                     |    
               Control --+
                         |
                        GenericDirCtrl


Proxy of C++ GenericDirCtrl class
Method Summary
Control __init__(self, parent, id, pos, size, style, validator, name)
Create a Control.
  __repr__(self)
bool Create(self, parent, id, pos, size, style, validator, name)
Do the 2nd phase and create the GUI control.
  DoResize(self)
bool ExpandPath(self, path)
(item, done) FindChild(parentId, path)
Find the child that matches the first part of 'path'.
String GetDefaultPath(self)
String GetFilePath(self)
String GetFilter(self)
int GetFilterIndex(self)
DirFilterListCtrl GetFilterListCtrl(self)
String GetPath(self)
TreeItemId GetRootId(self)
bool GetShowHidden(self)
TreeCtrl GetTreeCtrl(self)
  ReCreateTree(self)
  SetDefaultPath(self, path)
  SetFilter(self, filter)
  SetFilterIndex(self, n)
  SetPath(self, path)
  ShowHidden(self, show)

Instance Method Details

__init__(self, parent, id=-1, dir=DirDialogDefaultFolderStr, pos=DefaultPosition, size=DefaultSize, style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER, filter=EmptyString, defaultFilter=0, name=TreeCtrlNameStr)
(Constructor)

Create a Control. Normally you should only call this from a subclass' __init__ as a plain old wx.Control is not very useful.
Parameters:
parent
           (type=Window)
id
           (type=int)
pos
           (type=Point)
size
           (type=Size)
style
           (type=long)
validator
           (type=Validator)
name
           (type=String)
Returns:
Control
Overrides:
wx.Control.__init__ (inherited documentation)

Create(self, parent, id=-1, dir=DirDialogDefaultFolderStr, pos=DefaultPosition, size=DefaultSize, style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER, filter=EmptyString, defaultFilter=0, name=TreeCtrlNameStr)

Do the 2nd phase and create the GUI control.
Parameters:
parent
           (type=Window)
id
           (type=int)
pos
           (type=Point)
size
           (type=Size)
style
           (type=long)
validator
           (type=Validator)
name
           (type=String)
Returns:
bool
Overrides:
wx.Control.Create (inherited documentation)

FindChild(parentId, path)

Find the child that matches the first part of 'path'. E.g. if a child path is "/usr" and 'path' is "/usr/include" then the child for /usr is returned. If the path string has been used (we're at the leaf), done is set to True.
Parameters:
parentId
           (type=wxTreeItemId)
path
           (type=wxString)
Returns:
(item, done)

Generated by Epydoc 2.1.20040428.rpd on Tue Apr 26 14:25:48 2005 http://epydoc.sf.net