Skip to content

Commit c0077f0

Browse files
committed
Check appveyor.yml
1 parent d6a7a69 commit c0077f0

File tree

5 files changed

+66
-3
lines changed

5 files changed

+66
-3
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2022 Feodor Fitsner
3+
Copyright (c) 2022 Appveyor Systems Inc.
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
# python-ci-example
2-
A sample CI pipeline for Flet app in Python
1+
# A sample CI pipeline for Flet app in Python

appveyor.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
image:
2+
- visual studio 2019
3+
- ubuntu
4+
5+
skip_branch_with_pr: true
6+
7+
stack: python 3.10
8+
9+
test: off
10+
11+
for:
12+
-
13+
matrix:
14+
only:
15+
- image: visual studio 2019
16+
17+
install:
18+
- python --version
19+
20+
build_script:
21+
- echo Windows
22+
23+
-
24+
matrix:
25+
only:
26+
- image: ubuntu
27+
28+
install:
29+
- python --version
30+
31+
build_script:
32+
- echo Ubuntu

main.py

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import flet
2+
from flet import IconButton, Page, Row, TextField, icons
3+
4+
5+
def main(page: Page):
6+
page.title = "Flet counter example"
7+
page.vertical_alignment = "center"
8+
9+
txt_number = TextField(value="0", text_align="right", width=100)
10+
11+
def minus_click(e):
12+
txt_number.value = int(txt_number.value) - 1
13+
page.update()
14+
15+
def plus_click(e):
16+
txt_number.value = int(txt_number.value) + 1
17+
page.update()
18+
19+
page.add(
20+
Row(
21+
[
22+
IconButton(icons.REMOVE, on_click=minus_click),
23+
txt_number,
24+
IconButton(icons.ADD, on_click=plus_click),
25+
],
26+
alignment="center",
27+
)
28+
)
29+
30+
31+
flet.app(target=main)

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
flet>=0.1.34

0 commit comments

Comments
 (0)