File tree Expand file tree Collapse file tree 1 file changed +15
-7
lines changed
Expand file tree Collapse file tree 1 file changed +15
-7
lines changed Original file line number Diff line number Diff line change 1+ import sys
12import enum
23from collections import OrderedDict
34from 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 ))
You can’t perform that action at this time.
0 commit comments