luizgmencucini 0 Posted January 8, 2018 Erro ao Inserir o bot de rodar itens no client obs:está apenas com TAB Syserr: Spoiler 0107 18:57:35643 :: File "system.py", line 130, in __pack_import 0107 18:57:35643 :: File " 0107 18:57:35643 :: <string> 0107 18:57:35643 :: ", line 0107 18:57:35643 :: 2067 0107 18:57:35643 :: 0107 18:57:35643 :: 0107 18:57:35643 :: self.switchbot.Show() 0107 18:57:35643 :: 0107 18:57:35643 :: 0107 18:57:35643 :: 0107 18:57:35643 :: 0107 18:57:35643 :: 0107 18:57:35643 :: 0107 18:57:35643 :: 0107 18:57:35643 :: 0107 18:57:35643 :: 0107 18:57:35643 :: 0107 18:57:35643 :: 0107 18:57:35643 :: 0107 18:57:35643 :: 0107 18:57:35644 :: 0107 18:57:35644 :: 0107 18:57:35644 :: 0107 18:57:35644 :: 0107 18:57:35644 :: 0107 18:57:35644 :: 0107 18:57:35644 :: 0107 18:57:35644 :: 0107 18:57:35644 :: ^ 0107 18:57:35644 :: SyntaxError 0107 18:57:35644 :: : 0107 18:57:35644 :: invalid syntax 0107 18:57:35644 :: Código: Spoiler def __toggleSwitchbot(self): import SwitchBot if self.switchbot.bot_shown == 1: self.switchbot.Hide() else: self.switchbot.Show() Alguém sabe pq esta dando errado? Share this post Link to post Share on other sites
0 Snooke 87 Posted January 8, 2018 (edited) Não sei se é disso, mas tenta meter desta maneira def __toggleSwitchbot(self): if self.switchbot.bot_shown == 1: self.switchbot.Hide() else: self.switchbot.Show() Edited January 8, 2018 by мστσкσ (see edit history) Share this post Link to post Share on other sites
0 luizgmencucini 0 Posted January 19, 2018 Em 08/01/2018 at 13:01, Devil_FAN disse: Não sei se é disso, mas tenta meter desta maneira def __toggleSwitchbot(self): if self.switchbot.bot_shown == 1: self.switchbot.Hide() else: self.switchbot.Show() Deu não Share this post Link to post Share on other sites
Erro ao Inserir o bot de rodar itens no client
obs:está apenas com TAB
Syserr:
0107 18:57:35643 :: File "system.py", line 130, in __pack_import
0107 18:57:35643 :: File "
0107 18:57:35643 :: <string>
0107 18:57:35643 :: ", line
0107 18:57:35643 :: 2067
0107 18:57:35643 ::
0107 18:57:35643 ::
0107 18:57:35643 :: self.switchbot.Show()
0107 18:57:35643 ::
0107 18:57:35643 ::
0107 18:57:35643 ::
0107 18:57:35643 ::
0107 18:57:35643 ::
0107 18:57:35643 ::
0107 18:57:35643 ::
0107 18:57:35643 ::
0107 18:57:35643 ::
0107 18:57:35643 ::
0107 18:57:35643 ::
0107 18:57:35643 ::
0107 18:57:35643 ::
0107 18:57:35644 ::
0107 18:57:35644 ::
0107 18:57:35644 ::
0107 18:57:35644 ::
0107 18:57:35644 ::
0107 18:57:35644 ::
0107 18:57:35644 ::
0107 18:57:35644 ::
0107 18:57:35644 :: ^
0107 18:57:35644 :: SyntaxError
0107 18:57:35644 :: :
0107 18:57:35644 :: invalid syntax
0107 18:57:35644 ::
Código:
def __toggleSwitchbot(self):
import SwitchBot
if self.switchbot.bot_shown == 1:
self.switchbot.Hide()
else:
self.switchbot.Show()
Alguém sabe pq esta dando errado?
Share this post
Link to post
Share on other sites