dialogs/ConnectionDialog.py
changeset 2587 c67488bd8134
parent 1878 fb73a6b6622d
child 2591 5f685bcd3ad6
--- a/dialogs/ConnectionDialog.py	Tue Apr 09 13:18:51 2019 +0200
+++ b/dialogs/ConnectionDialog.py	Tue Apr 09 14:08:44 2019 +0200
@@ -138,7 +138,7 @@
                 self.ConnectionName.SetValue(value)
 
         # Refresh preview panel
-        self.RefreshPreview()
+        self.DrawPreview()
 
     def GetValues(self):
         """
@@ -199,7 +199,7 @@
         Called when connection type changed
         @param event: wx.RadioButtonEvent
         """
-        self.RefreshPreview()
+        self.DrawPreview()
         event.Skip()
 
     def OnNameChanged(self, event):
@@ -207,10 +207,10 @@
         Called when connection name value changed
         @param event: wx.TextEvent
         """
-        self.RefreshPreview()
+        self.DrawPreview()
         event.Skip()
 
-    def RefreshPreview(self):
+    def DrawPreview(self):
         """
         Refresh preview panel of graphic element
         Override BlockPreviewDialog function
@@ -221,4 +221,4 @@
                                      self.ConnectionName.GetValue())
 
         # Call BlockPreviewDialog function
-        BlockPreviewDialog.RefreshPreview(self)
+        BlockPreviewDialog.DrawPreview(self)