示例#1
0
    def __init__(self, *args):
        QListView.__init__(self, *args)
        self.setModel(
                AppListModel(
                    [WebApp.get_local_apps_dir(), utils.libFile('.')],
                    self))
        self.setIconSize(QtCore.QSize(kIconSize, kIconSize))

        self.downloadErrShown = False

        # To be set through functions
        self.win = None
示例#2
0
    def __init__(self):
        QtGui.QMainWindow.__init__(self)

        from ui_appbrowse import Ui_AppBrowser
        self.ui = Ui_AppBrowser()
        self.ui.setupUi(self)
        self.ui.listAppStock.win = self
        self.setWindowIcon(QtGui.QIcon(
            utils.libFile(utils.WAPP_ICON)))

        QtCore.QTimer.singleShot(1, self.loadApps)
        QtCore.QCoreApplication.setAttribute(
                QtCore.Qt.AA_DontShowIconsInMenus, False)