dialogs/ConnectionDialog.py
branchpython3
changeset 3750 f62625418bff
parent 3537 cb7db021280c
equal deleted inserted replaced
3749:fda6c1a37662 3750:f62625418bff
    22 # You should have received a copy of the GNU General Public License
    22 # You should have received a copy of the GNU General Public License
    23 # along with this program; if not, write to the Free Software
    23 # along with this program; if not, write to the Free Software
    24 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
    24 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
    25 
    25 
    26 
    26 
    27 from __future__ import absolute_import
    27 
    28 import wx
    28 import wx
    29 
    29 
    30 from graphics.GraphicCommons import CONNECTOR, CONTINUATION
    30 from graphics.GraphicCommons import CONNECTOR, CONTINUATION
    31 from graphics.FBD_Objects import FBD_Connector
    31 from graphics.FBD_Objects import FBD_Connector
    32 from dialogs.BlockPreviewDialog import BlockPreviewDialog
    32 from dialogs.BlockPreviewDialog import BlockPreviewDialog
   125         """
   125         """
   126         Set default connection parameters
   126         Set default connection parameters
   127         @param values: Connection parameters values
   127         @param values: Connection parameters values
   128         """
   128         """
   129         # For each parameters defined, set corresponding control value
   129         # For each parameters defined, set corresponding control value
   130         for name, value in values.items():
   130         for name, value in list(values.items()):
   131 
   131 
   132             # Parameter is connection type
   132             # Parameter is connection type
   133             if name == "type":
   133             if name == "type":
   134                 self.TypeRadioButtons[value].SetValue(True)
   134                 self.TypeRadioButtons[value].SetValue(True)
   135 
   135