comparison cagou/plugins/plugin_wid_file_sharing.py @ 387:d61bbbac4160

cagou widget: don't add header_input systematically anymore: header input is often used in CagouWidget for e.g. filtering, but not always, and when it is not, it is weird and confusing to have a TextInput which doesn't do nothing. To avoid that, a new `use_header_input` bool attribute (set to False by default) has been added to CagouWidget.
author Goffi <goffi@goffi.org>
date Tue, 04 Feb 2020 20:47:17 +0100
parents a90f26e89a4a
children f7476818f9fb
comparison
equal deleted inserted replaced
386:415de998b91d 387:d61bbbac4160
154 mode = properties.OptionProperty(MODE_VIEW, options=[MODE_VIEW, MODE_LOCAL]) 154 mode = properties.OptionProperty(MODE_VIEW, options=[MODE_VIEW, MODE_LOCAL])
155 local_dir = properties.StringProperty(expanduser('~')) 155 local_dir = properties.StringProperty(expanduser('~'))
156 remote_dir = properties.StringProperty('') 156 remote_dir = properties.StringProperty('')
157 remote_entity = properties.StringProperty('') 157 remote_entity = properties.StringProperty('')
158 shared_paths = properties.ListProperty() 158 shared_paths = properties.ListProperty()
159 use_header_input = True
159 signals_registered = False 160 signals_registered = False
160 161
161 def __init__(self, host, target, profiles): 162 def __init__(self, host, target, profiles):
162 quick_widgets.QuickWidget.__init__(self, host, target, profiles) 163 quick_widgets.QuickWidget.__init__(self, host, target, profiles)
163 cagou_widget.CagouWidget.__init__(self) 164 cagou_widget.CagouWidget.__init__(self)