Added toxygen/third_party/qweechat

This commit is contained in:
emdee 2022-11-20 18:44:17 +00:00
parent 424e15b31c
commit 0b1eaa1391
4 changed files with 33 additions and 8 deletions

View File

@ -55,12 +55,26 @@ is making a dependency. Just download it and copy the two directories
See ToDo.md to the current ToDo list.
If you install https://github.com/weechat/qweechat
you can have IRC and jabber in a window too. Start
[weechat](https://github.com/weechat/weechat) and
You can have a [weechat](https://github.com/weechat/qweechat)
console so that you can have IRC and jabber in a window as well as Tox.
There's a copy of qweechat in ```thirdparty/qweechat``` backported to
PyQt5 and integrated into toxygen. Follow the normal instructions for
adding a ```relay``` to [weechat](https://github.com/weechat/weechat)
```
/relay weechat 9000 password
/relay add ipv4.ssl.weechat 9001
/relay start ipv4.ssl.weechat
```
or
```
/relay add weechat 9000
/relay start weechat
```
and use the File/Connect menu item to connect to weechat. Weechat
has a Jabber plugin to enable XMPP:
```
/python load jabber.el
/help jabber
```
Work on this project is suspended until the
Work on Tox on this project is suspended until the
[MultiDevice](https://git.plastiras.org/emdee/tox_profile/wiki/MultiDevice-Announcements-POC) problem is solved. Fork me!

View File

@ -1,2 +1,6 @@
PyQt5
PyAudio
numpy
opencv-python
pydenticon
cv2

0
toxygen/third_party/__init__.py vendored Normal file
View File

View File

@ -700,10 +700,12 @@ class MainWindow(QtWidgets.QMainWindow):
def weechat_console(self):
try:
from qweechat.qweechat import MainWindow as MainWindow
# WeeChat backported from PySide6 to PyQt5
from third_party.qweechat import MainWindow as MainWindow
from third_party.qweechat import config
LOG.info("Adding WeechatConsole")
except Exception as e:
LOG.exception(f"ERROR WeechatConsole {e} {sys.path}")
LOG.exception(f"ERROR WeechatConsole {e}")
MainWindow = None
return
LOG.debug(f"calling {MainWindow}")
@ -752,6 +754,11 @@ class MainWindow(QtWidgets.QMainWindow):
self._we.setGeometry(geometry)
self._we.resize(font_width*80+20, font_width*40)
self._we.list_buffers.setSizePolicy(QtWidgets.QSizePolicy.Preferred,
QtWidgets.QSizePolicy.Preferred)
self._we.stacked_buffers.setSizePolicy(QtWidgets.QSizePolicy.Expanding,
QtWidgets.QSizePolicy.Expanding)
self._we.show()
# or self._we.eval_in_thread()
return