qtpy
This commit is contained in:
parent
b54c0d1716
commit
acb9e83c29
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,5 +1,4 @@
|
|||||||
# Ignored files for Git
|
# Ignored files for Git
|
||||||
*.junk
|
|
||||||
|
|
||||||
*.pyc
|
*.pyc
|
||||||
*.pyo
|
*.pyo
|
||||||
|
7
.rsync.sh
Normal file
7
.rsync.sh
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
find * -name \*.py | xargs grep -l '[ ]*$' | xargs sed -i -e 's/[ ]*$//'
|
||||||
|
rsync "$@" -vax --include \*.py --exclude \*.log --exclude \*.out \
|
||||||
|
--exclude \*.egg-info --exclude libs --exclude dist --exclude build \
|
||||||
|
--exclude \*.pyc --exclude .pyl\* --exclude \*~ --exclude \*.so \
|
||||||
|
./ ../qweechat.git/|grep -v /$
|
@ -67,3 +67,5 @@ GNU General Public License for more details.
|
|||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with QWeeChat. If not, see <https://www.gnu.org/licenses/>.
|
along with QWeeChat. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Up-to-date code is on https://git.plastiras.org/emdee/qweechat
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
"""About dialog box."""
|
"""About dialog box."""
|
||||||
|
|
||||||
from PyQt5 import QtCore, QtWidgets as QtGui
|
from qtpy import QtCore, QtWidgets as QtGui
|
||||||
|
|
||||||
from qweechat.version import qweechat_version
|
from qweechat.version import qweechat_version
|
||||||
|
|
||||||
|
@ -24,9 +24,8 @@
|
|||||||
|
|
||||||
from pkg_resources import resource_filename
|
from pkg_resources import resource_filename
|
||||||
|
|
||||||
from PyQt5 import QtCore, QtGui, QtWidgets
|
from qtpy import QtCore, QtGui, QtWidgets
|
||||||
from PyQt5.QtCore import pyqtSignal
|
from qtpy.QtCore import pyqtSignal as Signal
|
||||||
Signal = pyqtSignal
|
|
||||||
|
|
||||||
from qweechat.chat import ChatTextEdit
|
from qweechat.chat import ChatTextEdit
|
||||||
from qweechat.input import InputLineEdit
|
from qweechat.input import InputLineEdit
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
from PyQt5 import QtCore, QtWidgets, QtGui
|
from qtpy import QtCore, QtWidgets, QtGui
|
||||||
|
|
||||||
from qweechat import config
|
from qweechat import config
|
||||||
from qweechat.weechat import color
|
from qweechat.weechat import color
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
"""Connection window."""
|
"""Connection window."""
|
||||||
|
|
||||||
from PyQt5 import QtGui, QtWidgets
|
from qtpy import QtGui, QtWidgets
|
||||||
|
|
||||||
|
|
||||||
class ConnectionDialog(QtWidgets.QDialog):
|
class ConnectionDialog(QtWidgets.QDialog):
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
"""Debug window."""
|
"""Debug window."""
|
||||||
|
|
||||||
from PyQt5 import QtWidgets
|
from qtpy import QtWidgets
|
||||||
|
|
||||||
from qweechat.chat import ChatTextEdit
|
from qweechat.chat import ChatTextEdit
|
||||||
from qweechat.input import InputLineEdit
|
from qweechat.input import InputLineEdit
|
||||||
|
@ -22,9 +22,8 @@
|
|||||||
|
|
||||||
"""Input line for chat and debug window."""
|
"""Input line for chat and debug window."""
|
||||||
|
|
||||||
from PyQt5 import QtCore, QtWidgets
|
from qtpy import QtCore, QtWidgets
|
||||||
from PyQt5.QtCore import pyqtSignal
|
from qtpy.QtCore import pyqtSignal as Signal
|
||||||
Signal = pyqtSignal
|
|
||||||
|
|
||||||
class InputLineEdit(QtWidgets.QLineEdit):
|
class InputLineEdit(QtWidgets.QLineEdit):
|
||||||
"""Input line."""
|
"""Input line."""
|
||||||
|
@ -26,9 +26,8 @@ import hashlib
|
|||||||
import secrets
|
import secrets
|
||||||
import struct
|
import struct
|
||||||
|
|
||||||
from PyQt5 import QtCore, QtNetwork
|
from qtpy import QtCore, QtNetwork
|
||||||
from PyQt5.QtCore import pyqtSignal
|
from qtoy.QtCore import pyqtSignal as Signal
|
||||||
Signal = pyqtSignal
|
|
||||||
|
|
||||||
from qweechat import config
|
from qweechat import config
|
||||||
from qweechat.debug import DebugDialog
|
from qweechat.debug import DebugDialog
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
"""Preferences dialog box."""
|
"""Preferences dialog box."""
|
||||||
|
|
||||||
from PyQt5 import QtCore, QtWidgets as QtGui
|
from qtpy import QtCore, QtWidgets as QtGui
|
||||||
|
|
||||||
|
|
||||||
class PreferencesDialog(QtGui.QDialog):
|
class PreferencesDialog(QtGui.QDialog):
|
||||||
|
@ -37,7 +37,7 @@ import sys
|
|||||||
import traceback
|
import traceback
|
||||||
from pkg_resources import resource_filename
|
from pkg_resources import resource_filename
|
||||||
|
|
||||||
from PyQt5 import QtCore, QtGui, QtWidgets
|
from qtpy import QtCore, QtGui, QtWidgets
|
||||||
|
|
||||||
from qweechat import config
|
from qweechat import config
|
||||||
from qweechat.about import AboutDialog
|
from qweechat.about import AboutDialog
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
PyQt5
|
# works with PyQt5 and maybe PySide as well
|
||||||
|
PyQt6
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user