|
|
|
@ -33,12 +33,11 @@ class Player(QtGui.QWidget):
|
|
|
|
|
|
|
|
|
|
def change_name(self, new_name):
|
|
|
|
|
self.name = new_name
|
|
|
|
|
self.name_label.set_text(new_name)
|
|
|
|
|
self.name_label.setText(new_name)
|
|
|
|
|
|
|
|
|
|
def add_points(self, amount, commit=True):
|
|
|
|
|
def add_points(self, amount):
|
|
|
|
|
self.points += amount
|
|
|
|
|
if commit:
|
|
|
|
|
self.points_label.setText(str(self.points))
|
|
|
|
|
self.points_label.setText(str(self.points))
|
|
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
|
def gen_player(clazz, num, parent=None):
|
|
|
|
|