Skip to content

Commit

Permalink
Typing for Welcome demo
Browse files Browse the repository at this point in the history
  • Loading branch information
theCapypara committed Apr 22, 2024
1 parent fcc9d5b commit b337cd3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion python-aux/workbench-typestubs/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
include workbench/py.typed
recursive-include workbench *.pyi
recursive-include workbench *.pyi
4 changes: 2 additions & 2 deletions python-aux/workbench-typestubs/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[build-system]
requires = ["setuptools"] # REQUIRED if [build-system] table is used
build-backend = "setuptools.build_meta" # If not defined, then legacy behavior can happen.
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[project]
name = "workbench-typestubs"
Expand Down
4 changes: 3 additions & 1 deletion src/Welcome/main.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from typing import cast

import gi

gi.require_version("Gtk", "4.0")
Expand All @@ -19,7 +21,7 @@ def dialog_response(dialog, response):
dialog.close()


subtitle_box: Gtk.Box = workbench.builder.get_object("subtitle")
subtitle_box = cast(Gtk.Box, workbench.builder.get_object("subtitle"))

button = Gtk.Button(label="Press me", margin_top=6, css_classes=["suggested-action"])
button.connect("clicked", greet)
Expand Down

0 comments on commit b337cd3

Please sign in to comment.