Changeset 849:7edb1f4cd12a for src/mlx
- Timestamp:
- 05/11/17 18:32:20 (8 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/pirep.py
r848 r849 722 722 self._okButton = self.add_button(xstr("button_save"), RESPONSETYPE_OK) 723 723 self._okButton.set_can_default(True) 724 self._modified = False 724 725 725 726 def setPIREP(self, pirep): … … 842 843 self._okButton.grab_default() 843 844 845 self._modified = False 844 846 self._updateButtons() 847 self._modified = True 845 848 846 849 def delayCodesChanged(self): … … 1232 1235 xstr("pirepView_bagWeight"), 1233 1236 100000, width = 6) 1237 self._flownBagWeight.connect("value-changed", self._updateButtons) 1234 1238 self._flownBagWeight.set_tooltip_text(xstr("payload_bag_tooltip")) 1235 1239 … … 1238 1242 xstr("pirepView_cargoWeight"), 1239 1243 100000, width = 6) 1244 self._flownCargoWeight.connect("value-changed", self._updateButtons) 1240 1245 self._flownCargoWeight.set_tooltip_text(xstr("payload_cargo_tooltip")) 1241 1246 … … 1244 1249 xstr("pirepView_mailWeight"), 1245 1250 100000, width = 6) 1251 self._flownMailWeight.connect("value-changed", self._updateButtons) 1246 1252 self._flownMailWeight.set_tooltip_text(xstr("payload_mail_tooltip")) 1247 1253 … … 1250 1256 xstr("pirepView_flightType"), 1251 1257 self._flightType) 1258 self._flightType.connect("changed", self._updateButtons) 1252 1259 self._flightType.set_tooltip_text(xstr("pirepEdit_flight_type_tooltip")) 1253 1260 1254 1261 self._online = gtk.CheckButton(xstr("pirepEdit_online")) 1255 1262 table.attach(self._online, 2, 3, 2, 3) 1263 self._online.connect("toggled", self._updateButtons) 1256 1264 self._online.set_tooltip_text(xstr("pirepEdit_online_tooltip")) 1257 1265 … … 1340 1348 buffer.get_end_iter(), True) 1341 1349 1342 self._okButton.set_sensitive( timesOK and1350 self._okButton.set_sensitive(self._modified and timesOK and 1343 1351 self._flightInfo.faultsFullyExplained and 1344 1352 self._flownNumPassengers.get_value_as_int()>0 and
Note:
See TracChangeset
for help on using the changeset viewer.