kivy_deneme's People
Forkers
5l1v3r1kivy_deneme's Issues
Attributeerror:'NoneType' object has no attribute 'ids' #kivy # python
While the code works without any error in windows10, ubuntu also gives this error, why?
how do i fix it?
Attributeerror:'NoneType' object has no attribute 'ids'
py code:
# -*- coding: utf-8 -*-
from platform import machine, version, platform, uname, system, processor
from kivy.app import App
makineadi1=machine()
makine_versionu=version()
makine_platform=platform()
makine_adi=uname()
makine_system=system()
makine_islemci=processor()
class olayUyg(App):
def build(self):
self.root.ids.mesaj1.text='makine info: {} !'.format(makineadi1)
self.root.ids.mesaj2.text='makine versionu: {} !'.format(makine_versionu)
self.root.ids.mesaj3.text='makine platform: {} !'.format(makine_platform)
self.root.ids.mesaj4.text='makine adı: {} !'.format(makine_adi)
self.root.ids.mesaj5.text='makine system: {} !'.format(makine_system)
self.root.ids.mesaj6.text='makine işlemci: {} !'.format(makine_islemci)
def sifredogrula(self):
kulladi1 = self.root.ids.kulladi.text
kullsifre1=self.root.ids.kullsifre.text
if kulladi1=="DexmoD" and kullsifre1=="DexmoD":
self.root.ids.mesaj.text='Merhaba [color=#FF0000] %s [/color] !' % kulladi1
else:
self.root.ids.mesaj.text='Kullanıcı adı veya Kullanıcı Şifresi Hatalı'
olayUyg().run()
kv code:
BoxLayout:
orientation: 'vertical'
BoxLayout:
Label:
text:"Kullanıcı Adını Giriniz"
TextInput:
id: kulladi
BoxLayout:
Label:
text:"Kullanıcı Şifresi Giriniz"
TextInput:
id: kullsifre
BoxLayout:
Button:
text:"Giriş Yap"
on_press: app.sifredogrula()
BoxLayout:
#Widget:
Label:
id:mesaj
text:"bilgi"
BoxLayout:
Label:
id:mesaj1
BoxLayout:
Label:
id:mesaj2
BoxLayout:
Label:
id:mesaj3
BoxLayout:
Label:
id:mesaj4
BoxLayout:
Label:
id:mesaj5
BoxLayout:
Label:
id:mesaj6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.