Skip to content

Commit 987a5d8

Browse files
authored
Merge pull request #2969 from ales-erjavec/fixes/select-rows-purge-defaults
[ENH] owselectrows: Change defaults for 'Purging'
2 parents 37c639a + 801c4df commit 987a5d8

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

Orange/widgets/data/owselectrows.py

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import sys
12
import enum
23
from collections import OrderedDict
34
from itertools import chain
@@ -89,8 +90,8 @@ class Outputs:
8990
settingsHandler = SelectRowsContextHandler()
9091
conditions = ContextSetting([])
9192
update_on_change = Setting(True)
92-
purge_attributes = Setting(True)
93-
purge_classes = Setting(True)
93+
purge_attributes = Setting(False, schema_only=True)
94+
purge_classes = Setting(False, schema_only=True)
9495
auto_commit = Setting(True)
9596

9697
Operators = {
@@ -698,13 +699,20 @@ def resizeEvent(self, QResizeEvent):
698699
self.set_text()
699700

700701

701-
def test():
702+
def main(argv=None): # pragma: no cover
702703
from AnyQt.QtWidgets import QApplication
703-
app = QApplication([])
704+
app = QApplication(argv or [])
705+
argv = app.arguments()
706+
if len(argv) > 1:
707+
filename = argv[1]
708+
else:
709+
filename = "zoo"
710+
704711
w = OWSelectRows()
705-
w.set_data(Table("zoo"))
712+
w.set_data(Table(filename))
706713
w.show()
707714
app.exec_()
708715

709-
if __name__ == "__main__":
710-
test()
716+
717+
if __name__ == "__main__": # pragma: no cover
718+
sys.exit(main(sys.argv))

0 commit comments

Comments
 (0)