예제 #1
0
import ed_msg
import ed_menu
import ed_mdlg
import syntax.syntax
import util
import eclib
import ebmlib

#-----------------------------------------------------------------------------#
# Globals
PANE_NAME = u'FileBrowser'
ID_BROWSERPANE = wx.NewId()
ID_FILEBROWSE = wx.NewId()

# Configure Platform specific commands
FILEMAN_CMD = util.GetFileManagerCmd()
if wx.Platform == '__WXMAC__':
    FILEMAN = 'Finder'
elif wx.Platform == '__WXMSW__':
    FILEMAN = 'Explorer'
else: # Other/Linux
    FILEMAN = FILEMAN_CMD.title()

def TrashString():
    """Get the trash description string"""
    if wx.Platform == '__WXMSW__':
        return _("Move to Recycle Bin")
    else:
        return _("Move to Trash")

_ = wx.GetTranslation
예제 #2
0
    def testGetFileManagerCmd(self):
        """Test retrieving the systems filemanager command"""
        cmd = util.GetFileManagerCmd()
        self.assertTrue(isinstance(cmd, basestring))

        self.assertTrue(len(cmd) > 0)