[Pkg-anonymity-tools] [onionshare] 37/140: beginning Options layout

Ulrike Uhlig u-guest at moszumanska.debian.org
Mon Sep 29 20:33:45 UTC 2014


This is an automated email from the git hooks/post-receive script.

u-guest pushed a commit to branch master
in repository onionshare.

commit db6600cb71f433d9af2582d0c06484da1451f4b4
Author: Micah Lee <micah at micahflee.com>
Date:   Wed Aug 27 16:46:19 2014 -0700

    beginning Options layout
---
 onionshare_gui/onionshare_gui.py |  5 +++++
 onionshare_gui/options.py        | 18 ++++++++++++++++++
 2 files changed, 23 insertions(+)

diff --git a/onionshare_gui/onionshare_gui.py b/onionshare_gui/onionshare_gui.py
index 1c17828..086c54b 100644
--- a/onionshare_gui/onionshare_gui.py
+++ b/onionshare_gui/onionshare_gui.py
@@ -14,6 +14,7 @@ from onionshare import strings, helpers, web
 from file_selection import FileSelection
 from server_status import ServerStatus
 from downloads import Downloads
+from options import Options
 
 class Application(QtGui.QApplication):
     def __init__(self):
@@ -44,11 +45,15 @@ class OnionShareGui(QtGui.QWidget):
         # downloads
         downloads = Downloads()
 
+        # options
+        options = Options()
+
         # main layout
         self.layout = QtGui.QVBoxLayout()
         self.layout.addLayout(file_selection)
         self.layout.addLayout(server_status)
         self.layout.addLayout(downloads)
+        self.layout.addLayout(options)
         self.setLayout(self.layout)
         self.show()
 
diff --git a/onionshare_gui/options.py b/onionshare_gui/options.py
new file mode 100644
index 0000000..6e3a30a
--- /dev/null
+++ b/onionshare_gui/options.py
@@ -0,0 +1,18 @@
+from PyQt4 import QtCore, QtGui
+
+import common
+from onionshare import strings, helpers
+
+class Options(QtGui.QHBoxLayout):
+    def __init__(self):
+        super(Options, self).__init__()
+        self.addSpacing(10)
+        
+        # close automatically
+        self.close_automatically = QtGui.QCheckBox()
+        self.close_automatically.setCheckState(QtCore.Qt.Checked)
+        self.close_automatically.setText(strings._("close_on_finish"))
+
+        # add the widgets
+        self.addWidget(self.close_automatically)
+

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/onionshare.git



More information about the Pkg-anonymity-tools mailing list