Skip to content

Examples

watakak edited this page May 31, 2024 · 8 revisions

Login page

import freshgui as window

window.settings(theme='default')

window.create(name='Iphone 15',
              size='393x750',
              resizable=True)

window.text(text='Login',
            position='top',
            font='SF Pro Text Bold',
            down=80,
            size=24,
            left=147)

window.text(text='. . . . . . . . . . . . . . . . . . . . OR . . . . . . . . . . . . . . . . . . . .',
            position='top',
            down=256,
            font='SF Pro Text')

window.imageButton(position='top',
                   down=12,
                   image='assets/logos/PST.jpg',
                   size=16)

window.button(text='Login with apple',
              font='SF Pro Text Regular',
              fontSize=19, position='top',
              down=126,
              cornerRadius=13,
              width=360,
              height=50,
              image='assets/logos/apple.png')

window.button(text='',
              font='SF Pro Text Regular',
              fontSize=19,
              position='top',
              down=184,
              left=122,
              cornerRadius=13,
              width=116,
              height=50,
              image='assets/logos/telegram.png', )

window.button(text=None,
              font='SF Pro Text Regular',
              fontSize=19,
              position='top',
              down=184,
              cornerRadius=13,
              width=116,
              height=50,
              image='assets/logos/google.png',
              imageSize=15)

window.button(text=None,
              font='SF Pro Text Regular',
              fontSize=19,
              position='top',
              down=184,
              right=122,
              cornerRadius=13,
              width=116,
              height=50,
              image='assets/logos/whatsapp.png')

window.button(text='Login via email',
              font='SF Pro Text Regular',
              fontSize=15,
              position='top',
              down=280,
              cornerRadius=13,
              width=360,
              height=50)

window.run()

OR

from freshgui import *
settings(theme='default')
create(name='Iphone 15',size='393x750',resizable=True)
text(text='Login',position='top',font='SF Pro Text Bold',down=80,size=24,left=147)
text(text='. . . . . . . . . . . . . . . . . . . . OR . . . . . . . . . . . . . . . . . . . .',position='top',down=256,font='SF Pro Text')
imageButton(position='top',down=12,image='assets/logos/PST.jpg',size=16)
button(text='Login with apple',font='SF Pro Text Regular',fontSize=19, position='top',down=126,cornerRadius=13,width=360,height=50,image='assets/logos/apple.png')
button(text='',font='SF Pro Text Regular',fontSize=19,position='top',down=184,left=122,cornerRadius=13,width=116,height=50,image='assets/logos/telegram.png', )
button(text=None,font='SF Pro Text Regular',fontSize=19,position='top',down=184,cornerRadius=13,width=116,height=50,image='assets/logos/google.png',imageSize=15)
button(text=None,font='SF Pro Text Regular',fontSize=19,position='top',down=184,right=122,cornerRadius=13,width=116,height=50,image='assets/logos/whatsapp.png')
button(text='Login via email',font='SF Pro Text Regular',fontSize=15,position='top',down=280,cornerRadius=13,width=360,height=50)
run()

image

Clone this wiki locally