Compare commits
14 commits
main
...
issue-2446
| Author | SHA1 | Date | |
|---|---|---|---|
| 7a46412623 | |||
|
|
b023120785 | ||
|
|
a457d89ca7 | ||
|
|
87ee7240a7 | ||
|
|
5555bc1c6e | ||
| d785e859a9 | |||
| 4b56dd8a01 | |||
| 1a7401c98b | |||
|
|
fe46897603 | ||
|
|
bf464c9a18 | ||
|
|
70b1e5a826 | ||
|
|
88ac730bba | ||
|
|
8317e09612 | ||
|
|
1a568bcc38 |
14 changed files with 26 additions and 5 deletions
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
|
|
@ -93,7 +93,7 @@ jobs:
|
|||
python-version: "3.13-dev"
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4.1.5
|
||||
uses: actions/checkout@v4.1.6
|
||||
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v5.1.0
|
||||
|
|
@ -134,7 +134,7 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4.1.5
|
||||
uses: actions/checkout@v4.1.6
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
|
|
@ -260,7 +260,7 @@ jobs:
|
|||
sudo udevadm trigger --name-match=kvm
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4.1.5
|
||||
uses: actions/checkout@v4.1.6
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
|
|
|
|||
|
|
@ -87,3 +87,6 @@ class WindowProbe(BaseProbe):
|
|||
|
||||
def press_toolbar_button(self, index):
|
||||
self.native.onOptionsItemSelected(self._toolbar_items()[index])
|
||||
|
||||
def is_modal_dialog(self, dialog):
|
||||
return True
|
||||
|
|
|
|||
1
changes/2446.bugfix.rst
Normal file
1
changes/2446.bugfix.rst
Normal file
|
|
@ -0,0 +1 @@
|
|||
Dialog windows are now properly modal when using the Gtk+ backend.
|
||||
1
changes/2577.misc.rst
Normal file
1
changes/2577.misc.rst
Normal file
|
|
@ -0,0 +1 @@
|
|||
Updated setuptools-scm from 8.0.4 to 8.1.0 in /core.
|
||||
1
changes/2579.misc.rst
Normal file
1
changes/2579.misc.rst
Normal file
|
|
@ -0,0 +1 @@
|
|||
Updated actions/checkout from 4.1.5 to 4.1.6.
|
||||
1
changes/2580.misc.rst
Normal file
1
changes/2580.misc.rst
Normal file
|
|
@ -0,0 +1 @@
|
|||
The pinned dependencies in pyproject.toml and tox.ini were updated to their latest versions.
|
||||
|
|
@ -261,3 +261,6 @@ class WindowProbe(BaseProbe):
|
|||
restype=None,
|
||||
argtypes=[objc_id],
|
||||
)
|
||||
|
||||
def is_modal_dialog(self, dialog):
|
||||
return True
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ dev = [
|
|||
"pytest == 8.2.0",
|
||||
"pytest-asyncio == 0.23.6",
|
||||
"pytest-freezer == 0.4.8",
|
||||
"setuptools-scm == 8.0.4",
|
||||
"setuptools-scm == 8.1.0",
|
||||
"tox == 4.15.0",
|
||||
# typing-extensions needed for TypeAlias added in Py 3.10
|
||||
"typing-extensions == 4.9.0 ; python_version < '3.10'",
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@ class MessageDialog(BaseDialog):
|
|||
buttons=buttons,
|
||||
text=title,
|
||||
)
|
||||
self.native.set_modal(True)
|
||||
self.build_dialog(**kwargs)
|
||||
|
||||
self.native.connect("response", self.gtk_response)
|
||||
|
|
|
|||
|
|
@ -251,3 +251,6 @@ class WindowProbe(BaseProbe):
|
|||
def press_toolbar_button(self, index):
|
||||
item = self.impl.native_toolbar.get_nth_item(index)
|
||||
item.emit("clicked")
|
||||
|
||||
def is_modal_dialog(self, dialog):
|
||||
return dialog.native.get_modal()
|
||||
|
|
|
|||
|
|
@ -77,3 +77,6 @@ class WindowProbe(BaseProbe):
|
|||
|
||||
def has_toolbar(self):
|
||||
pytest.skip("Toolbars not implemented on iOS")
|
||||
|
||||
def is_modal_dialog(self, dialog):
|
||||
return True
|
||||
|
|
|
|||
|
|
@ -560,6 +560,7 @@ async def test_info_dialog(main_window, main_window_probe):
|
|||
"Info", "Some info", on_result=on_result_handler
|
||||
)
|
||||
await main_window_probe.redraw("Info dialog displayed")
|
||||
assert main_window_probe.is_modal_dialog(dialog_result._impl)
|
||||
await main_window_probe.close_info_dialog(dialog_result._impl)
|
||||
await assert_dialog_result(main_window, dialog_result, on_result_handler, None)
|
||||
|
||||
|
|
|
|||
2
tox.ini
2
tox.ini
|
|
@ -112,7 +112,7 @@ skip_install = True
|
|||
passenv = FORCE_COLOR
|
||||
deps =
|
||||
build==1.2.1
|
||||
twine==5.0.0
|
||||
twine==5.1.0
|
||||
commands =
|
||||
python -m build {posargs}
|
||||
python -m twine check {posargs}{/}dist{/}*
|
||||
|
|
|
|||
|
|
@ -148,3 +148,6 @@ class WindowProbe(BaseProbe):
|
|||
|
||||
def press_toolbar_button(self, index):
|
||||
self._native_toolbar_item(index).OnClick(EventArgs.Empty)
|
||||
|
||||
def is_modal_dialog(self, dialog):
|
||||
return True
|
||||
|
|
|
|||
Loading…
Reference in a new issue