mirror of
https://github.com/onionshare/onionshare.git
synced 2025-12-16 00:34:09 -05:00
beginning Downloads layout
This commit is contained in:
parent
d519e62b93
commit
e7af77b3f7
4 changed files with 44 additions and 2 deletions
26
onionshare_gui/downloads.py
Normal file
26
onionshare_gui/downloads.py
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
from PyQt4 import QtCore, QtGui
|
||||
|
||||
import common
|
||||
from onionshare import strings, helpers
|
||||
|
||||
class Downloads(QtGui.QVBoxLayout):
|
||||
def __init__(self):
|
||||
super(Downloads, self).__init__()
|
||||
self.addSpacing(10)
|
||||
|
||||
# downloads label
|
||||
self.downloads_label = QtGui.QLabel(strings._('gui_downloads'))
|
||||
"""progress_bar = QtGui.QProgressBar()
|
||||
progress_bar.setFormat("12.3 KiB, 17%")
|
||||
progress_bar.setTextVisible(True)
|
||||
progress_bar.setAlignment(QtCore.Qt.AlignHCenter)
|
||||
progress_bar.setMinimum(0)
|
||||
progress_bar.setMaximum(100)
|
||||
progress_bar.setValue(17)"""
|
||||
# hide downloads by default
|
||||
self.downloads_label.hide()
|
||||
|
||||
# add the widgets
|
||||
self.addWidget(self.downloads_label)
|
||||
#self.addWidget(progress_bar)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue