Lines 96-102
class GlobalMixer(QWidget):
Link Here
|
96 |
@pyqtSlot() |
96 |
@pyqtSlot() |
97 |
def on_txtNickname_returnPressed( self ): |
97 |
def on_txtNickname_returnPressed( self ): |
98 |
if self.nickname.canChangeValue(): |
98 |
if self.nickname.canChangeValue(): |
99 |
asciiData = self.txtNickname.text().toAscii() |
99 |
self.nickname.setText( self.txtNickname.text().encode('utf-8') ) |
100 |
self.nickname.setText( asciiData.data() ) |
|
|
101 |
else: |
100 |
else: |
102 |
self.txtNickname.setText( self.nickname.text() ) |
101 |
self.txtNickname.setText( self.nickname.text() ) |