Changeset 587:db659b771103
- Timestamp:
- 12/21/14 15:03:48 (10 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/flight.py
r586 r587 2108 2108 self._metar.set_width_chars(40) 2109 2109 self._metar.connect("changed", self._metarChanged) 2110 self._metar. connect_after("insert-text", self._metarInserted)2110 self._metar.get_buffer().connect_after("inserted-text", self._metarInserted) 2111 2111 table.attach(self._metar, 1, 24, row, row+1) 2112 2112 label.set_mnemonic_widget(self._metar) … … 2522 2522 self._wizard.metarChanged(entry.get_text(), self) 2523 2523 2524 def _metarInserted(self, entry, text, length, position):2524 def _metarInserted(self, buffer, position, text, length): 2525 2525 """Called when new characters are inserted into the METAR. 2526 2526 … … 2530 2530 self._updatingMETAR = True 2531 2531 2532 position = entry.get_position() 2533 entry.delete_text(position, position + length) 2534 entry.insert_text(text.upper(), position) 2532 buffer.delete_text(position, length) 2533 buffer.insert_text(position, text.upper(), length) 2535 2534 2536 2535 self._updatingMETAR = False
Note:
See TracChangeset
for help on using the changeset viewer.