diff options
author | mkaay <mkaay@mkaay.de> | 2011-01-26 18:54:28 +0100 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2011-01-26 18:54:28 +0100 |
commit | 159f8418fc33080146d360eab45390efb8c5ef6b (patch) | |
tree | 066028be8626f38c85c7d42949cb95950814e4be /module/gui/MainWindow.py | |
parent | gui status frame facelift (diff) | |
download | pyload-159f8418fc33080146d360eab45390efb8c5ef6b.tar.xz |
gui style optimizations
Diffstat (limited to 'module/gui/MainWindow.py')
-rw-r--r-- | module/gui/MainWindow.py | 47 |
1 files changed, 20 insertions, 27 deletions
diff --git a/module/gui/MainWindow.py b/module/gui/MainWindow.py index 86d82c8e7..7a3dfe098 100644 --- a/module/gui/MainWindow.py +++ b/module/gui/MainWindow.py @@ -79,6 +79,7 @@ class MainWindow(QMainWindow): f = self.font() f.setBold(True) self.setFont(f) + self.setAlignment(Qt.AlignRight) class Seperator(QFrame): def __init__(self): @@ -87,40 +88,32 @@ class MainWindow(QMainWindow): self.setFrameShadow(QFrame.Sunken) l.addWidget(BoldLabel(_("Packages:")), 0, 0) - l.addWidget(BoldLabel(_("Files:")), 1, 0) self.packageCount = QLabel("0") - self.fileCount = QLabel("0") l.addWidget(self.packageCount, 0, 1) - l.addWidget(self.fileCount, 1, 1) - l.addWidget(Seperator(), 0, 2, 2, 1) + l.addWidget(BoldLabel(_("Files:")), 0, 2) + self.fileCount = QLabel("0") + l.addWidget(self.fileCount, 0, 3) - l.addWidget(BoldLabel(_("Status:")), 0, 3) - l.addWidget(BoldLabel(_("IP:")), 1, 3) + l.addWidget(BoldLabel(_("Status:")), 0, 4) self.status = QLabel("running") - self.ip = QLabel("") - l.addWidget(self.status, 0, 4) - l.addWidget(self.ip, 1, 4) - - l.addWidget(Seperator(), 0, 5, 2, 1) + l.addWidget(self.status, 0, 5) - l.addWidget(BoldLabel(_("Speed:")), 0, 6) - l.addWidget(BoldLabel(_("Space:")), 1, 6) - self.speed = QLabel("") + l.addWidget(BoldLabel(_("Space:")), 0, 6) self.space = QLabel("") - l.addWidget(self.speed, 0, 7) - l.addWidget(self.space, 1, 7) - - l.addWidget(Seperator(), 0, 8, 2, 1) - - l.addWidget(BoldLabel(_("Max. downloads:")), 0, 9) - l.addWidget(BoldLabel(_("Max. chunks:")), 1, 9) - self.maxDownloads = QSpinBox() - self.maxDownloads.setEnabled(False) - self.maxChunks = QSpinBox() - self.maxChunks.setEnabled(False) - l.addWidget(self.maxDownloads, 0, 10) - l.addWidget(self.maxChunks, 1, 10) + l.addWidget(self.space, 0, 7) + l.addWidget(BoldLabel(_("Speed:")), 0, 8) + self.speed = QLabel("") + l.addWidget(self.speed, 0, 9) + + #l.addWidget(BoldLabel(_("Max. downloads:")), 0, 9) + #l.addWidget(BoldLabel(_("Max. chunks:")), 1, 9) + #self.maxDownloads = QSpinBox() + #self.maxDownloads.setEnabled(False) + #self.maxChunks = QSpinBox() + #self.maxChunks.setEnabled(False) + #l.addWidget(self.maxDownloads, 0, 10) + #l.addWidget(self.maxChunks, 1, 10) #set menubar and statusbar self.menubar = self.menuBar() |