Fix the imports to support Python3 style absolute imports.

This commit is contained in:
Abhilash Raj 2021-05-31 21:16:22 -07:00
parent 1f27a20e9e
commit 0ee7d2e92f
No known key found for this signature in database
GPG Key ID: 9D9B2BA061D0A67C
6 changed files with 20 additions and 20 deletions

View File

@ -21,9 +21,9 @@
#
from pkg_resources import resource_filename
from chat import ChatTextEdit
from input import InputLineEdit
import weechat.color as color
from qweechat.chat import ChatTextEdit
from qweechat.input import InputLineEdit
import qweechat.weechat.color as color
from PySide6 import QtCore
from PySide6 import QtWidgets

View File

@ -21,8 +21,8 @@
#
import datetime
import config
import weechat.color as color
from qweechat import config
from qweechat.weechat import color
from PySide6 import QtCore
from PySide6 import QtWidgets, QtGui

View File

@ -20,8 +20,8 @@
# along with QWeeChat. If not, see <http://www.gnu.org/licenses/>.
#
from chat import ChatTextEdit
from input import InputLineEdit
from qweechat.chat import ChatTextEdit
from qweechat.input import InputLineEdit
from PySide6 import QtWidgets as QtGui

View File

@ -21,7 +21,7 @@
#
import struct
import config
from qweechat import config
from PySide6 import QtCore, QtNetwork
from PySide6.QtCore import QObject, Signal

View File

@ -37,14 +37,14 @@ import sys
import traceback
from pkg_resources import resource_filename
# import qt_compat
import config
import weechat.protocol as protocol
from network import Network
from connection import ConnectionDialog
from buffer import BufferListWidget, Buffer
from debug import DebugDialog
from about import AboutDialog
from version import qweechat_version
from qweechat import config
from qweechat.weechat import protocol
from qweechat.network import Network
from qweechat.connection import ConnectionDialog
from qweechat.buffer import BufferListWidget, Buffer
from qweechat.debug import DebugDialog
from qweechat.about import AboutDialog
from qweechat.version import qweechat_version
from PySide6.QtWidgets import (
QApplication, QLabel, QPushButton, QVBoxLayout, QWidget)
@ -345,7 +345,6 @@ class MainWindow(QtWidgets.QMainWindow):
for obj in message.objects:
if obj.objtype != 'hda' or obj.value['path'][-1] != 'buffer':
continue
print('listbuffers object', obj.objtype, obj.value['path'])
self.list_buffers.clear()
while self.stacked_buffers.count() > 0:
buf = self.stacked_buffers.widget(0)
@ -353,7 +352,6 @@ class MainWindow(QtWidgets.QMainWindow):
self.buffers = []
for item in obj.value['items']:
buf = self.create_buffer(item)
print(f'Creating buffer for {item}')
self.insert_buffer(len(self.buffers), buf)
self.list_buffers.setCurrentRow(0)
self.buffers[0].widget.input.setFocus()
@ -485,7 +483,6 @@ class MainWindow(QtWidgets.QMainWindow):
def parse_message(self, message):
"""Parse a WeeChat message."""
print(f'message.msgid = {message.msgid}')
if message.msgid.startswith('debug'):
self.debug_display(0, '', '(debug message, ignored)')
elif message.msgid == 'listbuffers':

View File

@ -54,5 +54,8 @@ setup(
'console_scripts': [
'qweechat-testproto = qweechat.weechat.testproto:main',
]
}
},
install_requires = [
'PySide6',
]
)