Boa noite a todos.Eu estou a criar 1 ficheiro python que executa outros 3 BOTS.2 Deles ja estao a funcionar (Estao no mesmo ficheiro, So que queria executar outro BOT mas fora do Python que é um bot de rodar que é um ficheiro .pycMas se alguem me conseguir arranjar um BOT de rodar .py com 6/7 agradecia.E quem me conseguir ajudar também agradecia e agradeço com +1Codigo: def LoadBoard(self): self.SetCenterPosition() self.SetSize(200 ,100) self.Show() self.AddFlag("movable") self.load = ui.Button() self.load.SetParent(self) self.load.SetUpVisual("d:/ymir work/ui/public/small_button_01.sub") self.load.SetOverVisual("d:/ymir work/ui/public/small_button_02.sub") self.load.SetDownVisual("d:/ymir work/ui/public/small_button_03.sub") self.load.SetText(" PickUP ") self.load.SetPosition(80, 40) self.load.SetEvent(ui.__mem_func__(self.pick_func)) self.load.Show() self.rodar = ui.Button() self.rodar.SetParent(self) self.rodar.SetUpVisual("d:/ymir work/ui/public/small_button_01.sub") self.rodar.SetOverVisual("d:/ymir work/ui/public/small_button_02.sub") self.rodar.SetDownVisual("d:/ymir work/ui/public/small_button_03.sub") self.rodar.SetText(" Rodar ") self.rodar.SetPosition(20, 40) self.rodar.SetEvent(ui.__mem_func__(self.rodar_func)) self.rodar.Show() self.bot = ui.Button() self.bot.SetParent(self) self.bot.SetUpVisual("d:/ymir work/ui/public/small_button_01.sub") self.bot.SetOverVisual("d:/ymir work/ui/public/small_button_02.sub") self.bot.SetDownVisual("d:/ymir work/ui/public/small_button_03.sub") self.bot.SetText(" bot ") self.bot.SetPosition(140, 40) self.bot.SetEvent(ui.__mem_func__(self.bot_func)) self.bot.Show() def pick_func(self): global IsOnScreen if IsOnScreen=="1": self.dialstarter= Dialog1() self.dialstarter.Show() IsOnScreen="1" def rodar_func(self): global IsOnScreen if IsOnScreen=="1": self.dialstarter= SwitchBotDialog() self.dialstarter.Show() IsOnScreen="1" def bot_func(self): global IsOnScreen if IsOnScreen=="1": self.dialstarter= Bot rodar exterior :c () self.dialstarter.Show() IsOnScreen="1"O ultimo "Bot_func" é o que não estou a conseguir fazer a ligação :c
Boa noite a todos.Eu estou a criar 1 ficheiro python que executa outros 3 BOTS.2 Deles ja estao a funcionar (Estao no mesmo ficheiro, So que queria executar outro BOT mas fora do Python que é um bot de rodar que é um ficheiro .pycMas se alguem me conseguir arranjar um BOT de rodar .py com 6/7 agradecia.E quem me conseguir ajudar também agradecia e agradeço com +1Codigo: def LoadBoard(self): self.SetCenterPosition() self.SetSize(200 ,100) self.Show() self.AddFlag("movable") self.load = ui.Button() self.load.SetParent(self) self.load.SetUpVisual("d:/ymir work/ui/public/small_button_01.sub") self.load.SetOverVisual("d:/ymir work/ui/public/small_button_02.sub") self.load.SetDownVisual("d:/ymir work/ui/public/small_button_03.sub") self.load.SetText(" PickUP ") self.load.SetPosition(80, 40) self.load.SetEvent(ui.__mem_func__(self.pick_func)) self.load.Show() self.rodar = ui.Button() self.rodar.SetParent(self) self.rodar.SetUpVisual("d:/ymir work/ui/public/small_button_01.sub") self.rodar.SetOverVisual("d:/ymir work/ui/public/small_button_02.sub") self.rodar.SetDownVisual("d:/ymir work/ui/public/small_button_03.sub") self.rodar.SetText(" Rodar ") self.rodar.SetPosition(20, 40) self.rodar.SetEvent(ui.__mem_func__(self.rodar_func)) self.rodar.Show() self.bot = ui.Button() self.bot.SetParent(self) self.bot.SetUpVisual("d:/ymir work/ui/public/small_button_01.sub") self.bot.SetOverVisual("d:/ymir work/ui/public/small_button_02.sub") self.bot.SetDownVisual("d:/ymir work/ui/public/small_button_03.sub") self.bot.SetText(" bot ") self.bot.SetPosition(140, 40) self.bot.SetEvent(ui.__mem_func__(self.bot_func)) self.bot.Show() def pick_func(self): global IsOnScreen if IsOnScreen=="1": self.dialstarter= Dialog1() self.dialstarter.Show() IsOnScreen="1" def rodar_func(self): global IsOnScreen if IsOnScreen=="1": self.dialstarter= SwitchBotDialog() self.dialstarter.Show() IsOnScreen="1" def bot_func(self): global IsOnScreen if IsOnScreen=="1": self.dialstarter= Bot rodar exterior :c () self.dialstarter.Show() IsOnScreen="1"O ultimo "Bot_func" é o que não estou a conseguir fazer a ligação :c
Share this post
Link to post
Share on other sites