Re: Widgets are not updated - is this a bug?
Christian ARNAUD <[email protected]> Fri, 26 Jun 2020 06:25:08 +0200
| Newsgroups | gmane.comp.python.pyqt-pykde |
|---|---|
| Message-ID | <4f479ef0-8bed-4f03-b71b-98a8364c110a@Spark> |
--5ef578b1_327b23c6_8b3
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Hi,
I understand the principle - thank you for sharing - I=E2=80=99m probably=
going to the same for push button setEnabled which has the same flaw.
Once again thank you for sharing that
Christian
Christian
Le 25 juin 2020 =C3=A0 18:04 +0200, Raymond Osborn <rayosborn=40mac.com>,=
a =C3=A9crit :
> It=E2=80=99s mainly the setText functions for QLabel and QLineEdit, e.g=
.,
>
> class NXLabel(QtWidgets.QLabel):
> =C2=A0 =C2=A0 =22=22=22A text label.
>
> =C2=A0 =C2=A0 This is being subclassed from the PyQt QLabel class becau=
se of a bug in
> =C2=A0 =C2=A0 recent versions of PyQt5 (>11) that requires the box to b=
e repainted
> =C2=A0 =C2=A0 after any programmatic changes.
> =C2=A0 =C2=A0 =22=22=22
>
> =C2=A0 =C2=A0 def setText(self, text):
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =22=22=22=46unction to set the text in the =
box.
>
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 Parameters
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 ----------
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 text : str
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Text to replace the text box =
contents.
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =22=22=22
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 super(NXLabel, self).setText(str(text))
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 self.repaint()
>
> I also added a repaint to the setValue function of QSpinBox and QDouble=
SpinBox. I presume they had also given problems, but it might have been a=
precaution.
>
> class NXSpinBox(QtWidgets.QSpinBox):
>
> =C2=A0 =C2=A0 def setValue(self, value):
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 super(NXSpinBox, self).setValue(value)
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 self.repaint()
>
> It doesn=E2=80=99t look as if it affected QTextEdit for some reason, bu=
t there may be others that I don=E2=80=99t use.
>
> Ray
>
> > On Jun 25, 2020, at 10:36 AM, Christian ARNAUD <carnaudfree=40gmail.c=
om> wrote:
> >
> > Hi Raymond,
> >
> > Thank you for your quick answers.
> > Would it be possible to share how do you subclass the concerned widge=
ts=3F Is there a specific method that should be overloaded to trigger the=
repaint event=3F
> >
> > Christian
> >
> >
> > De=C2=A0:=C2=A0Raymond Osborn <rayosborn=40mac.com>
> > Date=C2=A0:=C2=A0jeudi 25 juin 2020 =C3=A0 15:41
> > =C3=80=C2=A0:=C2=A0PyQt mailing list <pyqt=40riverbankcomputing.com>
> > Cc=C2=A0:=C2=A0Christian ARNAUD <carnaud=40free.fr>
> > Objet=C2=A0:=C2=A0Re: Widgets are not updated - is this a bug=3F
> >
> > This is a bug that has been an issue since around v5.10 but which onl=
y affects Macs as far as I know. In my own code, I have had to subclass v=
irtually every widget whose contents I change programmatically in order t=
o add a call to repaint each time. Since I need my code to be compatible =
with multiplePyQt versions, I will have to leave it in even if it is fixe=
d.
> >
> > Ray
> >
> >
> > > =46rom:=C2=A0Christian ARNAUD <carnaud=40free.fr>
> > > Subject:=C2=A0Widgets are not updated - is this a bug=3F
> > > Date:=C2=A0June 25, 2020 at 1:46:21 AM CDT
> > > To:=C2=A0<pyqt=40riverbankcomputing.com>
> > >
> > >
> > > Hi,
> > >
> > > I ran in a strange behavior where widgets in the view aren=E2=80=99=
t properly refreshed on change.
> > > Here is the code, developed to show the problem:
> > >
> > > import=C2=A0sys
> > >
> > > from=C2=A0PyQt5=C2=A0import=C2=A0QtWidgets
> > > from=C2=A0PyQt5.QtCore=C2=A0import=C2=A0Qt
> > >
> > >
> > > class=C2=A0MainWindow(QtWidgets.QMainWindow):
> > > =C2=A0=C2=A0=C2=A0=C2=A0def=C2=A0=5F=5Finit=5F=5F(self):
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 QtWidgets.QMainWindow.=5F=
=5Finit=5F=5F(self)
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0self.resize(250,=C2=
=A0100)
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0self.setWindowTitle=
(=22Demo=22)
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0self.centralWidget =
=3D QtWidgets.QWidget(self)
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0self.formlayout =3D=
QtWidgets.Q=46ormLayout(self.centralWidget)
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0self.label1 =3D QtW=
idgets.QLabel('Text 1',=C2=A0self.centralWidget)
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0self.ledit1 =3D QtW=
idgets.QLineEdit('initial value',=C2=A0self.centralWidget)
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0self.bproceed =3D Q=
tWidgets.QPushButton('Proceed',=C2=A0self.centralWidget)
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0self.bproceed.setDe=
fault(True)
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0self.bproceed.set=46=
ocusPolicy(Qt.Strong=46ocus)
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0self.formlayout.set=
Widget(1, QtWidgets.Q=46ormLayout.LabelRole,=C2=A0self.label1)
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0self.formlayout.set=
Widget(1, QtWidgets.Q=46ormLayout.=46ieldRole,=C2=A0self.ledit1)
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0self.formlayout.set=
Widget(2, QtWidgets.Q=46ormLayout.=46ieldRole,=C2=A0self.bproceed)
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0self.setCentralWidg=
et(self.centralWidget)
> > >
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0self.bproceed.click=
ed.connect(self.on=5Fclicked)
> > >
> > > =C2=A0=C2=A0=C2=A0=C2=A0def=C2=A0on=5Fclicked(self):
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0self.ledit1.setText=
('')
> > >
> > >
> > > if=C2=A0=5F=5Fname=5F=5F =3D=3D=C2=A0=22=5F=5Fmain=5F=5F=22:
> > > =C2=A0=C2=A0=C2=A0 app =3D QtWidgets.QApplication(sys.argv)
> > > =C2=A0=C2=A0=C2=A0 win =3D MainWindow()
> > > =C2=A0=C2=A0=C2=A0 win.show()
> > > =C2=A0=C2=A0=C2=A0 sys.exit(app.exec())
> > >
> > >
> > > If the pushbutton is clicked with the mouse or with the space key (=
after getting the focus with Tab), the text in the lineedit is not refres=
hed. If a repaint is forced, it is.
> > > If the pushbutton is clicked with the enter key (after getting the =
focus with Tab), the text in the lineedit is correctly refreshed.
> > >
> > > Any idea=3F
> > >
> > > My env:
> > > OSX Catalina 10.15.5
> > > Python 3.6
> > > PyQt: 15.0
> > >
> > > Thank you
> > >
> > >
> > > =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=
=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F
> > > PyQt mailing list
> > > PyQt=40riverbankcomputing.com
> > > https://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
--5ef578b1_327b23c6_8b3
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
<html xmlns=3D=22http://www.w3.org/1999/xhtml=22>
<head>
<title></title>
</head>
<body>
<div name=3D=22messageBodySection=22>
<div dir=3D=22auto=22>Hi,<br />
<br />
I understand the principle - thank you for sharing - I=E2=80=99m probably=
going to the same for push button setEnabled which has the same flaw.&=23=
160;<br />
<br />
Once again thank you for sharing that&=23160;<br />
<br />
Christian&=23160;</div>
</div>
<div name=3D=22messageSignatureSection=22><br />
Christian</div>
<div name=3D=22messageReplySection=22>Le 25 juin 2020 =C3=A0 18:04 +0200,=
Raymond Osborn <rayosborn=40mac.com>, a =C3=A9crit :<br />
<blockquote type=3D=22cite=22 style=3D=22border-left-color: grey; border-=
left-width: thin; border-left-style: solid; margin: 5px 5px;padding-left:=
10px;=22>It=E2=80=99s mainly the setText functions for QLabel and QLineE=
dit, e.g.,&=23160;
<div class=3D=22=22><br class=3D=22=22 /></div>
<div class=3D=22=22>class NXLabel(QtWidgets.QLabel):<br class=3D=22=22 />=
&=23160; &=23160; =22=22=22A text label.<br class=3D=22=22 />
&=23160; &=23160;&=23160;<br class=3D=22=22 />
&=23160; &=23160; This is being subclassed from the PyQt QLabel class bec=
ause of a bug in<br class=3D=22=22 />
&=23160; &=23160; recent versions of PyQt5 (>11) that requires the box=
to be repainted&=23160;<br class=3D=22=22 />
&=23160; &=23160; after any programmatic changes.<br class=3D=22=22 />
&=23160; &=23160; =22=22=22<br class=3D=22=22 />
<br class=3D=22=22 />
&=23160; &=23160; def setText(self, text):<br class=3D=22=22 />
&=23160; &=23160; &=23160; &=23160; =22=22=22=46unction to set the text i=
n the box.<br class=3D=22=22 />
<br class=3D=22=22 />
&=23160; &=23160; &=23160; &=23160; Parameters<br class=3D=22=22 />
&=23160; &=23160; &=23160; &=23160; ----------<br class=3D=22=22 />
&=23160; &=23160; &=23160; &=23160; text : str<br class=3D=22=22 />
&=23160; &=23160; &=23160; &=23160; &=23160; &=23160; Text to replace the=
text box contents.<br class=3D=22=22 />
&=23160; &=23160; &=23160; &=23160; =22=22=22<br class=3D=22=22 />
&=23160; &=23160; &=23160; &=23160; super(NXLabel, self).setText(str(text=
))<br class=3D=22=22 />
&=23160; &=23160; &=23160; &=23160; self.repaint()</div>
<div class=3D=22=22><br class=3D=22=22 /></div>
<div class=3D=22=22>I also added a repaint to the setValue function of QS=
pinBox and QDoubleSpinBox. I presume they had also given problems, but it=
might have been a precaution.&=23160;</div>
<div class=3D=22=22><br class=3D=22=22 /></div>
<div class=3D=22=22>
<div class=3D=22=22>class NXSpinBox(QtWidgets.QSpinBox):</div>
<div class=3D=22=22><br class=3D=22=22 /></div>
<div class=3D=22=22>&=23160; &=23160; def setValue(self, value):</div>
<div class=3D=22=22>&=23160; &=23160; &=23160; &=23160; super(NXSpinBox, =
self).setValue(value)</div>
<div class=3D=22=22>&=23160; &=23160; &=23160; &=23160; self.repaint()</d=
iv>
<div class=3D=22=22><br class=3D=22=22 /></div>
<div class=3D=22=22>It doesn=E2=80=99t look as if it affected QTextEdit f=
or some reason, but there may be others that I don=E2=80=99t use.&=23160;=
</div>
<div class=3D=22=22><br class=3D=22=22 /></div>
Ray<br class=3D=22=22 />
<div><br class=3D=22=22 />
<blockquote type=3D=22cite=22 class=3D=22=22>
<div class=3D=22=22>On Jun 25, 2020, at 10:36 AM, Christian ARNAUD <<a=
href=3D=22mailto:carnaudfree=40gmail.com=22 class=3D=22=22>carnaudfree=40=
gmail.com</a>> wrote:</div>
<br class=3D=22Apple-interchange-newline=22 />
<div class=3D=22=22>
<div class=3D=22WordSection1=22 style=3D=22page: WordSection1; caret-colo=
r: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: nor=
mal; font-variant-caps: normal; font-weight: normal; letter-spacing: norm=
al; text-align: start; text-indent: 0px; text-transform: none; white-spac=
e: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decora=
tion: none;=22>
<div style=3D=22margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: C=
alibri, sans-serif;=22 class=3D=22=22><span class=3D=22=22>Hi Raymond,</s=
pan></div>
<div style=3D=22margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: C=
alibri, sans-serif;=22 class=3D=22=22><span class=3D=22=22>&=23160;</span=
></div>
<div style=3D=22margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: C=
alibri, sans-serif;=22 class=3D=22=22><span lang=3D=22EN-US=22 class=3D=22=
=22 xml:lang=3D=22EN-US=22>Thank you for your quick answers.</span></div>=
<div style=3D=22margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: C=
alibri, sans-serif;=22 class=3D=22=22><span lang=3D=22EN-US=22 class=3D=22=
=22 xml:lang=3D=22EN-US=22>Would it be possible to share how do you subcl=
ass the concerned widgets=3F Is there a specific method that should be ov=
erloaded to trigger the repaint event=3F</span></div>
<div style=3D=22margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: C=
alibri, sans-serif;=22 class=3D=22=22><span lang=3D=22EN-US=22 class=3D=22=
=22 xml:lang=3D=22EN-US=22>&=23160;</span></div>
<div style=3D=22margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: C=
alibri, sans-serif;=22 class=3D=22=22><span lang=3D=22EN-US=22 class=3D=22=
=22 xml:lang=3D=22EN-US=22>Christian</span></div>
<div style=3D=22margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: C=
alibri, sans-serif;=22 class=3D=22=22><span lang=3D=22EN-US=22 class=3D=22=
=22 xml:lang=3D=22EN-US=22>&=23160;</span></div>
<div style=3D=22margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: C=
alibri, sans-serif;=22 class=3D=22=22><span lang=3D=22EN-US=22 class=3D=22=
=22 xml:lang=3D=22EN-US=22>&=23160;</span></div>
<div style=3D=22border-style: solid none none; border-top-width: 1pt; bor=
der-top-color: rgb(181, 196, 223); padding: 3pt 0cm 0cm;=22 class=3D=22=22=
>
<div style=3D=22margin: 0cm 0cm 0.0001pt 35.4pt; font-size: 11pt; font-fa=
mily: Calibri, sans-serif;=22 class=3D=22=22><b class=3D=22=22><span styl=
e=3D=22font-size: 12pt;=22 class=3D=22=22>De&=23160;:<span class=3D=22App=
le-converted-space=22>&=23160;</span></span></b><span style=3D=22font-siz=
e: 12pt;=22 class=3D=22=22>Raymond Osborn <<a href=3D=22mailto:rayosbo=
rn=40mac.com=22 class=3D=22=22>rayosborn=40mac.com</a>><br class=3D=22=
=22 />
<b class=3D=22=22>Date&=23160;:<span class=3D=22Apple-converted-space=22>=
&=23160;</span></b>jeudi 25 juin 2020 =C3=A0 15:41<br class=3D=22=22 />
<b class=3D=22=22>=C3=80&=23160;:<span class=3D=22Apple-converted-space=22=
>&=23160;</span></b>PyQt mailing list <<a href=3D=22mailto:pyqt=40rive=
rbankcomputing.com=22 class=3D=22=22>pyqt=40riverbankcomputing.com</a>>=
;<br class=3D=22=22 />
<b class=3D=22=22>Cc&=23160;:<span class=3D=22Apple-converted-space=22>&=23=
160;</span></b>Christian ARNAUD <<a href=3D=22mailto:carnaud=40free.fr=
=22 class=3D=22=22>carnaud=40free.fr</a>><br class=3D=22=22 />
<b class=3D=22=22>Objet&=23160;:<span class=3D=22Apple-converted-space=22=
>&=23160;</span></b>Re: Widgets are not updated - is this a bug=3F</span>=
</div>
</div>
<div class=3D=22=22>
<div style=3D=22margin: 0cm 0cm 0.0001pt 35.4pt; font-size: 11pt; font-fa=
mily: Calibri, sans-serif;=22 class=3D=22=22>&=23160;</div>
</div>
<div style=3D=22margin: 0cm 0cm 0.0001pt 35.4pt; font-size: 11pt; font-fa=
mily: Calibri, sans-serif;=22 class=3D=22=22>This is a bug that has been =
an issue since around v5.10 but which only affects Macs as far as I know.=
In my own code, I have had to subclass virtually every widget whose cont=
ents I change programmatically in order to add a call to repaint each tim=
e. Since I need my code to be compatible with multiplePyQt versions, I wi=
ll have to leave it in even if it is fixed.</div>
<div class=3D=22=22>
<div style=3D=22margin: 0cm 0cm 0.0001pt 35.4pt; font-size: 11pt; font-fa=
mily: Calibri, sans-serif;=22 class=3D=22=22>&=23160;</div>
</div>
<div class=3D=22=22>
<div style=3D=22margin: 0cm 0cm 0.0001pt 35.4pt; font-size: 11pt; font-fa=
mily: Calibri, sans-serif;=22 class=3D=22=22>Ray</div>
<div class=3D=22=22>
<div style=3D=22margin: 0cm 0cm 0.0001pt 35.4pt; font-size: 11pt; font-fa=
mily: Calibri, sans-serif;=22 class=3D=22=22><br class=3D=22=22 />
<br class=3D=22=22 /></div>
<blockquote style=3D=22margin-top: 5pt; margin-bottom: 5pt;=22 class=3D=22=
=22 type=3D=22cite=22>
<div class=3D=22=22>
<div style=3D=22margin: 0cm 0cm 0.0001pt 35.4pt; font-size: 11pt; font-fa=
mily: Calibri, sans-serif;=22 class=3D=22=22><b class=3D=22=22><span styl=
e=3D=22font-family: "Helvetica Neue"; color: rgb(127, 127, 127)=
;=22 class=3D=22=22>=46rom:&=23160;</span></b><span style=3D=22font-famil=
y: "Helvetica Neue";=22 class=3D=22=22>Christian ARNAUD <<a =
href=3D=22mailto:carnaud=40free.fr=22 style=3D=22color: blue; text-decora=
tion: underline;=22 class=3D=22=22>carnaud=40free.fr</a>></span></div>=
</div>
<div class=3D=22=22>
<div class=3D=22=22>
<div style=3D=22margin: 0cm 0cm 0.0001pt 35.4pt; font-size: 11pt; font-fa=
mily: Calibri, sans-serif;=22 class=3D=22=22><b class=3D=22=22><span styl=
e=3D=22font-size: 9pt; font-family: "Helvetica Neue"; color: rg=
b(127, 127, 127);=22 class=3D=22=22>Subject:<span class=3D=22apple-conver=
ted-space=22>&=23160;</span></span></b><b class=3D=22=22><span style=3D=22=
font-size: 9pt; font-family: "Helvetica Neue";=22 class=3D=22=22=
>Widgets are not updated - is this a bug=3F</span></b><span style=3D=22fo=
nt-size: 9pt; font-family: Helvetica;=22 class=3D=22=22></span></div>
</div>
<div class=3D=22=22>
<div style=3D=22margin: 0cm 0cm 0.0001pt 35.4pt; font-size: 11pt; font-fa=
mily: Calibri, sans-serif;=22 class=3D=22=22><b class=3D=22=22><span styl=
e=3D=22font-size: 9pt; font-family: "Helvetica Neue"; color: rg=
b(127, 127, 127);=22 class=3D=22=22>Date:<span class=3D=22apple-converted=
-space=22>&=23160;</span></span></b><span style=3D=22font-size: 9pt; font=
-family: "Helvetica Neue";=22 class=3D=22=22>June 25, 2020 at 1=
:46:21 AM CDT</span><span style=3D=22font-size: 9pt; font-family: Helveti=
ca;=22 class=3D=22=22></span></div>
</div>
<div class=3D=22=22>
<div style=3D=22margin: 0cm 0cm 0.0001pt 35.4pt; font-size: 11pt; font-fa=
mily: Calibri, sans-serif;=22 class=3D=22=22><b class=3D=22=22><span styl=
e=3D=22font-size: 9pt; font-family: "Helvetica Neue"; color: rg=
b(127, 127, 127);=22 class=3D=22=22>To:<span class=3D=22apple-converted-s=
pace=22>&=23160;</span></span></b><span style=3D=22font-size: 9pt; font-f=
amily: "Helvetica Neue";=22 class=3D=22=22><<a href=3D=22mai=
lto:pyqt=40riverbankcomputing.com=22 style=3D=22color: blue; text-decorat=
ion: underline;=22 class=3D=22=22>pyqt=40riverbankcomputing.com</a>></=
span><span style=3D=22font-size: 9pt; font-family: Helvetica;=22 class=3D=
=22=22></span></div>
</div>
<div style=3D=22margin: 0cm 0cm 0.0001pt 35.4pt; font-size: 11pt; font-fa=
mily: Calibri, sans-serif;=22 class=3D=22=22><span style=3D=22font-size: =
9pt; font-family: Helvetica;=22 class=3D=22=22><br style=3D=22caret-color=
: rgb(0, 0, 0); font-variant-caps: normal; text-align: start; -webkit-tex=
t-stroke-width: 0px; word-spacing: 0px;=22 class=3D=22=22 />
<br class=3D=22=22 /></span></div>
<div class=3D=22=22>
<div style=3D=22margin: 0cm 0cm 0.0001pt 35.4pt; font-size: 11pt; font-fa=
mily: Calibri, sans-serif;=22 class=3D=22=22>Hi,<span style=3D=22font-siz=
e: 12pt;=22 class=3D=22=22></span></div>
</div>
<div class=3D=22=22>
<div style=3D=22margin: 0cm 0cm 0.0001pt 35.4pt; font-size: 11pt; font-fa=
mily: Calibri, sans-serif;=22 class=3D=22=22>&=23160;<span style=3D=22fon=
t-size: 12pt;=22 class=3D=22=22></span></div>
</div>
<div class=3D=22=22>
<div style=3D=22margin: 0cm 0cm 0.0001pt 35.4pt; font-size: 11pt; font-fa=
mily: Calibri, sans-serif;=22 class=3D=22=22><span lang=3D=22EN-US=22 cla=
ss=3D=22=22 xml:lang=3D=22EN-US=22>I ran in a strange behavior where widg=
ets in the view aren=E2=80=99t properly refreshed on change.</span><span =
style=3D=22font-size: 12pt;=22 class=3D=22=22></span></div>
</div>
<div class=3D=22=22>
<div style=3D=22margin: 0cm 0cm 0.0001pt 35.4pt; font-size: 11pt; font-fa=
mily: Calibri, sans-serif;=22 class=3D=22=22><span lang=3D=22EN-US=22 cla=
ss=3D=22=22 xml:lang=3D=22EN-US=22>Here is the code, developed to show th=
e problem:</span><span style=3D=22font-size: 12pt;=22 class=3D=22=22></sp=
an></div>
</div>
<div class=3D=22=22>
<div style=3D=22margin: 0cm 0cm 0.0001pt 35.4pt; font-size: 11pt; font-fa=
mily: Calibri, sans-serif;=22 class=3D=22=22><span lang=3D=22EN-US=22 cla=
ss=3D=22=22 xml:lang=3D=22EN-US=22>&=23160;</span><span style=3D=22font-s=
ize: 12pt;=22 class=3D=22=22></span></div>
</div>
<div class=3D=22=22>
<div style=3D=22margin: 0cm 0cm 0.0001pt 35.4pt; font-size: 11pt; font-fa=
mily: Calibri, sans-serif; background-color: white;=22 class=3D=22=22><sp=
an lang=3D=22EN-US=22 style=3D=22font-size: 10pt; font-family: "Cour=
ier New"; color: rgb(0, 51, 179);=22 class=3D=22=22 xml:lang=3D=22EN=
-US=22>import<span class=3D=22apple-converted-space=22>&=23160;</span></s=
pan><span lang=3D=22EN-US=22 style=3D=22font-size: 10pt; font-family: &qu=
ot;Courier New"; color: rgb(8, 8, 8);=22 class=3D=22=22 xml:lang=3D=22=
EN-US=22>sys<br class=3D=22=22 />
<br class=3D=22=22 /></span> <span lang=3D=22EN-US=22 style=3D=22font-siz=
e: 10pt; font-family: "Courier New"; color: rgb(0, 51, 179);=22=
class=3D=22=22 xml:lang=3D=22EN-US=22>from<span class=3D=22apple-convert=
ed-space=22>&=23160;</span></span><span lang=3D=22EN-US=22 style=3D=22fon=
t-size: 10pt; font-family: "Courier New"; color: rgb(8, 8, 8);=22=
class=3D=22=22 xml:lang=3D=22EN-US=22>PyQt5<span class=3D=22apple-conver=
ted-space=22>&=23160;</span></span><span lang=3D=22EN-US=22 style=3D=22fo=
nt-size: 10pt; font-family: "Courier New"; color: rgb(0, 51, 17=
9);=22 class=3D=22=22 xml:lang=3D=22EN-US=22>import<span class=3D=22apple=
-converted-space=22>&=23160;</span></span><span lang=3D=22EN-US=22 style=3D=
=22font-size: 10pt; font-family: "Courier New"; color: rgb(8, 8=
, 8);=22 class=3D=22=22 xml:lang=3D=22EN-US=22>QtWidgets<br class=3D=22=22=
/></span><span lang=3D=22EN-US=22 style=3D=22font-size: 10pt; font-famil=
y: "Courier New"; color: rgb(0, 51, 179);=22 class=3D=22=22 xml=
:lang=3D=22EN-US=22>from<span class=3D=22apple-converted-space=22>&=23160=
;</span></span><span lang=3D=22EN-US=22 style=3D=22font-size: 10pt; font-=
family: "Courier New"; color: rgb(8, 8, 8);=22 class=3D=22=22 x=
ml:lang=3D=22EN-US=22>PyQt5.QtCore<span class=3D=22apple-converted-space=22=
>&=23160;</span></span><span lang=3D=22EN-US=22 style=3D=22font-size: 10p=
t; font-family: "Courier New"; color: rgb(0, 51, 179);=22 class=
=3D=22=22 xml:lang=3D=22EN-US=22>import<span class=3D=22apple-converted-s=
pace=22>&=23160;</span></span><span lang=3D=22EN-US=22 style=3D=22font-si=
ze: 10pt; font-family: "Courier New"; color: rgb(8, 8, 8);=22 c=
lass=3D=22=22 xml:lang=3D=22EN-US=22>Qt<br class=3D=22=22 />
<br class=3D=22=22 />
<br class=3D=22=22 /></span> <span lang=3D=22EN-US=22 style=3D=22font-siz=
e: 10pt; font-family: "Courier New"; color: rgb(0, 51, 179);=22=
class=3D=22=22 xml:lang=3D=22EN-US=22>class<span class=3D=22apple-conver=
ted-space=22>&=23160;</span></span><span lang=3D=22EN-US=22 style=3D=22fo=
nt-size: 10pt; font-family: "Courier New";=22 class=3D=22=22 xm=
l:lang=3D=22EN-US=22>MainWindow</span><span lang=3D=22EN-US=22 style=3D=22=
font-size: 10pt; font-family: "Courier New"; color: rgb(8, 8, 8=
);=22 class=3D=22=22 xml:lang=3D=22EN-US=22>(QtWidgets.QMainWindow):<br c=
lass=3D=22=22 />
&=23160;&=23160;&=23160;<span class=3D=22apple-converted-space=22>&=23160=
;</span></span><span lang=3D=22EN-US=22 style=3D=22font-size: 10pt; font-=
family: "Courier New"; color: rgb(0, 51, 179);=22 class=3D=22=22=
xml:lang=3D=22EN-US=22>def<span class=3D=22apple-converted-space=22>&=23=
160;</span></span><span lang=3D=22EN-US=22 style=3D=22font-size: 10pt; fo=
nt-family: "Courier New"; color: rgb(178, 0, 178);=22 class=3D=22=
=22 xml:lang=3D=22EN-US=22>=5F=5Finit=5F=5F</span><span lang=3D=22EN-US=22=
style=3D=22font-size: 10pt; font-family: "Courier New"; color:=
rgb(8, 8, 8);=22 class=3D=22=22 xml:lang=3D=22EN-US=22>(</span><span lan=
g=3D=22EN-US=22 style=3D=22font-size: 10pt; font-family: "Courier Ne=
w"; color: rgb(148, 85, 141);=22 class=3D=22=22 xml:lang=3D=22EN-US=22=
>self</span><span lang=3D=22EN-US=22 style=3D=22font-size: 10pt; font-fam=
ily: "Courier New"; color: rgb(8, 8, 8);=22 class=3D=22=22 xml:=
lang=3D=22EN-US=22>):<br class=3D=22=22 />
&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160; QtWidgets.QMainW=
indow.</span><span lang=3D=22EN-US=22 style=3D=22font-size: 10pt; font-fa=
mily: "Courier New"; color: rgb(178, 0, 178);=22 class=3D=22=22=
xml:lang=3D=22EN-US=22>=5F=5Finit=5F=5F</span><span lang=3D=22EN-US=22 s=
tyle=3D=22font-size: 10pt; font-family: "Courier New"; color: r=
gb(8, 8, 8);=22 class=3D=22=22 xml:lang=3D=22EN-US=22>(</span><span lang=3D=
=22EN-US=22 style=3D=22font-size: 10pt; font-family: "Courier New&qu=
ot;; color: rgb(148, 85, 141);=22 class=3D=22=22 xml:lang=3D=22EN-US=22>s=
elf</span><span lang=3D=22EN-US=22 style=3D=22font-size: 10pt; font-famil=
y: "Courier New"; color: rgb(8, 8, 8);=22 class=3D=22=22 xml:la=
ng=3D=22EN-US=22>)<br class=3D=22=22 />
&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;<span class=3D=22=
apple-converted-space=22>&=23160;</span></span><span lang=3D=22EN-US=22 s=
tyle=3D=22font-size: 10pt; font-family: "Courier New"; color: r=
gb(148, 85, 141);=22 class=3D=22=22 xml:lang=3D=22EN-US=22>self</span><sp=
an lang=3D=22EN-US=22 style=3D=22font-size: 10pt; font-family: "Cour=
ier New"; color: rgb(8, 8, 8);=22 class=3D=22=22 xml:lang=3D=22EN-US=
=22>.resize(</span><span lang=3D=22EN-US=22 style=3D=22font-size: 10pt; f=
ont-family: "Courier New"; color: rgb(23, 80, 235);=22 class=3D=
=22=22 xml:lang=3D=22EN-US=22>250</span><span lang=3D=22EN-US=22 style=3D=
=22font-size: 10pt; font-family: "Courier New"; color: rgb(8, 8=
, 8);=22 class=3D=22=22 xml:lang=3D=22EN-US=22>,<span class=3D=22apple-co=
nverted-space=22>&=23160;</span></span><span lang=3D=22EN-US=22 style=3D=22=
font-size: 10pt; font-family: "Courier New"; color: rgb(23, 80,=
235);=22 class=3D=22=22 xml:lang=3D=22EN-US=22>100</span><span lang=3D=22=
EN-US=22 style=3D=22font-size: 10pt; font-family: "Courier New"=
; color: rgb(8, 8, 8);=22 class=3D=22=22 xml:lang=3D=22EN-US=22>)<br clas=
s=3D=22=22 />
&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;<span class=3D=22=
apple-converted-space=22>&=23160;</span></span><span lang=3D=22EN-US=22 s=
tyle=3D=22font-size: 10pt; font-family: "Courier New"; color: r=
gb(148, 85, 141);=22 class=3D=22=22 xml:lang=3D=22EN-US=22>self</span><sp=
an lang=3D=22EN-US=22 style=3D=22font-size: 10pt; font-family: "Cour=
ier New"; color: rgb(8, 8, 8);=22 class=3D=22=22 xml:lang=3D=22EN-US=
=22>.setWindowTitle(</span><b class=3D=22=22><span lang=3D=22EN-US=22 sty=
le=3D=22font-size: 10pt; font-family: "Courier New"; color: tea=
l;=22 class=3D=22=22 xml:lang=3D=22EN-US=22>=22Demo=22</span></b><span la=
ng=3D=22EN-US=22 style=3D=22font-size: 10pt; font-family: "Courier N=
ew"; color: rgb(8, 8, 8);=22 class=3D=22=22 xml:lang=3D=22EN-US=22>)=
<br class=3D=22=22 />
&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;<span class=3D=22=
apple-converted-space=22>&=23160;</span></span><span lang=3D=22EN-US=22 s=
tyle=3D=22font-size: 10pt; font-family: "Courier New"; color: r=
gb(148, 85, 141);=22 class=3D=22=22 xml:lang=3D=22EN-US=22>self</span><sp=
an lang=3D=22EN-US=22 style=3D=22font-size: 10pt; font-family: "Cour=
ier New"; color: rgb(8, 8, 8);=22 class=3D=22=22 xml:lang=3D=22EN-US=
=22>.centralWidget =3D QtWidgets.QWidget(</span><span lang=3D=22EN-US=22 =
style=3D=22font-size: 10pt; font-family: "Courier New"; color: =
rgb(148, 85, 141);=22 class=3D=22=22 xml:lang=3D=22EN-US=22>self</span><s=
pan lang=3D=22EN-US=22 style=3D=22font-size: 10pt; font-family: "Cou=
rier New"; color: rgb(8, 8, 8);=22 class=3D=22=22 xml:lang=3D=22EN-U=
S=22>)<br class=3D=22=22 />
&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;<span class=3D=22=
apple-converted-space=22>&=23160;</span></span><span lang=3D=22EN-US=22 s=
tyle=3D=22font-size: 10pt; font-family: "Courier New"; color: r=
gb(148, 85, 141);=22 class=3D=22=22 xml:lang=3D=22EN-US=22>self</span><sp=
an lang=3D=22EN-US=22 style=3D=22font-size: 10pt; font-family: "Cour=
ier New"; color: rgb(8, 8, 8);=22 class=3D=22=22 xml:lang=3D=22EN-US=
=22>.formlayout =3D QtWidgets.Q=46ormLayout(</span><span lang=3D=22EN-US=22=
style=3D=22font-size: 10pt; font-family: "Courier New"; color:=
rgb(148, 85, 141);=22 class=3D=22=22 xml:lang=3D=22EN-US=22>self</span><=
span lang=3D=22EN-US=22 style=3D=22font-size: 10pt; font-family: "Co=
urier New"; color: rgb(8, 8, 8);=22 class=3D=22=22 xml:lang=3D=22EN-=
US=22>.centralWidget)<br class=3D=22=22 />
&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;<span class=3D=22=
apple-converted-space=22>&=23160;</span></span><span lang=3D=22EN-US=22 s=
tyle=3D=22font-size: 10pt; font-family: "Courier New"; color: r=
gb(148, 85, 141);=22 class=3D=22=22 xml:lang=3D=22EN-US=22>self</span><sp=
an lang=3D=22EN-US=22 style=3D=22font-size: 10pt; font-family: "Cour=
ier New"; color: rgb(8, 8, 8);=22 class=3D=22=22 xml:lang=3D=22EN-US=
=22>.label1 =3D QtWidgets.QLabel(</span><b class=3D=22=22><span lang=3D=22=
EN-US=22 style=3D=22font-size: 10pt; font-family: "Courier New"=
; color: teal;=22 class=3D=22=22 xml:lang=3D=22EN-US=22>'Text 1'</span></=
b><span lang=3D=22EN-US=22 style=3D=22font-size: 10pt; font-family: "=
;Courier New"; color: rgb(8, 8, 8);=22 class=3D=22=22 xml:lang=3D=22=
EN-US=22>,<span class=3D=22apple-converted-space=22>&=23160;</span></span=
><span lang=3D=22EN-US=22 style=3D=22font-size: 10pt; font-family: "=
Courier New"; color: rgb(148, 85, 141);=22 class=3D=22=22 xml:lang=3D=
=22EN-US=22>self</span><span lang=3D=22EN-US=22 style=3D=22font-size: 10p=
t; font-family: "Courier New"; color: rgb(8, 8, 8);=22 class=3D=
=22=22 xml:lang=3D=22EN-US=22>.centralWidget)<br class=3D=22=22 />
&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;<span class=3D=22=
apple-converted-space=22>&=23160;</span></span><span lang=3D=22EN-US=22 s=
tyle=3D=22font-size: 10pt; font-family: "Courier New"; color: r=
gb(148, 85, 141);=22 class=3D=22=22 xml:lang=3D=22EN-US=22>self</span><sp=
an lang=3D=22EN-US=22 style=3D=22font-size: 10pt; font-family: "Cour=
ier New"; color: rgb(8, 8, 8);=22 class=3D=22=22 xml:lang=3D=22EN-US=
=22>.ledit1 =3D QtWidgets.QLineEdit(</span><b class=3D=22=22><span lang=3D=
=22EN-US=22 style=3D=22font-size: 10pt; font-family: "Courier New&qu=
ot;; color: teal;=22 class=3D=22=22 xml:lang=3D=22EN-US=22>'initial value=
'</span></b><span lang=3D=22EN-US=22 style=3D=22font-size: 10pt; font-fam=
ily: "Courier New"; color: rgb(8, 8, 8);=22 class=3D=22=22 xml:=
lang=3D=22EN-US=22>,<span class=3D=22apple-converted-space=22>&=23160;</s=
pan></span><span lang=3D=22EN-US=22 style=3D=22font-size: 10pt; font-fami=
ly: "Courier New"; color: rgb(148, 85, 141);=22 class=3D=22=22 =
xml:lang=3D=22EN-US=22>self</span><span lang=3D=22EN-US=22 style=3D=22fon=
t-size: 10pt; font-family: "Courier New"; color: rgb(8, 8, 8);=22=
class=3D=22=22 xml:lang=3D=22EN-US=22>.centralWidget)<br class=3D=22=22 =
/>
&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;<span class=3D=22=
apple-converted-space=22>&=23160;</span></span><span lang=3D=22EN-US=22 s=
tyle=3D=22font-size: 10pt; font-family: "Courier New"; color: r=
gb(148, 85, 141);=22 class=3D=22=22 xml:lang=3D=22EN-US=22>self</span><sp=
an lang=3D=22EN-US=22 style=3D=22font-size: 10pt; font-family: "Cour=
ier New"; color: rgb(8, 8, 8);=22 class=3D=22=22 xml:lang=3D=22EN-US=
=22>.bproceed =3D QtWidgets.QPushButton(</span><b class=3D=22=22><span la=
ng=3D=22EN-US=22 style=3D=22font-size: 10pt; font-family: "Courier N=
ew"; color: teal;=22 class=3D=22=22 xml:lang=3D=22EN-US=22>'Proceed'=
</span></b><span lang=3D=22EN-US=22 style=3D=22font-size: 10pt; font-fami=
ly: "Courier New"; color: rgb(8, 8, 8);=22 class=3D=22=22 xml:l=
ang=3D=22EN-US=22>,<span class=3D=22apple-converted-space=22>&=23160;</sp=
an></span><span lang=3D=22EN-US=22 style=3D=22font-size: 10pt; font-famil=
y: "Courier New"; color: rgb(148, 85, 141);=22 class=3D=22=22 x=
ml:lang=3D=22EN-US=22>self</span><span lang=3D=22EN-US=22 style=3D=22font=
-size: 10pt; font-family: "Courier New"; color: rgb(8, 8, 8);=22=
class=3D=22=22 xml:lang=3D=22EN-US=22>.centralWidget)<br class=3D=22=22 =
/>
&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;<span class=3D=22=
apple-converted-space=22>&=23160;</span></span><span lang=3D=22EN-US=22 s=
tyle=3D=22font-size: 10pt; font-family: "Courier New"; color: r=
gb(148, 85, 141);=22 class=3D=22=22 xml:lang=3D=22EN-US=22>self</span><sp=
an lang=3D=22EN-US=22 style=3D=22font-size: 10pt; font-family: "Cour=
ier New"; color: rgb(8, 8, 8);=22 class=3D=22=22 xml:lang=3D=22EN-US=
=22>.bproceed.setDefault(</span><span lang=3D=22EN-US=22 style=3D=22font-=
size: 10pt; font-family: "Courier New"; color: rgb(0, 51, 179);=
=22 class=3D=22=22 xml:lang=3D=22EN-US=22>True</span><span lang=3D=22EN-U=
S=22 style=3D=22font-size: 10pt; font-family: "Courier New"; co=
lor: rgb(8, 8, 8);=22 class=3D=22=22 xml:lang=3D=22EN-US=22>)<br class=3D=
=22=22 />
&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;<span class=3D=22=
apple-converted-space=22>&=23160;</span></span><span lang=3D=22EN-US=22 s=
tyle=3D=22font-size: 10pt; font-family: "Courier New"; color: r=
gb(148, 85, 141);=22 class=3D=22=22 xml:lang=3D=22EN-US=22>self</span><sp=
an lang=3D=22EN-US=22 style=3D=22font-size: 10pt; font-family: "Cour=
ier New"; color: rgb(8, 8, 8);=22 class=3D=22=22 xml:lang=3D=22EN-US=
=22>.bproceed.set=46ocusPolicy(Qt.Strong=46ocus)<br class=3D=22=22 />
&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;<span class=3D=22=
apple-converted-space=22>&=23160;</span></span><span lang=3D=22EN-US=22 s=
tyle=3D=22font-size: 10pt; font-family: "Courier New"; color: r=
gb(148, 85, 141);=22 class=3D=22=22 xml:lang=3D=22EN-US=22>self</span><sp=
an lang=3D=22EN-US=22 style=3D=22font-size: 10pt; font-family: "Cour=
ier New"; color: rgb(8, 8, 8);=22 class=3D=22=22 xml:lang=3D=22EN-US=
=22>.formlayout.setWidget(</span><span lang=3D=22EN-US=22 style=3D=22font=
-size: 10pt; font-family: "Courier New"; color: rgb(23, 80, 235=
);=22 class=3D=22=22 xml:lang=3D=22EN-US=22>1</span><span lang=3D=22EN-US=
=22 style=3D=22font-size: 10pt; font-family: "Courier New"; col=
or: rgb(8, 8, 8);=22 class=3D=22=22 xml:lang=3D=22EN-US=22>, QtWidgets.Q=46=
ormLayout.LabelRole,<span class=3D=22apple-converted-space=22>&=23160;</s=
pan></span><span lang=3D=22EN-US=22 style=3D=22font-size: 10pt; font-fami=
ly: "Courier New"; color: rgb(148, 85, 141);=22 class=3D=22=22 =
xml:lang=3D=22EN-US=22>self</span><span lang=3D=22EN-US=22 style=3D=22fon=
t-size: 10pt; font-family: "Courier New"; color: rgb(8, 8, 8);=22=
class=3D=22=22 xml:lang=3D=22EN-US=22>.label1)<br class=3D=22=22 />
&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;<span class=3D=22=
apple-converted-space=22>&=23160;</span></span><span lang=3D=22EN-US=22 s=
tyle=3D=22font-size: 10pt; font-family: "Courier New"; color: r=
gb(148, 85, 141);=22 class=3D=22=22 xml:lang=3D=22EN-US=22>self</span><sp=
an lang=3D=22EN-US=22 style=3D=22font-size: 10pt; font-family: "Cour=
ier New"; color: rgb(8, 8, 8);=22 class=3D=22=22 xml:lang=3D=22EN-US=
=22>.formlayout.setWidget(</span><span lang=3D=22EN-US=22 style=3D=22font=
-size: 10pt; font-family: "Courier New"; color: rgb(23, 80, 235=
);=22 class=3D=22=22 xml:lang=3D=22EN-US=22>1</span><span lang=3D=22EN-US=
=22 style=3D=22font-size: 10pt; font-family: "Courier New"; col=
or: rgb(8, 8, 8);=22 class=3D=22=22 xml:lang=3D=22EN-US=22>, QtWidgets.Q=46=
ormLayout.=46ieldRole,<span class=3D=22apple-converted-space=22>&=23160;<=
/span></span><span lang=3D=22EN-US=22 style=3D=22font-size: 10pt; font-fa=
mily: "Courier New"; color: rgb(148, 85, 141);=22 class=3D=22=22=
xml:lang=3D=22EN-US=22>self</span><span lang=3D=22EN-US=22 style=3D=22fo=
nt-size: 10pt; font-family: "Courier New"; color: rgb(8, 8, 8);=
=22 class=3D=22=22 xml:lang=3D=22EN-US=22>.ledit1)<br class=3D=22=22 />
&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;<span class=3D=22=
apple-converted-space=22>&=23160;</span></span><span lang=3D=22EN-US=22 s=
tyle=3D=22font-size: 10pt; font-family: "Courier New"; color: r=
gb(148, 85, 141);=22 class=3D=22=22 xml:lang=3D=22EN-US=22>self</span><sp=
an lang=3D=22EN-US=22 style=3D=22font-size: 10pt; font-family: "Cour=
ier New"; color: rgb(8, 8, 8);=22 class=3D=22=22 xml:lang=3D=22EN-US=
=22>.formlayout.setWidget(</span><span lang=3D=22EN-US=22 style=3D=22font=
-size: 10pt; font-family: "Courier New"; color: rgb(23, 80, 235=
);=22 class=3D=22=22 xml:lang=3D=22EN-US=22>2</span><span lang=3D=22EN-US=
=22 style=3D=22font-size: 10pt; font-family: "Courier New"; col=
or: rgb(8, 8, 8);=22 class=3D=22=22 xml:lang=3D=22EN-US=22>, QtWidgets.Q=46=
ormLayout.=46ieldRole,<span class=3D=22apple-converted-space=22>&=23160;<=
/span></span><span lang=3D=22EN-US=22 style=3D=22font-size: 10pt; font-fa=
mily: "Courier New"; color: rgb(148, 85, 141);=22 class=3D=22=22=
xml:lang=3D=22EN-US=22>self</span><span lang=3D=22EN-US=22 style=3D=22fo=
nt-size: 10pt; font-family: "Courier New"; color: rgb(8, 8, 8);=
=22 class=3D=22=22 xml:lang=3D=22EN-US=22>.bproceed)<br class=3D=22=22 />=
&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;<span class=3D=22=
apple-converted-space=22>&=23160;</span></span><span lang=3D=22EN-US=22 s=
tyle=3D=22font-size: 10pt; font-family: "Courier New"; color: r=
gb(148, 85, 141);=22 class=3D=22=22 xml:lang=3D=22EN-US=22>self</span><sp=
an lang=3D=22EN-US=22 style=3D=22font-size: 10pt; font-family: "Cour=
ier New"; color: rgb(8, 8, 8);=22 class=3D=22=22 xml:lang=3D=22EN-US=
=22>.setCentralWidget(</span><span lang=3D=22EN-US=22 style=3D=22font-siz=
e: 10pt; font-family: "Courier New"; color: rgb(148, 85, 141);=22=
class=3D=22=22 xml:lang=3D=22EN-US=22>self</span><span lang=3D=22EN-US=22=
style=3D=22font-size: 10pt; font-family: "Courier New"; color:=
rgb(8, 8, 8);=22 class=3D=22=22 xml:lang=3D=22EN-US=22>.centralWidget)<b=
r class=3D=22=22 />
<br class=3D=22=22 />
&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;<span class=3D=22=
apple-converted-space=22>&=23160;</span></span><span lang=3D=22EN-US=22 s=
tyle=3D=22font-size: 10pt; font-family: "Courier New"; color: r=
gb(148, 85, 141);=22 class=3D=22=22 xml:lang=3D=22EN-US=22>self</span><sp=
an lang=3D=22EN-US=22 style=3D=22font-size: 10pt; font-family: "Cour=
ier New"; color: rgb(8, 8, 8);=22 class=3D=22=22 xml:lang=3D=22EN-US=
=22>.bproceed.clicked.connect(</span><span lang=3D=22EN-US=22 style=3D=22=
font-size: 10pt; font-family: "Courier New"; color: rgb(148, 85=
, 141);=22 class=3D=22=22 xml:lang=3D=22EN-US=22>self</span><span lang=3D=
=22EN-US=22 style=3D=22font-size: 10pt; font-family: "Courier New&qu=
ot;; color: rgb(8, 8, 8);=22 class=3D=22=22 xml:lang=3D=22EN-US=22>.on=5F=
clicked)<br class=3D=22=22 />
<br class=3D=22=22 />
&=23160;&=23160;&=23160;<span class=3D=22apple-converted-space=22>&=23160=
;</span></span><span lang=3D=22EN-US=22 style=3D=22font-size: 10pt; font-=
family: "Courier New"; color: rgb(0, 51, 179);=22 class=3D=22=22=
xml:lang=3D=22EN-US=22>def<span class=3D=22apple-converted-space=22>&=23=
160;</span></span><span lang=3D=22EN-US=22 style=3D=22font-size: 10pt; fo=
nt-family: "Courier New";=22 class=3D=22=22 xml:lang=3D=22EN-US=
=22>on=5Fclicked</span><span lang=3D=22EN-US=22 style=3D=22font-size: 10p=
t; font-family: "Courier New"; color: rgb(8, 8, 8);=22 class=3D=
=22=22 xml:lang=3D=22EN-US=22>(</span><span lang=3D=22EN-US=22 style=3D=22=
font-size: 10pt; font-family: "Courier New"; color: rgb(148, 85=
, 141);=22 class=3D=22=22 xml:lang=3D=22EN-US=22>self</span><span lang=3D=
=22EN-US=22 style=3D=22font-size: 10pt; font-family: "Courier New&qu=
ot;; color: rgb(8, 8, 8);=22 class=3D=22=22 xml:lang=3D=22EN-US=22>):<br =
class=3D=22=22 />
&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;<span class=3D=22=
apple-converted-space=22>&=23160;</span></span><span lang=3D=22EN-US=22 s=
tyle=3D=22font-size: 10pt; font-family: "Courier New"; color: r=
gb(148, 85, 141);=22 class=3D=22=22 xml:lang=3D=22EN-US=22>self</span><sp=
an lang=3D=22EN-US=22 style=3D=22font-size: 10pt; font-family: "Cour=
ier New"; color: rgb(8, 8, 8);=22 class=3D=22=22 xml:lang=3D=22EN-US=
=22>.ledit1.setText(</span><b class=3D=22=22><span lang=3D=22EN-US=22 sty=
le=3D=22font-size: 10pt; font-family: "Courier New"; color: tea=
l;=22 class=3D=22=22 xml:lang=3D=22EN-US=22>''</span></b><span lang=3D=22=
EN-US=22 style=3D=22font-size: 10pt; font-family: "Courier New"=
; color: rgb(8, 8, 8);=22 class=3D=22=22 xml:lang=3D=22EN-US=22>)<br clas=
s=3D=22=22 /></span><i class=3D=22=22><span lang=3D=22EN-US=22 style=3D=22=
font-size: 10pt; font-family: "Courier New"; color: rgb(140, 14=
0, 140);=22 class=3D=22=22 xml:lang=3D=22EN-US=22><br class=3D=22=22 />
<br class=3D=22=22 /></span></i> <span lang=3D=22EN-US=22 style=3D=22font=
-size: 10pt; font-family: "Courier New"; color: rgb(0, 51, 179)=
;=22 class=3D=22=22 xml:lang=3D=22EN-US=22>if<span class=3D=22apple-conve=
rted-space=22>&=23160;</span></span><span lang=3D=22EN-US=22 style=3D=22f=
ont-size: 10pt; font-family: "Courier New"; color: rgb(8, 8, 8)=
;=22 class=3D=22=22 xml:lang=3D=22EN-US=22>=5F=5Fname=5F=5F =3D=3D<span c=
lass=3D=22apple-converted-space=22>&=23160;</span></span><b class=3D=22=22=
><span lang=3D=22EN-US=22 style=3D=22font-size: 10pt; font-family: "=
Courier New"; color: teal;=22 class=3D=22=22 xml:lang=3D=22EN-US=22>=
=22=5F=5Fmain=5F=5F=22</span></b><span lang=3D=22EN-US=22 style=3D=22font=
-size: 10pt; font-family: "Courier New"; color: rgb(8, 8, 8);=22=
class=3D=22=22 xml:lang=3D=22EN-US=22>:<br class=3D=22=22 />
&=23160;&=23160;&=23160; app =3D QtWidgets.QApplication(sys.argv)<br clas=
s=3D=22=22 />
&=23160;&=23160;&=23160; win =3D MainWindow()<br class=3D=22=22 />
&=23160;&=23160;&=23160; win.show()<br class=3D=22=22 />
&=23160;&=23160;&=23160; sys.exit(app.exec())</span><span style=3D=22font=
-size: 12pt;=22 class=3D=22=22></span></div>
</div>
<div class=3D=22=22>
<div style=3D=22margin: 0cm 0cm 0.0001pt 35.4pt; font-size: 11pt; font-fa=
mily: Calibri, sans-serif;=22 class=3D=22=22><span lang=3D=22EN-US=22 cla=
ss=3D=22=22 xml:lang=3D=22EN-US=22>&=23160;</span><span style=3D=22font-s=
ize: 12pt;=22 class=3D=22=22></span></div>
</div>
<div class=3D=22=22>
<div style=3D=22margin: 0cm 0cm 0.0001pt 35.4pt; font-size: 11pt; font-fa=
mily: Calibri, sans-serif;=22 class=3D=22=22><span lang=3D=22EN-US=22 cla=
ss=3D=22=22 xml:lang=3D=22EN-US=22>&=23160;</span><span style=3D=22font-s=
ize: 12pt;=22 class=3D=22=22></span></div>
</div>
<div class=3D=22=22>
<div style=3D=22margin: 0cm 0cm 0.0001pt 35.4pt; font-size: 11pt; font-fa=
mily: Calibri, sans-serif;=22 class=3D=22=22><span lang=3D=22EN-US=22 cla=
ss=3D=22=22 xml:lang=3D=22EN-US=22>If the pushbutton is clicked with the =
mouse or with the space key (after getting the focus with Tab), the text =
in the lineedit is not refreshed. If a repaint is forced, it is.</span><s=
pan style=3D=22font-size: 12pt;=22 class=3D=22=22></span></div>
</div>
<div class=3D=22=22>
<div style=3D=22margin: 0cm 0cm 0.0001pt 35.4pt; font-size: 11pt; font-fa=
mily: Calibri, sans-serif;=22 class=3D=22=22><span lang=3D=22EN-US=22 cla=
ss=3D=22=22 xml:lang=3D=22EN-US=22>If the pushbutton is clicked with the =
enter key (after getting the focus with Tab), the text in the lineedit is=
correctly refreshed.</span><span style=3D=22font-size: 12pt;=22 class=3D=
=22=22></span></div>
</div>
<div class=3D=22=22>
<div style=3D=22margin: 0cm 0cm 0.0001pt 35.4pt; font-size: 11pt; font-fa=
mily: Calibri, sans-serif;=22 class=3D=22=22><span lang=3D=22EN-US=22 cla=
ss=3D=22=22 xml:lang=3D=22EN-US=22>&=23160;</span><span style=3D=22font-s=
ize: 12pt;=22 class=3D=22=22></span></div>
</div>
<div class=3D=22=22>
<div style=3D=22margin: 0cm 0cm 0.0001pt 35.4pt; font-size: 11pt; font-fa=
mily: Calibri, sans-serif;=22 class=3D=22=22><span lang=3D=22EN-US=22 cla=
ss=3D=22=22 xml:lang=3D=22EN-US=22>Any idea=3F</span><span style=3D=22fon=
t-size: 12pt;=22 class=3D=22=22></span></div>
</div>
<div class=3D=22=22>
<div style=3D=22margin: 0cm 0cm 0.0001pt 35.4pt; font-size: 11pt; font-fa=
mily: Calibri, sans-serif;=22 class=3D=22=22><span lang=3D=22EN-US=22 cla=
ss=3D=22=22 xml:lang=3D=22EN-US=22>&=23160;</span><span style=3D=22font-s=
ize: 12pt;=22 class=3D=22=22></span></div>
</div>
<div class=3D=22=22>
<div style=3D=22margin: 0cm 0cm 0.0001pt 35.4pt; font-size: 11pt; font-fa=
mily: Calibri, sans-serif;=22 class=3D=22=22><span lang=3D=22EN-US=22 cla=
ss=3D=22=22 xml:lang=3D=22EN-US=22>My env:</span><span style=3D=22font-si=
ze: 12pt;=22 class=3D=22=22></span></div>
</div>
<div class=3D=22=22>
<div style=3D=22margin: 0cm 0cm 0.0001pt 35.4pt; font-size: 11pt; font-fa=
mily: Calibri, sans-serif;=22 class=3D=22=22><span lang=3D=22EN-US=22 cla=
ss=3D=22=22 xml:lang=3D=22EN-US=22>OSX Catalina 10.15.5</span><span style=
=3D=22font-size: 12pt;=22 class=3D=22=22></span></div>
</div>
<div class=3D=22=22>
<div style=3D=22margin: 0cm 0cm 0.0001pt 35.4pt; font-size: 11pt; font-fa=
mily: Calibri, sans-serif;=22 class=3D=22=22><span lang=3D=22EN-US=22 cla=
ss=3D=22=22 xml:lang=3D=22EN-US=22>Python 3.6</span><span style=3D=22font=
-size: 12pt;=22 class=3D=22=22></span></div>
</div>
<div class=3D=22=22>
<div style=3D=22margin: 0cm 0cm 0.0001pt 35.4pt; font-size: 11pt; font-fa=
mily: Calibri, sans-serif;=22 class=3D=22=22><span lang=3D=22EN-US=22 cla=
ss=3D=22=22 xml:lang=3D=22EN-US=22>PyQt: 15.0</span><span style=3D=22font=
-size: 12pt;=22 class=3D=22=22></span></div>
</div>
<div class=3D=22=22>
<div style=3D=22margin: 0cm 0cm 0.0001pt 35.4pt; font-size: 11pt; font-fa=
mily: Calibri, sans-serif;=22 class=3D=22=22><span lang=3D=22EN-US=22 cla=
ss=3D=22=22 xml:lang=3D=22EN-US=22>&=23160;</span><span style=3D=22font-s=
ize: 12pt;=22 class=3D=22=22></span></div>
</div>
<div class=3D=22=22>
<div style=3D=22margin: 0cm 0cm 0.0001pt 35.4pt; font-size: 11pt; font-fa=
mily: Calibri, sans-serif;=22 class=3D=22=22><span lang=3D=22EN-US=22 cla=
ss=3D=22=22 xml:lang=3D=22EN-US=22>Thank you</span><span style=3D=22font-=
size: 12pt;=22 class=3D=22=22></span></div>
</div>
<div style=3D=22margin: 0cm 0cm 0.0001pt 35.4pt; font-size: 11pt; font-fa=
mily: Calibri, sans-serif;=22 class=3D=22=22><span style=3D=22font-size: =
9pt; font-family: Helvetica;=22 class=3D=22=22><br class=3D=22=22 />
<br class=3D=22=22 />
=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=
=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F<br cla=
ss=3D=22=22 />
PyQt mailing list<br class=3D=22=22 /></span><a href=3D=22mailto:PyQt=40r=
iverbankcomputing.com=22 style=3D=22color: blue; text-decoration: underli=
ne;=22 class=3D=22=22><span style=3D=22font-size: 9pt; font-family: Helve=
tica;=22 class=3D=22=22>PyQt=40riverbankcomputing.com</span></a><span sty=
le=3D=22font-size: 9pt; font-family: Helvetica;=22 class=3D=22=22><br cla=
ss=3D=22=22 /></span><a href=3D=22https://www.riverbankcomputing.com/mail=
man/listinfo/pyqt=22 style=3D=22color: blue; text-decoration: underline;=22=
class=3D=22=22><span style=3D=22font-size: 9pt; font-family: Helvetica;=22=
class=3D=22=22>https://www.riverbankcomputing.com/mailman/listinfo/pyqt<=
/span></a></div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br class=3D=22=22 /></div>
</blockquote>
</div>
</body>
</html>
--5ef578b1_327b23c6_8b3--