From fa89cd38f22051fe6e3afec5e93eb7e1e70351c0 Mon Sep 17 00:00:00 2001
From: tassaron
Date: Sun, 28 May 2017 16:26:06 -0400
Subject: slight fixes to component UIs
and adding a component changes the stackedWidget
---
components/original.ui | 13 +-
components/text.ui | 568 ++++++++++++++++++++++++-------------------------
main.py | 1 +
3 files changed, 284 insertions(+), 298 deletions(-)
diff --git a/components/original.ui b/components/original.ui
index 0e6dd98..9cdfac2 100644
--- a/components/original.ui
+++ b/components/original.ui
@@ -16,13 +16,16 @@
- 10
- 10
- 567
- 29
+ 0
+ 0
+ 561
+ 51
+
+ 4
+
-
@@ -86,6 +89,8 @@
+ label_visLayout
+ layoutWidget
diff --git a/components/text.ui b/components/text.ui
index 4431278..9a37215 100644
--- a/components/text.ui
+++ b/components/text.ui
@@ -13,316 +13,296 @@
Form
-
+
- 10
- 20
- 567
- 25
+ 0
+ 0
+ 581
+ 131
-
+
- 0
+ 4
-
-
-
- Title
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 300
- 0
-
-
-
- Testing New GUI
-
-
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+ Font
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 140
+ 0
+
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Fixed
+
+
+
+ 5
+ 20
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+ Font Size
+
+
+
+ -
+
+
+ 500
+
+
+
+
-
-
-
- Qt::Horizontal
-
-
- QSizePolicy::Fixed
-
-
-
- 5
- 20
-
-
-
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+ Text Layout
+
+
+
+ -
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Fixed
+
+
+
+ 5
+ 20
+
+
+
+
+ -
+
+
+ Text Color
+
+
+
+ -
+
+
+
+ 32
+ 32
+
+
+
+
+
+
+
+ 32
+ 32
+
+
+
+
+ -
+
+
+
-
-
-
-
- 0
- 0
-
-
-
- X
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 80
- 16777215
-
-
-
-
- 0
- 0
-
-
-
+
+
0
-
- 999999999
-
-
- 0
-
-
-
- -
-
-
- Qt::Horizontal
-
-
- QSizePolicy::Fixed
-
-
-
- 5
- 20
-
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
- Y
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 80
- 16777215
-
-
-
- 999999999
-
-
+
-
+
+
+ Title
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 300
+ 0
+
+
+
+ Testing New GUI
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Fixed
+
+
+
+ 5
+ 20
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+ X
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 80
+ 16777215
+
+
+
+
+ 0
+ 0
+
+
+
+ 0
+
+
+ 999999999
+
+
+ 0
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Fixed
+
+
+
+ 5
+ 20
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+ Y
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 80
+ 16777215
+
+
+
+ 999999999
+
+
+
+
-
-
-
- 10
- 51
- 567
- 29
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
- Font
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 140
- 0
-
-
-
-
- -
-
-
- Qt::Horizontal
-
-
- QSizePolicy::Fixed
-
-
-
- 5
- 20
-
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
- Font Size
-
-
-
- -
-
-
- 500
-
-
-
-
-
-
-
-
- 10
- 86
- 567
- 29
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
- Text Layout
-
-
-
- -
-
-
- -
-
-
- Qt::Horizontal
-
-
- QSizePolicy::Fixed
-
-
-
- 5
- 20
-
-
-
-
- -
-
-
- Text Color
-
-
-
- -
-
-
-
- 32
- 32
-
-
-
-
-
-
-
- 32
- 32
-
-
-
-
- -
-
-
-
-
-
-
-
- 10
- 121
- 567
- 29
-
-
-
-
diff --git a/main.py b/main.py
index d165fc5..5a80fd8 100644
--- a/main.py
+++ b/main.py
@@ -292,6 +292,7 @@ class Main(QtCore.QObject):
self.pages.append(self.selectedComponents[-1].widget(self))
self.window.listWidget_componentList.setCurrentRow(index)
self.window.stackedWidget.addWidget(self.pages[-1])
+ self.window.stackedWidget.setCurrentWidget(self.pages[-1])
self.selectedComponents[-1].update()
def removeComponent(self):
--
cgit v1.2.3