mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
set window title, resize window by default
This commit is contained in:
parent
f18543d7c7
commit
5865fd60ea
@ -9,6 +9,7 @@ qtapp = QApplication(sys.argv)
|
||||
|
||||
def alert(msg, icon=QMessageBox.NoIcon):
|
||||
dialog = QMessageBox()
|
||||
dialog.setWindowTitle("OnionShare")
|
||||
dialog.setText(msg)
|
||||
dialog.setIcon(icon)
|
||||
dialog.exec_()
|
||||
@ -58,12 +59,14 @@ def launch_window(webapp_port, onionshare_port, basename):
|
||||
global qtapp
|
||||
qtapp.connect(qtapp, SIGNAL("aboutToQuit()"), shutdown)
|
||||
web = QWebView()
|
||||
web.setWindowTitle("{0} | OnionShare".format(basename))
|
||||
web.resize(550, 350)
|
||||
web.setMinimumSize(550, 300)
|
||||
web.setMaximumSize(550, 900)
|
||||
web.load(QUrl("http://127.0.0.1:{0}".format(webapp_port)))
|
||||
web.show()
|
||||
sys.exit(qtapp.exec_())
|
||||
|
||||
# todo: set window title, and do resizable stuff
|
||||
|
||||
def main():
|
||||
onionshare.strings = onionshare.load_strings()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user