*Întrebare: Am acest vizualizare bonusuri pe buton langa inventar, iar cand vreau sa apas iar pentru a dechide din nou fereastra de bonusuri, cea veche ramane deschisa. Cum as putea sa modific ca atunci cand apas din nou, fereastra veche sa se inchida?
Tipologie server:
*Resursă folosită: python/topic40469.html
*ServerFiles utilizat: Zearth2
*Syserr:
Poză:
*Detalii suplimentare:
Intrebare inchidere fereastra vizualizare bonusuri
Up.
Am incercat sa fac functia:
def ClickEventeButon(self):
if self.Hades_Test.IsShow()
self.Hades_Test.Close()
else:
self.Hades_Test.Show()
Dar primesc urmatoarea eroare in sysser:
Am incercat sa fac functia:
def ClickEventeButon(self):
if self.Hades_Test.IsShow()
self.Hades_Test.Close()
else:
self.Hades_Test.Show()
Dar primesc urmatoarea eroare in sysser:
- [Reizo]
-

- Mesaje: 1301
- Membru din: 22 Oct 2019, 15:44
- Server: SAPPHIRE2
- Regat: Chunjo
- Aprecieri: 409
- Mulţumiri: 4322
- Discord: Copiază ID
- Contact:
Primesti invalid sytax pentru ca in python sintaxa este cu : la sfarsit de statement.
In cazul tau:
if self.Hades_Test.IsShow()
ai uitat :
Ar trebui sa fie asa:
if self.Hades_Test.IsShow():
In cazul tau:
if self.Hades_Test.IsShow()
ai uitat :
Ar trebui sa fie asa:
if self.Hades_Test.IsShow():
Primesc asta in sysser:
Cod: Selectaţi tot
0210 18:33:22572 :: Traceback (most recent call last):
0210 18:33:22572 :: File "ui.py", line 1499, in CallEvent
0210 18:33:22572 :: File "ui.py", line 87, in __call__
0210 18:33:22573 :: File "ui.py", line 69, in __call__
0210 18:33:22573 :: File "uiInventory.py", line 544, in ClickEventeButon
0210 18:33:22573 :: AttributeError
0210 18:33:22573 :: :
0210 18:33:22573 :: 'function' object has no attribute 'IsShow'
0210 18:33:22573 ::
Cod: Selectaţi tot
def ClickEventeButon(self):
if self.Hades_Test.IsShow():
self.Hades_Test.Hide()
else:
self.Hades_Test.Show()
- Tommy Shelby
-

- Mesaje: 432
- Membru din: 31 Mai 2015, 20:42
- Server: AOG2 soon
- Regat: Jinno
- Aprecieri: 58
- Mulţumiri: 579
- Discord: Copiază ID
function' object has no attribute 'IsShow' lipseste pe binary
Dar mai jos am alte functii care apeleaza IsShow() si care functioneazaTommy Shelby scrie: ↑10 Feb 2021, 23:14 function' object has no attribute 'IsShow' lipseste pe binary
Cod: Selectaţi tot
def ClickCostumeButton(self):
print "Click Costume Button"
if self.wndCostume:
if self.wndCostume.IsShow():
self.wndCostume.Hide()
else:
self.wndCostume.Show()
else:
self.wndCostume = CostumeWindow(self)
self.wndCostume.Show()- Tommy Shelby
-

- Mesaje: 432
- Membru din: 31 Mai 2015, 20:42
- Server: AOG2 soon
- Regat: Jinno
- Aprecieri: 58
- Mulţumiri: 579
- Discord: Copiază ID
Nu este pus bine iar is show nu este definit
[ Postat de pe iPhone ]
[ Postat de pe iPhone ]

- Tommy Shelby
-

- Mesaje: 432
- Membru din: 31 Mai 2015, 20:42
- Server: AOG2 soon
- Regat: Jinno
- Aprecieri: 58
- Mulţumiri: 579
- Discord: Copiază ID
Autorul nu a mai dat nici un semn, subiect arhivat.
[ Postat de pe iPhone ]
[ Postat de pe iPhone ]

-
- Informaţie
-
Cine este conectat
Utilizatori ce ce navighează pe acest forum: sanducatalin1, Semrush [Bot] și 31 vizitatori


