diff options
| author | Fulgen301 <tokmajigeorge@gmailc.om> | 2016-12-22 06:55:11 +0100 |
|---|---|---|
| committer | Fulgen301 <tokmajigeorge@gmailc.om> | 2016-12-22 06:55:11 +0100 |
| commit | bf9cfdbfacccf956b01775239b0abb5bc7571ec8 (patch) | |
| tree | 2708c0d0c794f1126d02815d264f08dda7aa936e | |
| parent | c5d654d9b3e65ab8482b53e872a9e53ad18f82e2 (diff) | |
| download | pycrctrl-bf9cfdbfacccf956b01775239b0abb5bc7571ec8.tar.gz pycrctrl-bf9cfdbfacccf956b01775239b0abb5bc7571ec8.zip | |
state: Add decorators for property
| -rw-r--r-- | pycrctrl.pyp | 4 |
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 |
