Beispiel #1
0
 def change_title(self):
     if self.t_object == "QGroupBox":
         self.screen_object.setTitle(self.s_title.text())
         ObjectRender(self)
     else:
         self.screen_object.setWindowTitle(self.s_title.text())
         ObjectRender(self)
Beispiel #2
0
 def change_icon(self):
     try:
         if self.t_object == "QTabWidget":
             self.screen_object.setTabIcon(0, QIcon(self.s_icon.text()))
             self.screen_object.setTabIcon(1, QIcon(self.s_icon.text()))
             ObjectRender(self)
         else:
             self.screen_object.setIcon(QIcon(self.s_icon.text()))
             ObjectRender(self)
     except Exception as ex:
         print(ex)
Beispiel #3
0
 def change_fixed_size(self):
     try:
         i = self.s_fixedsize.text().partition(",")
         if self.t_object == "QSlider" or self.t_object == "QScrollBar":
             self.screen_object[0].setFixedSize(int(i[0]), int(i[2]))
             self.screen_object[1].setFixedSize(int(i[0]), int(i[2]))
             ObjectRender(self)
         else:
             self.screen_object.setFixedSize(int(i[0]), int(i[2]))
             ObjectRender(self)
     except Exception as ex:
         print(ex)
Beispiel #4
0
    def change_object_name(self):
        if self.t_object == "QSlider" or self.t_object == "QScrollBar":
            self.screen_object[0].setObjectName(self.s_objectname.text())
            self.screen_object[1].setObjectName(self.s_objectname.text())
            ObjectRender(self)
        else:
            self.screen_object.setObjectName(self.s_objectname.text())
            ObjectRender(self)

        self.dock_code.header.clear()
        self.dock_code.header.addItems(
            [self.t_object, "#" + self.s_objectname.text()])
Beispiel #5
0
 def change_align(self, alg):
     try:
         if self.t_object == "QSlider" or self.t_object == "QScrollBar":
             self.screen_object[0].setAlignment(
                 AD.qt_aligns[self.s_align.currentText()])
             self.screen_object[1].setAlignment(
                 AD.qt_aligns[self.s_align.currentText()])
             ObjectRender(self)
         else:
             self.screen_object.setAlignment(
                 AD.qt_aligns[self.s_align.currentText()])
             ObjectRender(self)
     except Exception as ex:
         print(ex)
Beispiel #6
0
 def change_cursor(self, crs):
     try:
         if self.t_object == "QSlider" or self.t_object == "QScrollBar":
             self.screen_object[0].setCursor(
                 CD.qt_cursors[self.s_cursor.currentText()])
             self.screen_object[1].setCursor(
                 CD.qt_cursors[self.s_cursor.currentText()])
             ObjectRender(self)
         else:
             self.screen_object.setCursor(
                 CD.qt_cursors[self.s_cursor.currentText()])
             ObjectRender(self)
     except Exception as ex:
         print(ex)
Beispiel #7
0
 def change_icon_size(self):
     try:
         i = self.s_iconsize.text().partition(",")
         self.screen_object.setIconSize(QSize(int(i[0]), int(i[2])))
         ObjectRender(self)
     except Exception as ex:
         print(ex)
Beispiel #8
0
 def change_value(self):
     try:
         self.screen_object.setValue(int(self.s_value.text()))
         ObjectRender(self)
     except Exception as ex:
         print(ex)
Beispiel #9
0
 def change_text(self):
     self.screen_object.setText(self.s_text.text())
     ObjectRender(self)