Sep-25-2021, 01:55 PM
(This post was last modified: Sep-25-2021, 01:56 PM by catlessness.)
qwert
Thank you that worked:
Yeah I know i just skipped that part but thanks anyways
(Sep-23-2021, 06:31 PM)deanhystad Wrote: That kind of thing does not belong in the class (plus it is really annoying). If you want to scroll to the bottom whenever you append text, use an intermediary function that does the append and the scrolling.
You can do what you want (modify method behavior in existing class) in Python. It is called "monkey patching". Now that you know what it's called you can find lots of examples and tutorials.
Thank you that worked:
def AddnRefresh(self,content): self.append(content) self.verticalScrollBar().setValue(self.verticalScrollBar().maximum()) QTextBrowser.AddnRefresh=AddnRefresh
(Sep-23-2021, 07:03 PM)Axel_Erfurt Wrote: You can convert your ui file to a py file , then you can work without the ui file
Example:
pyuic5 mainwindow.ui -o mainwindow.py -x
Yeah I know i just skipped that part but thanks anyways