2 # -*- coding: utf-8 -*-
4 from ui_mainwindowdlg
import Ui_MainWindowDlg
5 from PyQt4
import QtGui
,QtCore
8 class MainWindowDlg(QtGui
.QMainWindow
, Ui_MainWindowDlg
):
10 QtGui
.QMainWindow
.__init
__(self
)
12 QtCore
.QObject
.connect(self
.SendButton
,QtCore
.SIGNAL("clicked()"),self
.onSendButtonClicked
)
14 def connectJabber(self
):
15 self
.emit (QtCore
.SIGNAL("connectJabber()"))
16 def onSendButtonClicked(self
):
17 msg
= self
.InputLine
.text()
20 self
.ChatView
.insertPlainText(msg
+"\n")