tag:blogger.com,1999:blog-7970464356958190643.post4086185834288703263..comments2023-06-17T12:16:20.427+02:00Comments on PySnippet: Getting Interactive With PyQtMariohttp://www.blogger.com/profile/06895806907930156083noreply@blogger.comBlogger12125tag:blogger.com,1999:blog-7970464356958190643.post-47144511439353614792017-12-29T06:22:46.373+01:002017-12-29T06:22:46.373+01:00This comment has been removed by a blog administrator.rosehttps://www.blogger.com/profile/14536506270091000134noreply@blogger.comtag:blogger.com,1999:blog-7970464356958190643.post-55002993063871185892017-08-28T08:41:59.094+02:002017-08-28T08:41:59.094+02:00This comment has been removed by a blog administrator.Nandhinihttps://www.blogger.com/profile/14452621476432231305noreply@blogger.comtag:blogger.com,1999:blog-7970464356958190643.post-46762440722754134712015-01-15T09:12:37.649+01:002015-01-15T09:12:37.649+01:00@triccare Honestly, I don't have clue. I haven...@triccare Honestly, I don't have clue. I haven't been playing around with this for years so I can't tell if it sluggish or not and if there's any fixes.Mariohttps://www.blogger.com/profile/06895806907930156083noreply@blogger.comtag:blogger.com,1999:blog-7970464356958190643.post-36483491091976794682015-01-14T16:30:11.268+01:002015-01-14T16:30:11.268+01:00I have just started experimenting with this intera...I have just started experimenting with this interactive mode of PyQt. Under ipython, all works fine.<br /><br />However, under just python (2.7.5), the command line gets very sluggish. I have not found much else around about this and hence why I'm posting here.<br /><br />Have you found it sluggish? If so, is there something that can be done about it?<br /><br />Thanks!Anonymoushttps://www.blogger.com/profile/17891734370919568902noreply@blogger.comtag:blogger.com,1999:blog-7970464356958190643.post-10973591361122662792012-03-27T10:55:19.640+02:002012-03-27T10:55:19.640+02:00Nice tuts you have, keep on writing... regards fro...Nice tuts you have, keep on writing... regards from indonesiasopierhttp://sopier.wordpress.comnoreply@blogger.comtag:blogger.com,1999:blog-7970464356958190643.post-40756124927255034612010-11-10T10:10:24.332+01:002010-11-10T10:10:24.332+01:00Thanx Mario, thanx a lot for your quick response a...Thanx Mario, thanx a lot for your quick response and advice.<br /><br />Thanx a lot. Keep writing.Wishhttps://www.blogger.com/profile/09419610576437127873noreply@blogger.comtag:blogger.com,1999:blog-7970464356958190643.post-74224115065108736422010-11-10T08:17:03.577+01:002010-11-10T08:17:03.577+01:00Wish: I'm glad that you like my blog.
I haven...Wish: I'm glad that you like my blog.<br /><br />I haven't played a lot with QGraphics because I prefer using traditional widget or QML, much easier :)<br /><br />I'm not sure if it's possible to find out the cursor's position in scene coords since the TextCursor isn't a GraphicsObject so it doesn't know anything about the scene. It only knows about the position within a TextDocument.<br /><br />I can recommend you to sign up at http://developer.qt.nokia.com and submit your question. It's a friendly place and there are a lot of trolls hanging around so they should be able to answer your question.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-7970464356958190643.post-51885533603502047762010-11-09T18:55:18.127+01:002010-11-09T18:55:18.127+01:00i know this is not the place to ask for help but i...i know this is not the place to ask for help but i need it so desperately. I hope you won't mind if I ask it here only.<br /><br />I have a QGraphicTextItem on a QGraphicScene. I want to get the coordinates of the textCursor in scene coordinates. how can i get that?<br /><br />btw I love your blog tat's why i follow it... :) plz keep up this work... at least for me... :DWishhttps://www.blogger.com/profile/09419610576437127873noreply@blogger.comtag:blogger.com,1999:blog-7970464356958190643.post-36550083591051138942010-11-09T08:32:01.441+01:002010-11-09T08:32:01.441+01:00But PyQt supports this out of the box for the stan...But PyQt supports this out of the box for the standard python shell by installing an input hook which processes events while the interpreter is waiting for input. This doesn't require any additional software to be installed to work, see http://www.riverbankcomputing.com/static/Docs/PyQt4/pyqt4ref.html#using-pyqt-from-the-python-shell<br /><br />I was doing some googling on 'pygtk interactively' and I couldn't find anything that pygtk supports this in the standard python interpreter shell, am I wrong?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-7970464356958190643.post-25442037366239538352010-11-09T00:33:11.697+01:002010-11-09T00:33:11.697+01:00This isn't particular to pyQt.
Take a look at ...This isn't particular to pyQt.<br />Take a look at iPython. You can do this with other gui frameworks as well.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-7970464356958190643.post-10055624920080142812010-11-07T18:02:51.760+01:002010-11-07T18:02:51.760+01:00You can also use stackless or greenlets to have ba...You can also use stackless or greenlets to have background loops, it's also a tad more pythonic.Eoinhttp://clanslots.comnoreply@blogger.comtag:blogger.com,1999:blog-7970464356958190643.post-87353203520076555022010-11-07T13:40:08.510+01:002010-11-07T13:40:08.510+01:00If you use ipython (http://ipython.scipy.org/moin/...If you use ipython (http://ipython.scipy.org/moin/) then you can run the Qt event loop in the background with the -q4thread command line option. This lets you use the GUI that you build exactly as if it was running in a real application.<br /><br />There is also -wthread for wxPython and -gthread for GTK event loops.Dave Kirbyhttps://www.blogger.com/profile/05692608289845036146noreply@blogger.com