Selaa lähdekoodia

fix deprecated call warning for FutureCall (#294)

Anna Petrasova 5 vuotta sitten
vanhempi
commit
96a840683d
2 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 1 1
      gui/wxpython/gui_core/dialogs.py
  2. 1 1
      gui/wxpython/gui_core/forms.py

+ 1 - 1
gui/wxpython/gui_core/dialogs.py

@@ -1293,7 +1293,7 @@ class GroupDialog(wx.Dialog):
                 label = _("Changing of group <%s> failed.") % group
 
         self.infoLabel.SetLabel(label)
-        wx.FutureCall(4000, self.ClearNotification)
+        wx.CallLater(4000, self.ClearNotification)
 
     def GetSelectedGroup(self):
         """Return currently selected group (without mapset)"""

+ 1 - 1
gui/wxpython/gui_core/forms.py

@@ -793,7 +793,7 @@ class TaskFrame(wx.Frame):
                 self.closebox.IsChecked() and \
                 (event.returncode == 0):
             # was closed also when aborted but better is leave it open
-            wx.FutureCall(2000, self.Close)
+            wx.CallLater(2000, self.Close)
 
     def OnMapCreated(self, name, ltype):
         """Map created or changed