<div dir="ltr"><div>Hi all,<br><br></div>I have some skeleton code as shown here: <a href="https://gist.github.com/bmer/e4760c49d1a9c7396c33">https://gist.github.com/bmer/e4760c49d1a9c7396c33</a><br><br>If run this code as is (<code>python qt_problem.py</code>), then everything works okay. However, if I un-comment the lines that add a <code>QTextEdit</code> widget, in <code>initUI</code>, I get the following warnings appearing:<br><br><pre style="" class=""><code><span class="">(</span><span class="">python</span><span class="">:</span><span class="">1949</span><span class="">):</span><span class=""> </span><span class="">Gtk</span><span class="">-</span><span class="">CRITICAL </span><span class="">**:</span><span class=""> IA__gtk_widget_style_get</span><span class="">:</span><span class=""> assertion </span><span class="">'GTK_IS_WIDGET (widget)'</span><span class=""> failed
</span><span class="">QWidget</span><span class="">::</span><span class="">setMinimumSize</span><span class="">:</span><span class=""> </span><span class="">(/</span><span class="">Editor</span><span class="">)</span><span class=""> </span><span class="">The</span><span class=""> largest allowed size </span><span class="">is</span><span class=""> </span><span class="">(</span><span class="">16777215</span><span class="">,</span><span class="">16777215</span><span class="">)<br><br></span></code></pre><p>The window that would otherwise pop-up doesn't, but I can still close up the application. Instead, if in <code>main</code> I have <code>main.showMaximized()</code> rather than <code>main.show()</code>, I cause my computer to crash. This does not happen if I don't have a <code>QTextEdit</code> widget set as the central widget, since otherwise, a normal, maximized window appears.</p>
<p>Any ideas regarding what's happening? I would be so grateful if I could get past this!</p><p><br></p><p>Kind regards,</p><p>Brian<br></p><pre style="" class=""><br></pre><br></div>