end
This commit is contained in:
parent
815211d9f0
commit
93bc3c5608
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# Form implementation generated from reading ui file 'pmFile.ui'
|
# Form implementation generated from reading ui file 'pmFile.ui'
|
||||||
#
|
#
|
||||||
# Created: Fri Apr 10 16:31:47 2015
|
# Created: Mon Apr 13 21:42:22 2015
|
||||||
# by: PyQt4 UI code generator 4.11.3
|
# by: PyQt4 UI code generator 4.11.3
|
||||||
#
|
#
|
||||||
# WARNING! All changes made in this file will be lost!
|
# WARNING! All changes made in this file will be lost!
|
||||||
@ -71,8 +71,8 @@ class Ui_Dialog3(object):
|
|||||||
|
|
||||||
def retranslateUi(self, Dialog3):
|
def retranslateUi(self, Dialog3):
|
||||||
Dialog3.setWindowTitle(_translate("Dialog3", "Dialog", None))
|
Dialog3.setWindowTitle(_translate("Dialog3", "Dialog", None))
|
||||||
self.pushButton.setText(_translate("Dialog3", "Send message", None))
|
self.pushButton.setText(_translate("Dialog3", "Send it", None))
|
||||||
self.pushButton_2.setText(_translate("Dialog3", "send file", None))
|
self.pushButton_2.setText(_translate("Dialog3", "import file ...", None))
|
||||||
self.label.setText(_translate("Dialog3", "Sending a file to : ", None))
|
self.label.setText(_translate("Dialog3", "Sending a file to : ", None))
|
||||||
self.label_2.setText(_translate("Dialog3", "BobZorro", None))
|
self.label_2.setText(_translate("Dialog3", "BobZorro", None))
|
||||||
|
|
||||||
|
@ -35,14 +35,14 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="pushButton">
|
<widget class="QPushButton" name="pushButton">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Send message</string>
|
<string>Send it</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="pushButton_2">
|
<widget class="QPushButton" name="pushButton_2">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>send file</string>
|
<string>import file ...</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
@ -179,7 +179,6 @@ class privateMessage () :
|
|||||||
self.ui.label_2.setText(pmPerson)
|
self.ui.label_2.setText(pmPerson)
|
||||||
|
|
||||||
def codeNb (self, txt):
|
def codeNb (self, txt):
|
||||||
#if re.compile(' ').search(str(txt)) : txt = txt.split(" ")[0]
|
|
||||||
|
|
||||||
if txt == "300": info = "USERLIST"
|
if txt == "300": info = "USERLIST"
|
||||||
elif txt == "301": info = "USERAWAY"
|
elif txt == "301": info = "USERAWAY"
|
||||||
@ -190,7 +189,7 @@ class privateMessage () :
|
|||||||
elif txt == "306": info = "NEW_PM"
|
elif txt == "306": info = "NEW_PM"
|
||||||
elif txt == "307": info = "ASKING_FOR_PM"
|
elif txt == "307": info = "ASKING_FOR_PM"
|
||||||
|
|
||||||
elif txt == "308": info = "PRIVATE_DISCU_ACCEPTED_FROM" #SUCC_PRIVATE_DISCUSSION_OK SUCC_PRIVATE_DISCUSSION_ACCEPTED
|
elif txt == "308": info = "PRIVATE_DISCU_ACCEPTED_FROM"
|
||||||
elif txt == "309": info = "PRIVATE_DISCU_REFUSED_FROM"
|
elif txt == "309": info = "PRIVATE_DISCU_REFUSED_FROM"
|
||||||
|
|
||||||
elif txt == "310": info = "IS_NOW_ENABLE"
|
elif txt == "310": info = "IS_NOW_ENABLE"
|
||||||
@ -217,7 +216,7 @@ class privateMessage () :
|
|||||||
elif txt == "209": info = "SUCC_ENABLED"
|
elif txt == "209": info = "SUCC_ENABLED"
|
||||||
elif txt == "210": info = "SUCC_DISABLED"
|
elif txt == "210": info = "SUCC_DISABLED"
|
||||||
|
|
||||||
elif txt == "211": info = "SUCC_PMFILE" #SUCC_ASKED_FILE
|
elif txt == "211": info = "SUCC_PMFILE"
|
||||||
|
|
||||||
elif txt == "212": info = "SUCC_ACCEPTED_FILE"
|
elif txt == "212": info = "SUCC_ACCEPTED_FILE"
|
||||||
|
|
||||||
@ -313,7 +312,7 @@ class privateMessage () :
|
|||||||
|
|
||||||
|
|
||||||
if self.codeNb(txt.split(" ")[0]) == "SUCC_PM_SENDED":
|
if self.codeNb(txt.split(" ")[0]) == "SUCC_PM_SENDED":
|
||||||
self.message_buffer2 += '<br><span style="color : grey"> ' + self.getTimeStamp() + '</span> <span style="color : red"> < '+self.pmPerso +' > </span> ' + self.htmlToText(self.cmdP) + ''
|
self.message_buffer2 += '<br><span style="color : grey"> ' + self.getTimeStamp() + '</span> <span style="color : red"> < '+self.pmPerso +' > </span> <span style="color : black">' + self.htmlToText(self.cmdP) + '</span>'
|
||||||
|
|
||||||
|
|
||||||
if self.codeNb(txt.split(" ")[0]) == "SUCC_PRIVATE_DISCUSSION_ACCEPTED":
|
if self.codeNb(txt.split(" ")[0]) == "SUCC_PRIVATE_DISCUSSION_ACCEPTED":
|
||||||
@ -476,7 +475,7 @@ class start(QtGui.QMainWindow):
|
|||||||
self.ShowMessageOK(txt.split(" ")[1]+" Rejected your Private discussion !!")
|
self.ShowMessageOK(txt.split(" ")[1]+" Rejected your Private discussion !!")
|
||||||
|
|
||||||
|
|
||||||
if self.codeNb(txt.split(" ")[0]) == "SUCCESSFUL_LOGOUT" :
|
if self.codeNb(txt.split(" ")[0]) == "SUCC_CHANNEL_QUIT" :
|
||||||
self.ShowMessageOK("You have logged out of the DNC !")
|
self.ShowMessageOK("You have logged out of the DNC !")
|
||||||
self.ui.listNames.clear()
|
self.ui.listNames.clear()
|
||||||
self.ui.listNames_2.clear()
|
self.ui.listNames_2.clear()
|
||||||
|
Reference in New Issue
Block a user