dialogs/BrowseLocationsDialog.py
branchpython3
changeset 3750 f62625418bff
parent 3303 0ffb41625592
child 3789 8def429216ca
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 plcopen.structures import LOCATIONDATATYPES
    30 from plcopen.structures import LOCATIONDATATYPES
    31 from PLCControler import LOCATION_CONFNODE, LOCATION_MODULE, LOCATION_GROUP, LOCATION_VAR_INPUT, LOCATION_VAR_OUTPUT, LOCATION_VAR_MEMORY
    31 from PLCControler import LOCATION_CONFNODE, LOCATION_MODULE, LOCATION_GROUP, LOCATION_VAR_INPUT, LOCATION_VAR_OUTPUT, LOCATION_VAR_MEMORY
    32 from util.BitmapLibrary import GetBitmap
    32 from util.BitmapLibrary import GetBitmap
    52             _("Type strict")]
    52             _("Type strict")]
    53 
    53 
    54 
    54 
    55 # turn LOCATIONDATATYPES inside-out
    55 # turn LOCATIONDATATYPES inside-out
    56 LOCATION_SIZES = {}
    56 LOCATION_SIZES = {}
    57 for size, types in LOCATIONDATATYPES.iteritems():
    57 for size, types in LOCATIONDATATYPES.items():
    58     for type in types:
    58     for type in types:
    59         LOCATION_SIZES[type] = size
    59         LOCATION_SIZES[type] = size
    60 
    60 
    61 # -------------------------------------------------------------------------------
    61 # -------------------------------------------------------------------------------
    62 #                            Browse Locations Dialog
    62 #                            Browse Locations Dialog