Ikarus kullanmayanlar için pazar başlıklarının yenilenmiş halidirui.py içinde
Ekli dosyayı görüntüle 88315
Kullandığınız board classıyla değiştirmeniz yeterlidir.
xxthinboard(Window) classınızı
değiştirin
Python:class ThinBoard(Window): CORNER_WIDTH = 0 CORNER_HEIGHT = 0 BOARD_COLOR = grp.GenerateColor(0.0, 0.0, 0.0, 0.25) BOARD_BASE_COLOR = grp.GenerateColor(0.0, 0.0, 0.0, 0.50) def __init__(self): Window.__init__(self) Box = Box() Box.SetParent(self) Box.AddFlag("attach") Box.AddFlag("not_pick") Box.SetPosition(self.CORNER_WIDTH, self.CORNER_HEIGHT) Box.SetColor(self.BOARD_BASE_COLOR) Box.Show() self.Box = Box Base = Bar() Base.SetParent(self.Box) Base.AddFlag("attach") Base.AddFlag("not_pick") Base.SetPosition(self.CORNER_WIDTH, self.CORNER_HEIGHT) Base.SetColor(self.BOARD_COLOR) Base.Show() self.Base = Base def __del__(self): Window.__del__(self) def SetSize(self, width, height=33): width = max(self.CORNER_WIDTH*2, width-60) height = max(self.CORNER_HEIGHT*2, height) Window.SetSize(self, width, height) self.Base.SetSize(width - self.CORNER_WIDTH*2, height - self.CORNER_HEIGHT*2) self.Box.SetSize(width - self.CORNER_WIDTH*2, height - self.CORNER_HEIGHT*2) def ShowInternal(self): self.Base.Show() self.Box.Show() def HideInternal(self): self.Base.Hide() self.Box.Hide()
LoginWindow.__LoadScript.LoadObject - <type 'exceptions.UnboundLocalError'>:local variable 'Box' referenced before assignment
Böyle bir hata vermektedir...
Paylaşım için teşekkürler.
Paylaşım için teşekkürler
Paylaşım için teşekkürler.
Rica ederimPaylaşım için teşekkürler.![]()
ui.py dosyanızı iletir misinizLoginWindow.__LoadScript.LoadObject - <type 'exceptions.UnboundLocalError'>:local variable 'Box' referenced before assignment
Böyle bir hata vermektedir...
Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)
Benzer konular
- Cevaplar
- 42
- Görüntüleme
- 4K
- Cevaplar
- 0
- Görüntüleme
- 506
- Cevaplar
- 17
- Görüntüleme
- 2K
