class Oper_Comnt
(QDialog, ui_OpComnt.
Ui_OpComnt): """
This Class creates an instance of the ui_OpComnt.Ui_OpComnt pop-up
Dialog used for Displaying/Receiving Operator Comments.
"""
def __init__(self, text, NumChars=255, parent=None):
super(Oper_Comnt, self).__init__(parent)
self.__index = 0
self.setupUi(self)
self.setModal(True)
self.NumChars = NumChars
# Set up events for Button Clicks
Selection=[]
for i in range(10):
Selection.append(getattr(self, "Comment_%d" %(i+1)) )
self.connect(Selection[i],SIGNAL("clicked()"),
self.comment_click)
self.connect(self.lineEdit,SIGNAL("returnPressed()"),self.usr_enter)
self.connect(self.lineEdit,SIGNAL("textEdited()"),self.new_char)
class Oper_Comnt(QDialog, ui_OpComnt.Ui_OpComnt):
"""
This Class creates an instance of the ui_OpComnt.Ui_OpComnt pop-up
Dialog used for Displaying/Receiving Operator Comments.
"""
def __init__(self, text, NumChars=255, parent=None):
super(Oper_Comnt, self).__init__(parent)
self.__index = 0
self.setupUi(self)
self.setModal(True)
self.NumChars = NumChars
# Set up events for Button Clicks
Selection=[]
for i in range(10):
Selection.append(getattr(self, "Comment_%d" %(i+1)) )
self.connect(Selection[i],SIGNAL("clicked()"),
self.comment_click)
self.connect(self.lineEdit,SIGNAL("returnPressed()"),self.usr_enter)
self.connect(self.lineEdit,SIGNAL("textEdited()"),self.new_char)
To copy to clipboard, switch view to plain text mode
Bookmarks