Exemple #1
0
 def __init__(self, args):
     '''Create a new DiskmapApp with arguments specified by args.'''
     super(DiskmapApp, self).__init__(args)
     # Application variables
     self.__defaultStatus = "Please open a folder to map..."
     self.__mappedDir = ''
     self.__currentFile = ''
     # Configure the GUIWindow
     self.__window = GUIWindow('Diskmap - Disk Visualization Utility', 640,
                               360, 'assets/icon.svg')
     # Configure the Tileframe
     self.__tileframe = TileFrame(self.__window)
     self.__window.setCentralWidget(self.__tileframe)
     self.__window.setMouseTracking(True)
     # Setup remaining GUI elements
     self.__setupMenu()
     self.__setupMouseEvents()
     self.__setupMenuItems()
     self.__window.setStatusBar(self.__defaultStatus)
     # Render the window
     self.__window.show()