|
19 | 19 | from PyQt5.QtCore import pyqtProperty as Property |
20 | 20 | from PyQt5.QtCore import QT_VERSION_STR as __version__ |
21 | 21 |
|
22 | | - # For issue #153 and updated for issue #305 |
23 | | - from PyQt5.QtCore import QDate, QDateTime, QTime |
24 | | - QDate.toPython = lambda self, *args, **kwargs: self.toPyDate(*args, **kwargs) |
25 | | - QDateTime.toPython = lambda self, *args, **kwargs: self.toPyDateTime(*args, **kwargs) |
26 | | - QTime.toPython = lambda self, *args, **kwargs: self.toPyTime(*args, **kwargs) |
27 | | - |
28 | 22 | # Those are imported from `import *` |
29 | 23 | del pyqtSignal, pyqtBoundSignal, pyqtSlot, pyqtProperty, QT_VERSION_STR |
30 | 24 |
|
|
37 | 31 | from PyQt6.QtCore import pyqtProperty as Property |
38 | 32 | from PyQt6.QtCore import QT_VERSION_STR as __version__ |
39 | 33 |
|
40 | | - # For issue #153 and updated for issue #305 |
41 | | - from PyQt6.QtCore import QDate, QDateTime, QTime |
42 | | - QDate.toPython = lambda self, *args, **kwargs: self.toPyDate(*args, **kwargs) |
43 | | - QDateTime.toPython = lambda self, *args, **kwargs: self.toPyDateTime(*args, **kwargs) |
44 | | - QTime.toPython = lambda self, *args, **kwargs: self.toPyTime(*args, **kwargs) |
45 | | - |
46 | 34 | # For issue #311 |
47 | 35 | # Seems like there is an error with sip. Without first |
48 | 36 | # trying to import `PyQt6.QtGui.Qt`, some functions like |
|
0 commit comments