Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python Docs Overview #85

Open
alex-Symbroson opened this issue Oct 16, 2023 · 0 comments
Open

Python Docs Overview #85

alex-Symbroson opened this issue Oct 16, 2023 · 0 comments

Comments

@alex-Symbroson
Copy link
Collaborator

d_a_v_e — 19/08/2023 18:42
Here is some demo pthon code that I have been using for testing -

print('hello')

from enjine import app, ui
 
app.ShowPopup( 'Hello Python!' ) 

main = ui.addLayout( "main", "Linear", "Center", 1, 1 )
main.setChildMargins( 0, 0, 0, 0.1 )

apb = ui.addAppBar( main, "My App", "", 1 )

def btn1_onTouch(ev) :
    ui.showPopup( "button pressed" )

btn1 = ui.addButton( main, "Primary", "Contained,Primary" )
btn1.setOnTouch( btn1_onTouch )

txt = ui.addText( main, "" )

import calendar
yy = 2017
mm = 11
txt.text = calendar.month(yy, mm)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant