wxPython/wxGlade-0.9.1/clipboard.py
def clipboard2widget(clipboard_data):
    """Convert widget data prepared in widget2clipboard() back to single values.

    Returns a list [option (proportions), flag, border and widget in XML representation]"""
    if isinstance(clipboard_data, memoryview) and sys.version_info[0]<3:
        clipboard_data = clipboard_data.tobytes()
    option, span, flag, border, xml_unicode = compat.pickle.loads(clipboard_data)

    # remove the dirt at the end of XML representation
    bound = xml_unicode.rfind('>') + 1
    xml_unicode = xml_unicode[:bound]

    # option, flag and border are integers.
    if option is not None: option = int(option)
    if border is not None: border = int(border)

    return option, span, flag, border, xml_unicode
Convert widget data prepared in widget2clipboard() back to single values.

    Returns a list [option (proportions), flag, border and widget in XML representation]
Convert widget data prepared in widget2clipboard() back to single values.
Returns a list [option (proportions), flag, border and widget in XML representation]
Convert widget data prepared in widget2clipboard () back to single values . Returns a list [ option ( proportions ) flag border and widget in XML representation ]
def clipboard2widget(clipboard_data):
    if isinstance(clipboard_data, memoryview) and sys.version_info[0]<3:
        clipboard_data = clipboard_data.tobytes()
    option, span, flag, border, xml_unicode = compat.pickle.loads(clipboard_data)
    bound = xml_unicode.rfind('>') + 1
    xml_unicode = xml_unicode[:bound]
    if option is not None: option = int(option)
    if border is not None: border = int(border)
    return option, span, flag, border, xml_unicode
def clipboard2widget ( clipboard_data ) : if isinstance ( clipboard_data , memoryview ) and sys . version_info [ 0 ] < 3 : clipboard_data = clipboard_data . tobytes ( ) option , span , flag , border , xml_unicode = compat . pickle . loads ( clipboard_data ) bound = xml_unicode . rfind ( '>' ) + 1 xml_unicode = xml_unicode [ : bound ] if option is not None : option = int ( option ) if border is not None : border = int ( border ) return option , span , flag , border , xml_unicode
Convert widget data prepared in widget2clipboard() back to single values.
Convert widget data prepared in widget2clipboard () back to single values .
"""Convert widget data prepared in widget2clipboard() back to single values.

    Returns a list [option (proportions), flag, border and widget in XML representation]""" # remove the dirt at the end of XML representation # option, flag and border are integers.
clipboard_data