

def setupUi(self, parent):
    self.setWindowTitle('Opemtumblr-qt Chat')
    self.resize(655, 386)
    icon = QtGui.QIcon()
    icon.addPixmap(QtGui.QPixmap('/usr/share/pixmaps/opentumblr-qt/dashboard/opentumblr_icon.jpg'), QtGui.QIcon.Normal, QtGui.QIcon.Off)
    self.setWindowIcon(icon)
    Hbox = QtGui.QHBoxLayout()
    self.Vbox = QtGui.QVBoxLayout()
    self.lb_Add = self.CreateLabel('<h1>Add a Chat Post</h1>', parent)
    self.lb_title = self.CreateLabel('<big>Title</big> (optional)', parent)
    self.lb_dialog = self.CreateLabel('<big>Dialogue</big>', parent)
    self.lb_intructions = self.CreateLabel('<strong>Example</strong><br />Tourist: Could you give us directions to Olive Garden?<br />New Yorker: No, but I could give you directions to an actual Italian restaurant.', parent)
    self.le_title = self.CreateLineEdit(parent)
    self.te_chat = QtGui.QTextEdit()
    self.BtBox = QtGui.QHBoxLayout()
    self.bt_post = self.CreateButton('Create Post', parent)
    self.bt_post.setStyleSheet('color: green')
    self.bt_cancel = self.CreateButton('Cancel', parent)
    self.bt_cancel.setStyleSheet('color: red')
    self.BtBox.addWidget(self.bt_post)
    self.BtBox.addStretch()
    self.BtBox.addWidget(self.bt_cancel)
    self.Vbox.addWidget(self.lb_Add)
    self.Vbox.addWidget(self.lb_title)
    self.Vbox.addWidget(self.le_title)
    self.Vbox.addWidget(self.lb_dialog)
    self.Vbox.addWidget(self.lb_intructions)
    self.Vbox.addWidget(self.te_chat)
    self.Vbox.addLayout(self.BtBox)
    self.advanced = AdvancedOptions_widget()
    Hbox.addLayout(self.Vbox)
    Hbox.addLayout(self.advanced)
    self.setLayout(Hbox)

dataset/ETHPy150Open ialex/opentumblr-qt/opentumblrqt/gui/chat_ui.py Chat_widget.setupUi/original