Skip to content

remove QFileDialog PyQt4 compatibility code#2394

Merged
j9ac9k merged 1 commit intopyqtgraph:masterfrom
pijyoi:filedialog-remove-qt4compat
Aug 14, 2022
Merged

remove QFileDialog PyQt4 compatibility code#2394
j9ac9k merged 1 commit intopyqtgraph:masterfrom
pijyoi:filedialog-remove-qt4compat

Conversation

@pijyoi
Copy link
Copy Markdown
Contributor

@pijyoi pijyoi commented Aug 14, 2022

PyQt4 had two separate APIs:

  1. QFileDialog.getOpenFileName() -> filename
  2. QFileDialog.getOpenFileNameAndFilter() -> (filename, selectedfilter)

Other bindings (including PySide1) have this API:

  • QFileDialog.getOpenFileName() -> (filename, selectedfilter)

This PR simplifies the code by removing the support for PyQt4.

@j9ac9k
Copy link
Copy Markdown
Member

j9ac9k commented Aug 14, 2022

Love the diff @pijyoi thanks for the PR, LGTM, merging.

@j9ac9k j9ac9k merged commit f24335d into pyqtgraph:master Aug 14, 2022
@pijyoi pijyoi deleted the filedialog-remove-qt4compat branch August 14, 2022 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants