bylge-logo

    Bylge

    Kivy Temel

    Picture of the Python

    Python

    December 02, 2023

    ilk kütüp hane from kivy.app import App from kivy.uix.gridlayout import GridLayout from kivy.uix.label import Label sonra sınıf class main(App) sonra build fon

    ilk kütüp hane

    from kivy.app import App

    from kivy.uix.gridlayout import GridLayout

    from kivy.uix.label import Label


    sonra sınıf

    class main(App)

    sonra build fonksiyonu


    def build(self)

    return content()


    ve en yukarda content kısmını tanımlıyalım


    class content(GridLayout):

    def __init__(self):

    super().__init__()

    self.widgets()


    ve widgetleri ekleyelim


    def widgets(self):

    self.cols=1

    label=Label(text="Kivy Adamdır")

    self.add_widget(label)


    sonra


    if __name__=="__main__":

    main=main()

    main.run()


    Çıktımız


    Kivy_Temel



    Share Your Expertise, Earn Rewards!

    Found this insightful? Imagine your knowledge generating income. Contribute your articles to bylge.com and connect with readers while unlocking your earning potential.