New Login Interface

  • Konuyu açan Konuyu açan enes turan
  • Açılış Tarihi Açılış Tarihi
  • Yanıt Yanıt 25
  • Gösterim Gösterim 3K
Kod:
Genişlet Daralt Kopyala
LoginWindow.__LoadScript.LoadObject - <type 'exceptions.RuntimeError'>:Failed to load image (filename: d:/ymir work/ui/login/login_screen_2.jpg)

Resim yolunu doğru atmamışsın. Burayı tamamla.
 
hocam paylaşımınız için teşekkür ederim. Aklıma takılan bir soru var. Hesap saklamayı başka nasıl yapabiliriz libte açıkta durması bir sıkıntı oluşturabilir.
 
Son düzenleme:
Hocam account kaydetme ve silme tuşları çalışmıyor.
0417 11:32:09692 :: Traceback (most recent call last):

0417 11:32:09692 :: File "introLogin.py", line 806, in OnKeyDown

0417 11:32:09692 :: File "introLogin.py", line 757, in OnClickRegisterButton

0417 11:32:09692 :: AttributeError
0417 11:32:09692 :: :
0417 11:32:09692 :: 'Button' object has no attribute 'GetText'
0417 11:32:09692 ::

0417 11:32:12675 :: Traceback (most recent call last):

0417 11:32:12675 :: File "ui.py", line 1011, in CallEvent

0417 11:32:12675 :: File "ui.py", line 82, in __call__

0417 11:32:12675 :: File "ui.py", line 73, in __call__

0417 11:32:12675 :: File "introLogin.py", line 782, in __OnClickdeleteButton

0417 11:32:12676 :: AttributeError
0417 11:32:12676 :: :
0417 11:32:12676 :: 'Button' object has no attribute 'GetText'
0417 11:32:12676 ::
 
Hocam account kaydetme ve silme tuşları çalışmıyor.
0417 11:32:09692 :: Traceback (most recent call last):

0417 11:32:09692 :: File "introLogin.py", line 806, in OnKeyDown

0417 11:32:09692 :: File "introLogin.py", line 757, in OnClickRegisterButton

0417 11:32:09692 :: AttributeError
0417 11:32:09692 :: :
0417 11:32:09692 :: 'Button' object has no attribute 'GetText'
0417 11:32:09692 ::

0417 11:32:12675 :: Traceback (most recent call last):

0417 11:32:12675 :: File "ui.py", line 1011, in CallEvent

0417 11:32:12675 :: File "ui.py", line 82, in __call__

0417 11:32:12675 :: File "ui.py", line 73, in __call__

0417 11:32:12675 :: File "introLogin.py", line 782, in __OnClickdeleteButton

0417 11:32:12676 :: AttributeError
0417 11:32:12676 :: :
0417 11:32:12676 :: 'Button' object has no attribute 'GetText'
0417 11:32:12676 ::
Button objesine .GetText() uygulanmış
Ama filesinin ui.Button sınıfında GetText() diye bir metod yok. Eklemeleri düzgün yaptın mı ?
 
Button objesine .GetText() uygulanmış
Ama filesinin ui.Button sınıfında GetText() diye bir metod yok. Eklemeleri düzgün yaptın mı ?

Evet düzgün yaptım. hatayı şöyle düzelttim.
Python:
Genişlet Daralt Kopyala
 ui.py:
Aratılır:
def SetText(self, text, height = 4):

        if not self.ButtonText:
            textLine = TextLine()
            textLine.SetParent(self)
            textLine.SetPosition(self.GetWidth()/2, self.GetHeight()/2)
            textLine.SetVerticalAlignCenter()
            textLine.SetHorizontalAlignCenter()
            textLine.Show()
            self.ButtonText = textLine

        self.ButtonText.SetText(text)

Altına Ekle:

    def GetText(self):
        if not self.ButtonText:
            return ""
        return self.ButtonText.GetText()
 
Son düzenleme:
Geri
Üst