Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ENH] owselectrows: Change defaults for 'Purging' #2969

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 15 additions & 7 deletions Orange/widgets/data/owselectrows.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import sys
import enum
from collections import OrderedDict
from itertools import chain
Expand Down Expand Up @@ -89,8 +90,8 @@ class Outputs:
settingsHandler = SelectRowsContextHandler()
conditions = ContextSetting([])
update_on_change = Setting(True)
purge_attributes = Setting(True)
purge_classes = Setting(True)
purge_attributes = Setting(False, schema_only=True)
purge_classes = Setting(False, schema_only=True)
auto_commit = Setting(True)

Operators = {
Expand Down Expand Up @@ -698,13 +699,20 @@ def resizeEvent(self, QResizeEvent):
self.set_text()


def test():
def main(argv=None): # pragma: no cover
from AnyQt.QtWidgets import QApplication
app = QApplication([])
app = QApplication(argv or [])
argv = app.arguments()
if len(argv) > 1:
filename = argv[1]
else:
filename = "zoo"

w = OWSelectRows()
w.set_data(Table("zoo"))
w.set_data(Table(filename))
w.show()
app.exec_()

if __name__ == "__main__":
test()

if __name__ == "__main__": # pragma: no cover
sys.exit(main(sys.argv))