@Metin2 22 Posted June 12, 2020 Boas ! alguem pode me ajudar neste erro Citar 0612 18:48:50036 :: Traceback (most recent call last): 0612 18:48:50036 :: File "uiTaskBar.py", line 949, in OnUpdate 0612 18:48:50036 :: File "uiTaskBar.py", line 694, in SetMp 0612 18:48:50036 :: IndexError 0612 18:48:50036 :: : 0612 18:48:50036 :: list index out of range 0612 18:48:50036 :: def SetMp(self, _actual, _recovery, _max): max_show = 76 -int(76.0 * float(_actual)/ float(_max)) max_rec = 76 -int(76.0 * float(_recovery)/ float(_max)) for i in xrange(0,77): self.MpFull[i].Hide() self.MpRefresh[i].Hide() self.MpRefresh[max_rec].Show() self.MpFull[max_show].Show() o erro esta na linha self.MpRefresh.Hide() Share this post Link to post Share on other sites
0 [SA]Phoenix 9 Posted June 14, 2020 (edited) tem atenção aos tabs pode ser disso testa assim def SetMp(self, _actual, _recovery, _max): max_show = 76 -int(76.0 * float(_actual)/ float(_max)) max_rec = 76 -int(76.0 * float(_recovery)/ float(_max)) for i in xrange(0,77): self.MpFull[i].Hide() self.MpRefresh[i].Hide() self.MpRefresh[max_rec].Show() self.MpFull[max_show].Show() Edited June 14, 2020 by DemonAndQueen (see edit history) Share this post Link to post Share on other sites
Boas ! alguem pode me ajudar neste erro
o erro esta na linha
self.MpRefresh.Hide()
Share this post
Link to post
Share on other sites