aboutsummaryrefslogtreecommitdiffstats
path: root/pycrctrl.pyp
diff options
context:
space:
mode:
authorFulgen301 <tokmajigeorge@gmailc.om>2016-12-22 06:55:11 +0100
committerFulgen301 <tokmajigeorge@gmailc.om>2016-12-22 06:55:11 +0100
commitbf9cfdbfacccf956b01775239b0abb5bc7571ec8 (patch)
tree2708c0d0c794f1126d02815d264f08dda7aa936e /pycrctrl.pyp
parentc5d654d9b3e65ab8482b53e872a9e53ad18f82e2 (diff)
downloadpycrctrl-bf9cfdbfacccf956b01775239b0abb5bc7571ec8.tar.gz
pycrctrl-bf9cfdbfacccf956b01775239b0abb5bc7571ec8.zip
state: Add decorators for property
Diffstat (limited to 'pycrctrl.pyp')
-rw-r--r--pycrctrl.pyp4
1 files changed, 2 insertions, 2 deletions
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