dialogs/__init__.py
author Andrey Skvortsov <andrej.skvortzov@gmail.com>
Thu, 28 Apr 2016 15:21:02 +0300
changeset 1508 4c645e6b8c98
parent 814 5743cbdff669
child 1571 486f94a8032c
permissions -rw-r--r--
fix error if non-latin character was entered in initial value in
data type element

Traceback (most recent call last):
File "/home/beremiz/editors/DataTypeEditor.py", line 575, in OnStructureElementsGridCellChange
value = self.StructureElementsTable.GetValue(row, col)
File "/home/beremiz/editors/DataTypeEditor.py", line 80, in GetValue
return str(value)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-2: ordinal not in range(128)
Traceback (most recent call last):
File "/home/beremiz/editors/DataTypeEditor.py", line 80, in GetValue
return str(value)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-2: ordinal not in range(128)
Traceback (most recent call last):
File "/home/beremiz/editors/DataTypeEditor.py", line 80, in GetValue
return str(value)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-2: ordinal not in range(128)
#!/usr/bin/env python
# -*- coding: utf-8 -*-

#This file is part of PLCOpenEditor, a library implementing an IEC 61131-3 editor
#based on the plcopen standard. 
#
#Copyright (C) 2007: Edouard TISSERANT and Laurent BESSARD
#
#See COPYING file for copyrights details.
#
#This library is free software; you can redistribute it and/or
#modify it under the terms of the GNU General Public
#License as published by the Free Software Foundation; either
#version 2.1 of the License, or (at your option) any later version.
#
#This library is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
#General Public License for more details.
#
#You should have received a copy of the GNU General Public
#License along with this library; if not, write to the Free Software
#Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

# Package initialization

from ConnectionDialog import ConnectionDialog
from ActionBlockDialog import ActionBlockDialog
from FBDBlockDialog import FBDBlockDialog
from FBDVariableDialog import FBDVariableDialog
from LDElementDialog import LDElementDialog
from LDPowerRailDialog import LDPowerRailDialog
from SFCStepDialog import SFCStepDialog
from SFCStepNameDialog import SFCStepNameDialog
from SFCTransitionDialog import SFCTransitionDialog
from SFCDivergenceDialog import SFCDivergenceDialog
from ForceVariableDialog import ForceVariableDialog
from ArrayTypeDialog import ArrayTypeDialog
from DurationEditorDialog import DurationEditorDialog
from SearchInProjectDialog import SearchInProjectDialog
from BrowseLocationsDialog import BrowseLocationsDialog
from ProjectDialog import ProjectDialog
from PouDialog import PouDialog
from PouTransitionDialog import PouTransitionDialog
from PouActionDialog import PouActionDialog
from FindInPouDialog import FindInPouDialog
from BrowseValuesLibraryDialog import BrowseValuesLibraryDialog
from DiscoveryDialog import DiscoveryDialog