From bf9cfdbfacccf956b01775239b0abb5bc7571ec8 Mon Sep 17 00:00:00 2001 From: Fulgen301 Date: Thu, 22 Dec 2016 06:55:11 +0100 Subject: state: Add decorators for property --- pycrctrl.pyp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pycrctrl.pyp') diff --git a/pycrctrl.pyp b/pycrctrl.pyp index a37b643..2cd8dce 100644 --- a/pycrctrl.pyp +++ b/pycrctrl.pyp @@ -145,10 +145,10 @@ class PyCRCtrl(object): return "PyCRCtrl: commandline: {}, channel: {}, scenario: {}".format(self.commandline, self.channels["ingame"], (self.scenario if self.scenario != "" else "None")) @property - def getState(self): + def state(self): return self.__state - @self.getState.setter + @state.setter def setState(self, text): if text in ["Lobby", "Lädt", "Läuft"]: self.__state = text -- cgit v1.2.3-54-g00ecf