Package schrodinger :: Package ui :: Package qt :: Module filedialog :: Class CustomSideBarMixin
[hide private]
[frames] | no frames]

Class CustomSideBarMixin

object --+
         |
        CustomSideBarMixin
Known Subclasses:

Instance Methods [hide private]
 
_setup_sidebar(self, sidebar_links=None)
Used to set up the sidebar directories in file browsers.
 
_updateItemNames(self)
Update the names of the side-bar items.

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

_setup_sidebar(self, sidebar_links=None)

 

Used to set up the sidebar directories in file browsers.

Note that this method sets up a signal/slot for the ListView model that holds the data for the sidebar, and this model is altered by calls to setIconProvider(), so this method should be called after any calls to that method.

Parameters:
  • sidebar_links (dict) - dictionary of additional sidebar links. Keys are names of the links and values are paths

_updateItemNames(self)

 

Update the names of the side-bar items. e.g. user's home directory will be named "Home" instead of "$USERNAME"; and the CWD will be named "Working Directory" instead of the basename of the current path.