[PyQt] [Help] Problem during PyQt4 development snapshot compilations
Hi all, I'm in trouble with compiling the development snapshot of PyQt4 ( 20090923 ) against Qt4.6 with the latest KDE patches. I've attached both the configure and compile output, so you can find out if its a Qt-related issue or something else. configure: http://pastebin.com/m6c6f46be compile output: http://pastebin.com/m5217b8f6 I hope you find this feedback useful, or ask me for more information ! cheers !! ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] how can i add multiple corner widget like the one in houdini(check the screen shot)
how can i implement multiple cornerwidgets on the Qtabwidget. plz check the screen shot for better idea about what i am asking http://www.nabble.com/file/p25608367/houdini.png -- View this message in context: http://www.nabble.com/how-can-i-add-multiple-corner-widget-like-the-one-in-houdini%28check-the-screen-shot%29-tp25608367p25608367.html Sent from the PyQt mailing list archive at Nabble.com. ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Model/View programming
Hello, thanks for your help again. It works like a charm now. Lukas Am Donnerstag 24 September 2009 21:11:34 schrieb David Boddie: On Tue Sep 22 01:37:33 BST 2009, David Boddie wrote: I tried running your test case and found that the view displayed various items in an incomplete way - when you see trailing branches, it's a sure sign that something isn't quite right. I'll try and take a look at this tomorrow unless someone manages to help you out in the meantime. I finally got a chance to look at the code. I removed all the places where you stored QModelIndexes in the items and changed the appendChild() method to emit signals so that the view knows something changed. You might want to diff my version against yours to see what I did. David ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] how can i add multiple corner widget like the one in houdini(check the screen shot)
On Fri Sep 25 09:29:20 BST 2009, tabish wrote: how can i implement multiple cornerwidgets on the Qtabwidget. plz check the screen shot for better idea about what i am asking http://www.nabble.com/file/p25608367/houdini.png Could you highlight the part of the image you are referring to, please? David ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] [ANN] hgview 1.1.0
I am pleased to announce you to the latest release of `hgview 1.1.0`_. What is it? --- For the ones from the back of the classroom near the radiator, let me remind you that hgview_ is a very helpful tool for daily work using the excellent DVCS Mercurial_ (which we heavily use at Logilab_, thanks Matt and others!). It allows to easily and visually navigate your hg repository revision graphlog. It is written in Python_ and pyqt_. What's new -- - user can now configure colors used in the diff area (and they now default to white on black) - indicate current working directory position by a square node in the graph - add many other configuration options (listed when typing `hg help hgview`) - removed 'hg hgview-options' command in favor of 'hg help hgview' - add ability to choose which parent to diff with for merge nodes - dramatically improved UI behaviour (shortcuts, history of navigation, goto next/prev diff (in some views), etc.) - improved help and make it accessible from the GUI - make it possible not to display the diffstat column of the file list (which can dramatically improve performances on big repositories) - standalone application: improved command line options - add auto-reload feature (when the repo is modified due to a pull, a commit, etc., hgview detects it, reloads the repo and updates the graph) - fix *many* bugs, especially the file log navigator should now display the whole graph - (maybe) improved performances a bit Download and installation - The source code is available as a tarball_, or using our `public hg repository`_ of course. To use it from the sources, you just have to add a line in your ``.hgrc`` file, in the `[extensions]` section: hgext.hgview=/path/to/hgview/hgext/hgview.py Debian_ and Ubuntu_ users can also easily install hgview (and Logilab other free software tools) using our `deb package repositories`_. .. _`hgview 1.1.0`: http://www.logilab.org/project/hgview/1.1.0 .. _hgview: http://www.logilab.org/project/hgview .. _Mercurial: http://www.selenic.com/mercurial .. _`deb package repositories`: http://www.logilab.org/card/LogilabDebianRepository .. _`public hg repository`: http://www.logilab.org/cgi-bin/hgwebdir.cgi/ .. _Debian: http://www.debian.org .. _Ubuntu: http://www.ubuntu.com .. _tarball: http://ftp.logilab.org/pub/hgview/hgview-1.0.0.tar.gz .. _qt4: http://www.qtsoftware.com/products/ .. _pyqt: http://www.riverbankcomputing.co.uk/software/pyqt/intro .. _Python: http://www.python.org .. _Logilab: http://www.logilab.fr -- David DouardLOGILAB, Paris (France), +33 1 45 32 03 12 Formations Python, Zope, Debian : http://www.logilab.fr/formations Développement logiciel sur mesure : http://www.logilab.fr/services Informatique scientifique : http://www.logilab.fr/science ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] Mac OS X Problem: PyQT applications not focusing on launch
Hi, Every pyqt example I start under Mac OS X (PyQt 4.5.4, Python 2.6 from Python.org, Mac OS X 10.5.8), no matter which (I tried the delivered examples in the source distribution and also the examples from the python book [1], I also tried the eric IDE and spyder) fail to receive the focus when launched. A click is needed to raise the application. Sometimes the newly opened window is hidden under others. I am aware that I have to use pythonw (instead of python) for GUI scripts, but this doesn't change anything. After googling I read that I just have to bundle my scripts in .app packages because the issues is all Apples fault. I feel this is unelegant and most importantly: all wxpython applications RECEIVE the focus when launched (no matter if with python or pythonw), therefore there IS a way to make scripts open up GUI applications with focus. I give code examples for pyqt (no focus) and WXPython (receives focus) below my message. Maybe someone with more insight can shed some light on this problem. [1] http://www.qtrac.eu/pyqtbook.tar.gz Greetings, Holger --- SNIP --- # encoding: utf-8 # wxPython example. This receives focus on launch. # Launch with # $ python hello_world_wx.py # File: hello_world_wx.py import wx app = wx.PySimpleApp() frame = wx.Frame(None, wx.ID_ANY, Hello World) frame.Show(True) app.MainLoop() --- SNAP --- --- SNIP --- # encoding: utf-8 # pyqt example. This DOES NOT receives focus on launch. # Launch with # $ python hello_world_qt.py # or # $ pythonw hello_world_qt.py # Doesn't make a difference on my computer. # File: hello_world_qt.py from PyQt4 import QtCore, QtGui import sys class HelloWorld(QtGui.QWidget): def __init__(self, parent=None): super(HelloWorld, self).__init__(parent) self.setWindowTitle(Hello World) app = QtGui.QApplication(sys.argv) hello = HelloWorld() hello.show() sys.exit(app.exec_()) --- SNAP --- ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] how can i add multiple corner widget like the one in houdini(check the screen shot)
On Freitag, 25. September 2009, tabish-- wrote: how can i implement multiple cornerwidgets on the Qtabwidget. plz check the screen shot for better idea about what i am asking http://www.nabble.com/file/p25608367/houdini.png Just a QWidget onto which you lay out your list of widgets. See eric4 sources for an example. Detlev -- Detlev Offenbach det...@die-offenbachs.de ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Mac OS X Problem: PyQT applications not focusing on launch
hello = HelloWorld() hello.show() hello.raise_() # this will raise the window on Mac OS X sys.exit(app.exec_()) Given it's a Mac-only problem, which wasn't reproducible with Qt, only PyQt, for me it looks like a PyQt bug. But the fix is quite easy. A. On Fri, Sep 25, 2009 at 5:16 PM, Holger Rapp r...@mrt.uka.de wrote: Hi, Every pyqt example I start under Mac OS X (PyQt 4.5.4, Python 2.6 from Python.org, Mac OS X 10.5.8), no matter which (I tried the delivered examples in the source distribution and also the examples from the python book [1], I also tried the eric IDE and spyder) fail to receive the focus when launched. A click is needed to raise the application. Sometimes the newly opened window is hidden under others. I am aware that I have to use pythonw (instead of python) for GUI scripts, but this doesn't change anything. After googling I read that I just have to bundle my scripts in .app packages because the issues is all Apples fault. I feel this is unelegant and most importantly: all wxpython applications RECEIVE the focus when launched (no matter if with python or pythonw), therefore there IS a way to make scripts open up GUI applications with focus. I give code examples for pyqt (no focus) and WXPython (receives focus) below my message. Maybe someone with more insight can shed some light on this problem. [1] http://www.qtrac.eu/pyqtbook.tar.gz Greetings, Holger --- SNIP --- # encoding: utf-8 # wxPython example. This receives focus on launch. # Launch with # $ python hello_world_wx.py # File: hello_world_wx.py import wx app = wx.PySimpleApp() frame = wx.Frame(None, wx.ID_ANY, Hello World) frame.Show(True) app.MainLoop() --- SNAP --- --- SNIP --- # encoding: utf-8 # pyqt example. This DOES NOT receives focus on launch. # Launch with # $ python hello_world_qt.py # or # $ pythonw hello_world_qt.py # Doesn't make a difference on my computer. # File: hello_world_qt.py from PyQt4 import QtCore, QtGui import sys class HelloWorld(QtGui.QWidget): def __init__(self, parent=None): super(HelloWorld, self).__init__(parent) self.setWindowTitle(Hello World) app = QtGui.QApplication(sys.argv) hello = HelloWorld() hello.show() sys.exit(app.exec_()) --- SNAP --- ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Mac OS X Problem: PyQT applications not focusing on launch
Am Freitag 25 September 2009 schrieb Alexei Puzikov: hello = HelloWorld() hello.show() hello.raise_() # this will raise the window on Mac OS X sys.exit(app.exec_()) Given it's a Mac-only problem, which wasn't reproducible with Qt, only PyQt, for me it looks like a PyQt bug. But the fix is quite easy. No, it's not a PyQt issue, it's about Qt being compliant with Apple design guidelines.. (red that in some Qt developer blog, but didn't remember the address..) I bet, wxpython does ignore these guides and implicitely raises the window. Now imagine, you try to respect them with wx.. Calling raise_() is a small price to pay, doesn't it? Pete A. On Fri, Sep 25, 2009 at 5:16 PM, Holger Rapp r...@mrt.uka.de wrote: Hi, Every pyqt example I start under Mac OS X (PyQt 4.5.4, Python 2.6 from Python.org, Mac OS X 10.5.8), no matter which (I tried the delivered examples in the source distribution and also the examples from the python book [1], I also tried the eric IDE and spyder) fail to receive the focus when launched. A click is needed to raise the application. Sometimes the newly opened window is hidden under others. I am aware that I have to use pythonw (instead of python) for GUI scripts, but this doesn't change anything. After googling I read that I just have to bundle my scripts in .app packages because the issues is all Apples fault. I feel this is unelegant and most importantly: all wxpython applications RECEIVE the focus when launched (no matter if with python or pythonw), therefore there IS a way to make scripts open up GUI applications with focus. I give code examples for pyqt (no focus) and WXPython (receives focus) below my message. Maybe someone with more insight can shed some light on this problem. [1] http://www.qtrac.eu/pyqtbook.tar.gz Greetings, Holger --- SNIP --- # encoding: utf-8 # wxPython example. This receives focus on launch. # Launch with # $ python hello_world_wx.py # File: hello_world_wx.py import wx app = wx.PySimpleApp() frame = wx.Frame(None, wx.ID_ANY, Hello World) frame.Show(True) app.MainLoop() --- SNAP --- --- SNIP --- # encoding: utf-8 # pyqt example. This DOES NOT receives focus on launch. # Launch with # $ python hello_world_qt.py # or # $ pythonw hello_world_qt.py # Doesn't make a difference on my computer. # File: hello_world_qt.py from PyQt4 import QtCore, QtGui import sys class HelloWorld(QtGui.QWidget): def __init__(self, parent=None): super(HelloWorld, self).__init__(parent) self.setWindowTitle(Hello World) app = QtGui.QApplication(sys.argv) hello = HelloWorld() hello.show() sys.exit(app.exec_()) --- SNAP --- ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] Menu bar entry name - suggestions?
I have a QMainWindow that contains three dock widgets. If the user closes one of the dock windows, these can be repositioned back into the main window by selecting the closed windows from a menu entry in the menu bar of the main window. Any good suggestions for the name of this menu entry. An equivalent is the 'Windows' menu entry that display a list of all currently open windows. Any good suggestions are most welcome. Mads -- ++ | Mads Ipsen, Scientific developer | +--+-+ | QuantumWise A/S | phone: +45-29716388 | | Nørresøgade 27A | www:www.quantumwise.com | | DK-1370 Copenhagen, Denmark | email: m...@quantumwise.com | +--+-+ ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] QtWebKit to PDF rendering
On Wed Sep 23 19:21:31 BST 2009, Sundance wrote: ... Also, might be a stupid question, but what happens if you use QWebFrame.print() instead of .render()? This should produce something more acceptable for printing, though what you get depends on the style sheet. I couldn't say if there are clipping issues with this approach, but one problem that can occur is that titles may become separated from the paragraphs that immediately follow them. There may be a way to write the style sheet or HTML to prevent this - it would require a bit of experimentation to find out. David ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt