~timovwb/pigeonplanner/devel

« back to all changes in this revision

Viewing changes to pigeonplanner/ui/widgets/bandentry.py

  • Committer: Timo Vanwynsberghe
  • Date: 2019-09-25 19:44:21 UTC
  • Revision ID: timovwb@gmail.com-20190925194421-qyvfltwb019fzhie
Band entry: don't set widgets under popover insensitive

Show diffs side-by-side

added added

removed removed

Lines of Context:
109
109
        self.pack_start(self._hbox_band, False, False, 0)
110
110
 
111
111
    def on_button_format_clicked(self, _widget):
112
 
        self.get_toplevel().get_child().set_sensitive(False)
 
112
        # TODO: setting sensitive(False) only works on Linux. In Windows and macOS this will also
 
113
        #       disable the popup itself instead of only the underlying widgets.
 
114
        # self.get_toplevel().get_child().set_sensitive(False)
113
115
        popover = BandEntryPopover(self)
114
116
        popover.set_relative_to(self._button_format)
115
 
        popover.connect("closed", lambda w: self.get_toplevel().get_child().set_sensitive(True))
 
117
        # popover.connect("closed", lambda w: self.get_toplevel().get_child().set_sensitive(True))
116
118
        popover.show_all()
117
119
        popover.popup()
118
120