File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change 1
1
from copy import deepcopy
2
+ import webbrowser
2
3
3
4
import flet
4
5
from flet import (
14
15
Text ,
15
16
Card ,
16
17
Divider ,
18
+ PopupMenuButton ,
19
+ PopupMenuItem ,
17
20
)
18
21
from flet import colors , icons
19
22
@@ -128,8 +131,24 @@ def create_appbar(self) -> AppBar:
128
131
appbar .actions = [
129
132
Row (
130
133
[
131
- IconButton (
134
+ PopupMenuButton (
132
135
icon = icons .HELP ,
136
+ items = [
137
+ PopupMenuItem (
138
+ icon = icons .CONTACT_SUPPORT ,
139
+ text = "Ask a question" ,
140
+ on_click = lambda _ : webbrowser .open (
141
+ "https://github.com/tuttle-dev/tuttle/discussions"
142
+ ),
143
+ ),
144
+ PopupMenuItem (
145
+ icon = icons .BUG_REPORT ,
146
+ text = "Report a bug" ,
147
+ on_click = lambda _ : webbrowser .open (
148
+ "https://github.com/tuttle-dev/tuttle/issues"
149
+ ),
150
+ ),
151
+ ],
133
152
)
134
153
]
135
154
)
You can’t perform that action at this time.
0 commit comments