12345678910111213141516171819202122232425262728293031323334353637383940 |
- import sys
- try:
- from PyQt5.QtGui import *
- from PyQt5.QtCore import *
- from PyQt5.QtWidgets import *
- except ImportError:
-
-
-
-
- if sys.version_info.major >= 3:
- import sip
- sip.setapi('QVariant', 2)
- from PyQt4.QtGui import *
- from PyQt4.QtCore import *
- class HashableQListWidgetItem(QListWidgetItem):
- def __init__(self, *args):
- super(HashableQListWidgetItem, self).__init__(*args)
- def __hash__(self):
- return hash(id(self))
|