Python PyQt5.QtCore.Qt.WindowTitleHint() Examples
The following are 11
code examples of PyQt5.QtCore.Qt.WindowTitleHint().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
PyQt5.QtCore.Qt
, or try the search function
.
Example #1
Source File: file_transfer_dialog.py From uPyLoader with MIT License | 6 votes |
def __init__(self, type): super(FileTransferDialog, self).__init__(None, Qt.WindowTitleHint) self.setupUi(self) self.setModal(True) self._transfer = FileTransfer(lambda: self._update_signal.emit()) if type == FileTransferDialog.UPLOAD: self.label.setText("Saving file.") elif type == FileTransferDialog.DOWNLOAD: self.label.setText("Reading file.") self.progressBar.setRange(0, 100) self.progressBar.setValue(0) self._update_signal.connect(self._update_progress) self.cancelButton.clicked.connect(self._transfer.cancel)
Example #2
Source File: landBattleResultView.py From imperialism-remake with GNU General Public License v3.0 | 5 votes |
def __init__(self, conf, defeat): self.config = conf super().__init__() self.setWindowTitle(conf.get_text('victory')) self.setFixedSize(QSize(640, 480)) self.setWindowFlags(Qt.WindowStaysOnTopHint | Qt.WindowTitleHint | Qt.FramelessWindowHint) button = QPushButton(conf.get_text('close'), self) button.setCheckable(True) button.setFixedSize(QSize(640, 30)) button.move(0, 450) # noinspection PyUnresolvedReferences button.clicked.connect(self.close) result_output = QTextEdit(self) result_output.setReadOnly(True) result_output.setFixedSize(QSize(640, 200)) result_output.move(0, 250) result_output.setLineWrapMode(QTextEdit.NoWrap) result_output.insertHtml(self.generate_result_text()) gview = QGraphicsView(self) scene = QGraphicsScene() if defeat: img = conf.theme_selected.get_defeat_pixmap() text = conf.get_text('defeat') else: img = conf.theme_selected.get_victory_pixmap() text = conf.get_text('victory') scene.addPixmap(img.scaled(QSize(640, 220))) gview.move(0, 30) gview.setScene(scene) label_title = QLabel(self) label_title.setText(text) label_title.setFixedSize(QSize(640, 30)) label_title.setAlignment(Qt.AlignCenter) label_title.setFont(self.get_font_title())
Example #3
Source File: siacle.py From PyQt5 with MIT License | 5 votes |
def __init__(self, parent=None): super(Ayuda, self).__init__() self.setWindowTitle("Ayuda") self.setWindowFlags(Qt.WindowTitleHint | Qt.CustomizeWindowHint | Qt.MSWindowsFixedSizeDialogHint) self.setFixedSize(450, 500) self.initUI()
Example #4
Source File: siacle.py From PyQt5 with MIT License | 5 votes |
def __init__(self, parent=None): super(Acerca, self).__init__() self.setWindowTitle("Acerca de Siacle") self.setWindowFlags(Qt.WindowTitleHint | Qt.CustomizeWindowHint | Qt.MSWindowsFixedSizeDialogHint) self.setFixedSize(450, 500) self.initUI()
Example #5
Source File: settings.py From wonambi with GNU General Public License v3.0 | 5 votes |
def __init__(self, parent): super().__init__(None, Qt.WindowSystemMenuHint | Qt.WindowTitleHint) self.parent = parent self.config = ConfigUtils(self.parent.refresh) self.setWindowTitle('Settings') self.create_settings()
Example #6
Source File: settings.py From wonambi with GNU General Public License v3.0 | 5 votes |
def __init__(self): super().__init__(None, Qt.WindowSystemMenuHint | Qt.WindowTitleHint) self.setWindowTitle('Help') self.setWindowModality(Qt.ApplicationModal) self.create_dialog()
Example #7
Source File: info.py From wonambi with GNU General Public License v3.0 | 5 votes |
def __init__(self, parent): super().__init__(None, Qt.WindowSystemMenuHint | Qt.WindowTitleHint) self.parent = parent self.setWindowModality(Qt.ApplicationModal) self.create_dialog()
Example #8
Source File: modal_widgets.py From wonambi with GNU General Public License v3.0 | 5 votes |
def __init__(self, parent): super().__init__(None, Qt.WindowSystemMenuHint | Qt.WindowTitleHint) self.parent = parent self.setWindowModality(Qt.WindowModal) self.groups = self.parent.channels.groups self.index = {} self.cycles = None self.create_widgets()
Example #9
Source File: notes.py From wonambi with GNU General Public License v3.0 | 5 votes |
def __init__(self, parent): super().__init__(None, Qt.WindowSystemMenuHint | Qt.WindowTitleHint) self.parent = parent self.setWindowTitle('Merge events') self.setWindowModality(Qt.ApplicationModal) self.create_dialog()
Example #10
Source File: download_window.py From Artemis with GNU General Public License v3.0 | 5 votes |
def __init__(self): """Initialize the window.""" super().__init__() self.setupUi(self) self.setWindowFlags( # Qt.Window | Qt.CustomizeWindowHint | Qt.WindowTitleHint | Qt.WindowCloseButtonHint | Qt.WindowStaysOnTopHint ) self._no_internet_msg = pop_up(self, title=Messages.NO_CONNECTION, text=Messages.NO_CONNECTION_MSG, connection=self.close) self._bad_db_download_msg = pop_up(self, title=Messages.BAD_DOWNLOAD, text=Messages.BAD_DOWNLOAD_MSG, connection=self.close) self._slow_conn_msg = pop_up(self, title=Messages.SLOW_CONN, text=Messages.SLOW_CONN_MSG, connection=self.close) self._download_thread = DownloadThread() self._download_thread.finished.connect(self._wait_close) self._download_thread.progress.connect(self._display_progress) self._download_thread.speed_progress.connect(self._display_speed) self.closed.connect(self._download_thread.set_exit) self.cancel_btn.clicked.connect(self._terminate_process) self._size = 0 self.target = None
Example #11
Source File: input_dialog.py From execution-trace-viewer with MIT License | 4 votes |
def __init__(self, parent=None, title="Title", data=[], on_ok_clicked=None): QWidget.__init__(self, parent) self.setWindowFlags( Qt.Dialog | Qt.WindowTitleHint | Qt.CustomizeWindowHint | Qt.WindowCloseButtonHint ) self.data = data self.output_data = [] self.on_ok_clicked = on_ok_clicked mainLayout = QGridLayout() # create labels and input widgets for i, item in enumerate(self.data): label_widget = QLabel(item["label"] + ":") if isinstance(item["data"], bool): input_widget = QCheckBox() input_widget.setChecked(item["data"]) elif isinstance(item["data"], (int, str)): default = str(item.get("data", "")) input_widget = QLineEdit(default) elif isinstance(item["data"], list): input_widget = QComboBox() input_widget.addItems(item["data"]) else: print(f"Error. Unknown data type: {type(item['data'])}") return if "tooltip" in item: input_widget.setToolTip(str(item["tooltip"])) label_widget.setToolTip(str(item["tooltip"])) item["widget"] = input_widget mainLayout.addWidget(label_widget, i, 0) mainLayout.addWidget(input_widget, i, 1) ok_btn = QPushButton("Ok") ok_btn.clicked.connect(self.on_ok_btn_clicked) mainLayout.addWidget(ok_btn) cancel_btn = QPushButton("Cancel") cancel_btn.clicked.connect(self.on_cancel_btn_clicked) mainLayout.addWidget(cancel_btn) self.setLayout(mainLayout) self.setWindowTitle(title)