initializing Repository, adding gui mockup
[dpim.git] / mainwindowdlg.py
blobeb1744e797752c151d12c8dad58a36c65ad327e5
1 #!/usr/bin/python
2 # -*- coding: utf-8 -*-
4 from ui_mainwindowdlg import Ui_MainWindowDlg
5 from PyQt4 import QtGui,QtCore
8 class MainWindowDlg(QtGui.QMainWindow, Ui_MainWindowDlg):
9 def __init__(self):
10 QtGui.QMainWindow.__init__(self)
11 self.setupUi(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()
18 if len(msg) < 1:
19 return False
20 self.ChatView.insertPlainText(msg+"\n")