Isaiah Odhner
0c52788843
Fix some type checker errors
2023-04-26 13:35:52 -04:00
Isaiah Odhner
3b08e045e7
Mount menus to the Screen instead of the App
...
All just to avoid one type checker error:
Type of "app" is partially unknown
Type of "app" is "App[Unknown]"PylancereportUnknownMemberType
But it's the last error in menus.py...
But I still have a bunch of this error in main.py, and I don't know
how to deal with it generally. It doesn't seem like a real problem,
but I don't want to add so many ignore comments...
2023-04-24 21:09:24 -04:00
Isaiah Odhner
c3d4e1c254
Remove unused import
2023-04-24 21:02:24 -04:00
Isaiah Odhner
1523e960bb
Fix a type checker error (setting parent_menu on Separator)
...
Not really a problem, but parent_menu isn't declared on Separator.
2023-04-24 20:51:35 -04:00
Isaiah Odhner
43b06f2b24
Don't hide help text when hovering menu bar buttons
2023-04-24 15:16:38 -04:00
Isaiah Odhner
9a45b3c839
Disable and hide hotkeys for top level menus since I can't detect Alt
2023-04-24 15:08:45 -04:00
Isaiah Odhner
3a0adb3c94
Fix deselection by clicking outside canvas
2023-04-24 12:54:06 -04:00
Isaiah Odhner
bcb26707ef
Merge Hovered and Closed events; clear text when mouse leaves menu item
2023-04-24 01:13:04 -04:00
Isaiah Odhner
2cdb728d64
Fix mouse wheel & show description when hovering over grayed menu items
2023-04-24 00:56:51 -04:00
Isaiah Odhner
c12036880e
Show menu item descriptions in the status bar
2023-04-24 00:43:50 -04:00
Isaiah Odhner
edc0048ecc
Half-implement menu item hotkeys
2023-04-23 01:43:54 -04:00
Isaiah Odhner
1a6bfb5b90
Lazily add a triangle to indicate the Zoom submenu
2023-04-23 01:03:52 -04:00
Isaiah Odhner
5d778c1879
Annotate **kwargs as Any
2023-04-22 21:44:05 -04:00
Isaiah Odhner
2c8d74808a
Add a whole bunch more type checking
2023-04-22 18:54:21 -04:00
Isaiah Odhner
2e839b2564
Clean up unused imports
2023-04-22 17:49:15 -04:00
Isaiah Odhner
00ab062d3e
Assert type so Pyright knows about .plain and .markup
2023-04-22 13:58:09 -04:00
Isaiah Odhner
f52201eebe
Fix presumed method for removing nodes
...
(This removal code never runs, currently.)
2023-04-22 02:42:19 -04:00
Isaiah Odhner
1b56d78f70
Start type checking code
2023-04-22 02:31:58 -04:00
Isaiah Odhner
4a9ef84d28
Rely on Python class names instead of CSS class names for menu CSS
2023-04-20 17:40:15 -04:00
Isaiah Odhner
18ef3898c6
Fix scroll wheel while hovering over a menu separator
2023-04-19 14:27:12 -04:00
Isaiah Odhner
0ee058216e
Position submenu
2023-04-19 00:09:40 -04:00
Isaiah Odhner
4cbafea3cb
Show accelerators/shortcuts in menus
2023-04-18 23:34:05 -04:00
Isaiah Odhner
365eb6e4c7
Dynamically position menus instead of guessing
...
I must've missed this property when looking through the properties in the debugger before.
2023-04-18 22:58:58 -04:00
Isaiah Odhner
b8c7e0eb72
Add all of the menu items from MS Paint
2023-04-18 18:56:29 -04:00
Isaiah Odhner
accc2fe85b
Fix AttributeError for "parent_menu.focus" for menu bar (top level menu)
2023-04-15 23:50:45 -04:00
Isaiah Odhner
02fcffbb00
Position menu popup below the respective menu button
2023-04-12 23:09:34 -04:00
Isaiah Odhner
2a89948717
Get menu popups floating
2023-04-12 22:42:48 -04:00
Isaiah Odhner
044b404a0e
Start making menus work
2023-04-12 22:07:38 -04:00
Isaiah Odhner
b779059208
Add non-functional menu bar
2023-04-12 20:54:21 -04:00