qtpy
This commit is contained in:
parent
b54c0d1716
commit
acb9e83c29
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,5 +1,4 @@
|
||||
# Ignored files for Git
|
||||
*.junk
|
||||
|
||||
*.pyc
|
||||
*.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
|
||||
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."""
|
||||
|
||||
from PyQt5 import QtCore, QtWidgets as QtGui
|
||||
from qtpy import QtCore, QtWidgets as QtGui
|
||||
|
||||
from qweechat.version import qweechat_version
|
||||
|
||||
|
@ -24,9 +24,8 @@
|
||||
|
||||
from pkg_resources import resource_filename
|
||||
|
||||
from PyQt5 import QtCore, QtGui, QtWidgets
|
||||
from PyQt5.QtCore import pyqtSignal
|
||||
Signal = pyqtSignal
|
||||
from qtpy import QtCore, QtGui, QtWidgets
|
||||
from qtpy.QtCore import pyqtSignal as Signal
|
||||
|
||||
from qweechat.chat import ChatTextEdit
|
||||
from qweechat.input import InputLineEdit
|
||||
|
@ -24,7 +24,7 @@
|
||||
|
||||
import datetime
|
||||
|
||||
from PyQt5 import QtCore, QtWidgets, QtGui
|
||||
from qtpy import QtCore, QtWidgets, QtGui
|
||||
|
||||
from qweechat import config
|
||||
from qweechat.weechat import color
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
"""Connection window."""
|
||||
|
||||
from PyQt5 import QtGui, QtWidgets
|
||||
from qtpy import QtGui, QtWidgets
|
||||
|
||||
|
||||
class ConnectionDialog(QtWidgets.QDialog):
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
"""Debug window."""
|
||||
|
||||
from PyQt5 import QtWidgets
|
||||
from qtpy import QtWidgets
|
||||
|
||||
from qweechat.chat import ChatTextEdit
|
||||
from qweechat.input import InputLineEdit
|
||||
|
@ -22,9 +22,8 @@
|
||||
|
||||
"""Input line for chat and debug window."""
|
||||
|
||||
from PyQt5 import QtCore, QtWidgets
|
||||
from PyQt5.QtCore import pyqtSignal
|
||||
Signal = pyqtSignal
|
||||
from qtpy import QtCore, QtWidgets
|
||||
from qtpy.QtCore import pyqtSignal as Signal
|
||||
|
||||
class InputLineEdit(QtWidgets.QLineEdit):
|
||||
"""Input line."""
|
||||
|
@ -26,9 +26,8 @@ import hashlib
|
||||
import secrets
|
||||
import struct
|
||||
|
||||
from PyQt5 import QtCore, QtNetwork
|
||||
from PyQt5.QtCore import pyqtSignal
|
||||
Signal = pyqtSignal
|
||||
from qtpy import QtCore, QtNetwork
|
||||
from qtoy.QtCore import pyqtSignal as Signal
|
||||
|
||||
from qweechat import config
|
||||
from qweechat.debug import DebugDialog
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
"""Preferences dialog box."""
|
||||
|
||||
from PyQt5 import QtCore, QtWidgets as QtGui
|
||||
from qtpy import QtCore, QtWidgets as QtGui
|
||||
|
||||
|
||||
class PreferencesDialog(QtGui.QDialog):
|
||||
|
@ -37,7 +37,7 @@ import sys
|
||||
import traceback
|
||||
from pkg_resources import resource_filename
|
||||
|
||||
from PyQt5 import QtCore, QtGui, QtWidgets
|
||||
from qtpy import QtCore, QtGui, QtWidgets
|
||||
|
||||
from qweechat import config
|
||||
from qweechat.about import AboutDialog
|
||||
@ -90,7 +90,7 @@ class MainWindow(QtWidgets.QMainWindow):
|
||||
self.list_buffers.setSizePolicy(QtWidgets.QSizePolicy.Preferred,
|
||||
QtWidgets.QSizePolicy.Preferred)
|
||||
self.stacked_buffers.setSizePolicy(QtWidgets.QSizePolicy.Expanding,
|
||||
QtWidgets.QSizePolicy.Expanding)
|
||||
QtWidgets.QSizePolicy.Expanding)
|
||||
# MainWindow
|
||||
self.setCentralWidget(splitter)
|
||||
|
||||
|
@ -1,2 +1,3 @@
|
||||
PyQt5
|
||||
# works with PyQt5 and maybe PySide as well
|
||||
PyQt6
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user