# Path: pyweed/gui/TableWidget.py
# class CustomTableWidgetItemMixin(object):
#     def __init__(self, *args, **kwargs):
#         global _next_type
#         _next_type += 1
#         return super(CustomTableWidgetItemMixin, self).__init__(*args, **kwargs, type=_next_type)


from PyQt5 import QtCore, QtGui, QtWidgets
from pyweed.gui.TableWidget import CustomTableWidgetItemMixin
# -*- coding: utf-8 -*-
"""
Custom QTableWidgetItem that embeds an image

To be inserted into the QTableWidget with setItem().

http://stackoverflow.com/questions/14365875/qt-cannot-put-an-image-in-a-table

:copyright:
    Mazama Science, IRIS
:license:
    GNU Lesser General Public License, Version 3
    (http://www.gnu.org/copyleft/lesser.html)
"""




# Path: pyweed/gui/TableWidget.py
# class CustomTableWidgetItemMixin(object):
#     def __init__(self, *args, **kwargs):
#         global _next_type
#         _next_type += 1
#         return super(CustomTableWidgetItemMixin, self).__init__(*args, **kwargs, type=_next_type)


# Path: pyweed/gui/MyTableWidgetImageItem.py
from PyQt5 import QtCore, QtGui, QtWidgets
from pyweed.gui.TableWidget import CustomTableWidgetItemMixin

# -*- coding: utf-8 -*-
"""
Custom QTableWidgetItem that embeds an image

To be inserted into the QTableWidget with setItem().

http://stackoverflow.com/questions/14365875/qt-cannot-put-an-image-in-a-table

:copyright:
    Mazama Science, IRIS
:license:
    GNU Lesser General Public License, Version 3
    (http://www.gnu.org/copyleft/lesser.html)
"""




class MyTableWidgetImageItem(CustomTableWidgetItemMixin, QtWidgets.QTableWidgetItem):