コード例 #1
0
ファイル: seacher.py プロジェクト: Xifax/siteki
    def initComponents(self):
        self.artist.setPlaceholderText('artist name')
        self.artist.setToolTip('Press enter to begin searching')
        self.title.setPlaceholderText('track title')
        self.title.setToolTip('Press enter to begin searching')

        pretty_font = QFont(get_pretty_font(), VERSE_FONT_SIZE)
        self.artist.setFont(pretty_font)
        self.title.setFont(pretty_font)
        self.artist.setAlignment(Qt.AlignCenter)
        self.title.setAlignment(Qt.AlignCenter)

        self.search.setIcon(QIcon(ROOT + RES + ICONS + SEARCH))
        self.clear.setIcon(QIcon(ROOT + RES + ICONS + CLEAR))

        self.results.setWordWrap(True)
        self.results.setContextMenuPolicy(Qt.ActionsContextMenu)
        self.results.setToolTip('Double click to paste into main dialog')

        self.status.setAlignment(Qt.AlignCenter)
        self.status.setFont(QFont(KEY_SENSE_FONT, KEY_SENSE_SIZE))
        self.status.setStyleSheet('QLabel {background-color: black; color:white; border: 1px solid white; border-radius: 4px;}')

        self.status.hide()
        self.results.hide()
コード例 #2
0
ファイル: seacher.py プロジェクト: Xifax/siteki
    def initComponents(self):
        self.artist.setPlaceholderText('artist name')
        self.artist.setToolTip('Press enter to begin searching')
        self.title.setPlaceholderText('track title')
        self.title.setToolTip('Press enter to begin searching')

        pretty_font = QFont(get_pretty_font(), VERSE_FONT_SIZE)
        self.artist.setFont(pretty_font)
        self.title.setFont(pretty_font)
        self.artist.setAlignment(Qt.AlignCenter)
        self.title.setAlignment(Qt.AlignCenter)

        self.search.setIcon(QIcon(ROOT + RES + ICONS + SEARCH))
        self.clear.setIcon(QIcon(ROOT + RES + ICONS + CLEAR))

        self.results.setWordWrap(True)
        self.results.setContextMenuPolicy(Qt.ActionsContextMenu)
        self.results.setToolTip('Double click to paste into main dialog')

        self.status.setAlignment(Qt.AlignCenter)
        self.status.setFont(QFont(KEY_SENSE_FONT, KEY_SENSE_SIZE))
        self.status.setStyleSheet(
            'QLabel {background-color: black; color:white; border: 1px solid white; border-radius: 4px;}'
        )

        self.status.hide()
        self.results.hide()
コード例 #3
0
    def prettifyFont(self):
        shiny = QFont(get_pretty_font(), VERSE_FONT_SIZE)

        self.changeFont.setCurrentFont(QFont(shiny))
        self.changeSize.setValue(VERSE_FONT_SIZE)
        self.input.setFont(shiny)

        self.updateInputSize()
コード例 #4
0
ファイル: main.py プロジェクト: Xifax/siteki
    def prettifyFont(self):
        shiny = QFont(get_pretty_font(), VERSE_FONT_SIZE)

        self.changeFont.setCurrentFont(QFont(shiny))
        self.changeSize.setValue(VERSE_FONT_SIZE)
        self.input.setFont(shiny)

        self.updateInputSize()
コード例 #5
0
ファイル: exlist.py プロジェクト: Xifax/siteki
    def initComponents(self):
        self.add.setIcon(QIcon(ROOT + RES + ICONS + PLUS))
        self.add.setMinimumHeight(40)
        self.add.setToolTip('Add item to list')
        self.input.setFont(QFont(get_pretty_font(), VERSE_FONT_SIZE))
        self.input.setToolTip('Japanese characters only (press enter to add)')
        self.clear.setIcon(QIcon(ROOT + RES + ICONS + CLEAR))
        self.clear.setMinimumHeight(40)
        self.clear.setToolTip('Clear list')
        self.enter.setCheckable(True)
        self.enter.setIcon(QIcon(ROOT + RES + ICONS + PEN))
        self.enter.setMinimumHeight(40)
        self.enter.setToolTip('Clear input on enter')

        self.items_font = QFont(get_pretty_font(), VERSE_FONT_SIZE)
        self.list.setSelectionMode(QAbstractItemView.ExtendedSelection)
        self.list.setToolTip('Double click to delete')
        self.list.setContextMenuPolicy(Qt.ActionsContextMenu)
        self.list.setSortingEnabled(True)

        self.search.setFont(QFont(get_pretty_font(), KEY_FONT_SIZE))
        self.search.setToolTip('Type to search')
コード例 #6
0
    def initComponents(self):
        self.add.setIcon(QIcon(ROOT + RES + ICONS + PLUS))
        self.add.setMinimumHeight(40)
        self.add.setToolTip('Add item to list')
        self.input.setFont(QFont(get_pretty_font(), VERSE_FONT_SIZE))
        self.input.setToolTip('Japanese characters only (press enter to add)')
        self.clear.setIcon(QIcon(ROOT + RES + ICONS + CLEAR))
        self.clear.setMinimumHeight(40)
        self.clear.setToolTip('Clear list')
        self.enter.setCheckable(True)
        self.enter.setIcon(QIcon(ROOT + RES + ICONS + PEN))
        self.enter.setMinimumHeight(40)
        self.enter.setToolTip('Clear input on enter')

        self.items_font = QFont(get_pretty_font(), VERSE_FONT_SIZE)
        self.list.setSelectionMode(QAbstractItemView.ExtendedSelection)
        self.list.setToolTip('Double click to delete')
        self.list.setContextMenuPolicy(Qt.ActionsContextMenu)
        self.list.setSortingEnabled(True)

        self.search.setFont(QFont(get_pretty_font(), KEY_FONT_SIZE))
        self.search.setToolTip('Type to search')