Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Explicit modality set when "New..." is selected#17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
bsimmons01 wants to merge1 commit intoPacktPublishing:master
base:master
Choose a base branch
Loading
frombsimmons01:patch-1

Conversation

bsimmons01
Copy link

The popup that happens for entering a category when "New..." is selected is currently NOT modal, despite line 14 stating "modal=True"

I tested it on Ubuntu, Windows 10 and macOS (Big Sur). All of them showed the category dialog and you could put it in the background and return to the main calendar window, which wouldn't be the correct behavior.

Adding this line before the show command:
self.setWindowModality(qtc.Qt.ApplicationModal)
Makes it so the Category dialog is modal.

Tested on Windows, Ubuntu, and macOS.

I'm just learning PyQt, so perhaps there's a better way, but this way does work.

tsvtt reacted with thumbs up emoji
The popup that happens for entering a category when "New..." is selected is currently NOT modal, despite line 14 stating "modal=True"I tested it on Ubuntu, Windows 10 and macOS (Big Sur).  All of them showed the category dialog and you could put in the background and return to the main calendar window, which wouldn't be the correct behavior.Adding this line before the show command:self.setWindowModality(qtc.Qt.ApplicationModal)Makes it so the Category dialog is modal.Tested on Windows, Ubuntu, and macOS.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@bsimmons01

[8]ページ先頭

©2009-2025 Movatter.jp