This commit is contained in:
emdee 2023-12-10 18:20:04 +00:00
parent ba013b6a81
commit 48efb5a44e
3 changed files with 16 additions and 7 deletions

View File

@ -3,3 +3,12 @@
ROLE=logging ROLE=logging
/var/local/bin/pydev_pylint.bash -E -f text *py [a-nr-z]*/*py >.pylint.err /var/local/bin/pydev_pylint.bash -E -f text *py [a-nr-z]*/*py >.pylint.err
/var/local/bin/pydev_pylint.bash *py [a-nr-z]*/*py >.pylint.out /var/local/bin/pydev_pylint.bash *py [a-nr-z]*/*py >.pylint.out
sed -e "/Module 'os' has no/d" \
-e "/Undefined variable 'app'/d" \
-e '/tests\//d' \
-e "/Instance of 'Curl' has no /d" \
-e "/No name 'path' in module 'os' /d" \
-e "/ in module 'os'/d" \
-e "/.bak\//d" \
-i .pylint.err .pylint.out

View File

@ -134,7 +134,7 @@ class Contact(basecontact.BaseContact):
""" """
# and m.tox_message_id == tox_message_id, # and m.tox_message_id == tox_message_id,
messages = filter(lambda m: m.author is not None messages = filter(lambda m: m.author is not None
and m.author.type == MESSAGE_AUTHOR['NOT_SENT'] and m.author.type == MESSAGE_AUTHOR['NOT_SENT'],
self._corr) self._corr)
# was message = list(...)[0] # was message = list(...)[0]
return list(messages) return list(messages)

View File

@ -684,17 +684,17 @@ class MainWindow(QtWidgets.QMainWindow):
font_width = QFontMetrics(font).width('M') font_width = QFontMetrics(font).width('M')
self._pe.setFont(font) self._pe.setFont(font)
geometry = self._pe.geometry() geometry = self._pe.geometry()
geometry.setWidth(font_width*50+20) geometry.setWidth(int(font_width*50+20))
geometry.setHeight(font_width*24*13/8) geometry.setHeight(int(font_width*24*13/8))
self._pe.setGeometry(geometry) self._pe.setGeometry(geometry)
self._pe.resize(font_width*50+20, font_width*24*13/8) self._pe.resize(int(font_width*50+20), int(font_width*24*13/8))
self._pe.show() self._pe.show()
self._pe.eval_queued() self._pe.eval_queued()
# or self._pe.eval_in_thread() # or self._pe.eval_in_thread()
return return
except Exception as e: except Exception as e:
LOG.debug(e) LOG.warn(f"python_console EXCEPTION {e}")
def weechat_console(self): def weechat_console(self):
if self._we: if self._we:
@ -748,11 +748,11 @@ class MainWindow(QtWidgets.QMainWindow):
# LOG.debug(e) # LOG.debug(e)
font_width = size font_width = size
geometry = self._we.geometry() geometry = self._we.geometry()
geometry.setWidth(font_width*80+20) geometry.setWidth(int(font_width*80+20))
geometry.setHeight(int(font_width*(2+24)*11/8)) geometry.setHeight(int(font_width*(2+24)*11/8))
self._we.setGeometry(geometry) self._we.setGeometry(geometry)
#? QtCore.QSize() #? QtCore.QSize()
self._we.resize(font_width*80+20, int(font_width*(2+24)*11/8)) self._we.resize(int(font_width*80+20), int(font_width*(2+24)*11/8))
self._we.list_buffers.setSizePolicy(QtWidgets.QSizePolicy.Preferred, self._we.list_buffers.setSizePolicy(QtWidgets.QSizePolicy.Preferred,
QtWidgets.QSizePolicy.Preferred) QtWidgets.QSizePolicy.Preferred)