This commit is contained in:
emdee 2024-02-08 20:37:58 +00:00
parent b54c0d1716
commit acb9e83c29
14 changed files with 25 additions and 19 deletions

1
.gitignore vendored
View File

@ -1,5 +1,4 @@
# Ignored files for Git # Ignored files for Git
*.junk
*.pyc *.pyc
*.pyo *.pyo

7
.rsync.sh Normal file
View 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 /$

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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):

View File

@ -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

View File

@ -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."""

View File

@ -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

View File

@ -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):

View File

@ -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
@ -90,7 +90,7 @@ class MainWindow(QtWidgets.QMainWindow):
self.list_buffers.setSizePolicy(QtWidgets.QSizePolicy.Preferred, self.list_buffers.setSizePolicy(QtWidgets.QSizePolicy.Preferred,
QtWidgets.QSizePolicy.Preferred) QtWidgets.QSizePolicy.Preferred)
self.stacked_buffers.setSizePolicy(QtWidgets.QSizePolicy.Expanding, self.stacked_buffers.setSizePolicy(QtWidgets.QSizePolicy.Expanding,
QtWidgets.QSizePolicy.Expanding) QtWidgets.QSizePolicy.Expanding)
# MainWindow # MainWindow
self.setCentralWidget(splitter) self.setCentralWidget(splitter)

View File

@ -1,2 +1,3 @@
PyQt5 # works with PyQt5 and maybe PySide as well
PyQt6

View File

@ -56,6 +56,6 @@ setup(
] ]
}, },
install_requires=[ install_requires=[
'PySide6', 'PyQt6',
], ],
) )