[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt] MDI window changing does not work
From: Phil Thompson <phil () riverbankcomputing ! com>
Date: 2010-05-28 14:26:24
Message-ID: 874acda83581ab39978537dead028883 () localhost
[Download RAW message or body]
On Fri, 28 May 2010 16:49:59 +0400, Арсений Т <senyai@gmail.com>
wrote:
> Hi!
>
> I've got an issue here.
> 1. Install PyQt-Py2.5-gpl-4.7.3-1.exe
> 2. Run examples\mainwindows\mdi\mdi.pyw
> 3. Open two windows: Ctrl+N, Ctrl+N
> 4. Trying to make first window active: Alt+W, 1 - nothing happens.
>
> Thx
Patch attached.
Phil
[Attachment #3 (text/plain)]
diff -r 7b456ce3c36e examples/mainwindows/mdi/mdi.py
--- a/examples/mainwindows/mdi/mdi.py Fri May 28 13:55:02 2010 +0100
+++ b/examples/mainwindows/mdi/mdi.py Fri May 28 15:19:13 2010 +0100
@@ -258,7 +258,7 @@
action.setCheckable(True)
action.setChecked(child == self.activeMdiChild())
action.triggered.connect(self.windowMapper.map)
- self.windowMapper.setMapping(action, child)
+ self.windowMapper.setMapping(action, window)
def createMdiChild(self):
child = MdiChild()
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic