Re: [PyQt] Doubt over image

2012-09-18 Thread Micha
Hello, Am 19.09.2012 00:53, schrieb Python.py: No, show the icon on a button to know, what I know is that the button's icon. Example, if my button with icon X.png is, I wonder what is Nesso icon button, ie X.png Am I clear now? I´m not quite sure. You have a QPushButton with an icon on it. Bu

Re: [PyQt] Weird behavior in fromMimeData method (pyScintilla)

2012-09-18 Thread Salvatore Larosa
Hi, 2012/9/19 Phil Thompson > On Tue, 18 Sep 2012 23:16:00 +0200, Salvatore Larosa > wrote: > > Hi all, > > I am not sure if this is the rigth place to ask! > > > > I created a small console to execute python command by using Qscintilla > > python bindings but something doesnt work with MIME da

[PyQt] QImage in BI24 format

2012-09-18 Thread David Cortesi
> > I have a C-library creating an image supposedly in in BI24 format (video > application) > > Now I'd like to display the image. > > I tried to set the pixel format to QImage.Format_RGB888 > > and I can see the image. > However the red and blue colors are inversed. > I don't know if this will he

Re: [PyQt] Help with segfault in PyQt program

2012-09-18 Thread Phil Thompson
On Tue, 18 Sep 2012 00:30:12 +0530, Shriramana Sharma wrote: > Hi thanks for that fix. I had to polish my concepts of what Python > variables are before I could fathom this correctly: > http://python.net/~goodger/projects/pycon/2007/idiomatic/handout.html#other-languages-have-variables > > Anyhow

Re: [PyQt] Doubt over image

2012-09-18 Thread Python.py
No, show the icon on a button to know, what I know is that the button's icon. Example, if my button with icon X.png is, I wonder what is Nesso icon button, ie X.png Am I clear now? -- View this message in context: http://python.6.n6.nabble.com/Doubt-over-image-tp4989082p4989152.html Sent from

[PyQt] QThread terminate trouble when porting to Python 3

2012-09-18 Thread Lee Harr
Hi; I am porting Pynguin to Python 3: http://pynguin.googlecode.com/ I am working with Python 3.2.3 and PyQt 4.9.1 on Ubuntu. This is a turtle graphics application, so I take the user's (python) code and run it in a separate thread. If the user wants to interrupt the running code, they can pres

Re: [PyQt] Weird behavior in fromMimeData method (pyScintilla)

2012-09-18 Thread Phil Thompson
On Tue, 18 Sep 2012 23:16:00 +0200, Salvatore Larosa wrote: > Hi all, > I am not sure if this is the rigth place to ask! > > I created a small console to execute python command by using Qscintilla > python bindings but something doesnt work with MIME data. > > My code is: > > def fromMimeData(s

[PyQt] Weird behavior in fromMimeData method (pyScintilla)

2012-09-18 Thread Salvatore Larosa
Hi all, I am not sure if this is the rigth place to ask! I created a small console to execute python command by using Qscintilla python bindings but something doesnt work with MIME data. My code is: def fromMimeData(self, source): if source.hasText(): pasteList = QStringList(

Re: [PyQt] sip: template<> %MappedType doesn't allow /AllowNone/

2012-09-18 Thread Mathias . Born
On 18.09.2012, 11:02:34 Phil Thompson wrote: > A thought... > Did you update from hg or use a snapshot? > If hg did you change to the default branch? > Phil I had not changed the branch. Now I have, and hg identify says "6d704a7ab6c5 tip". But now sip.exe crashes with my sip file. Don't hav

[PyQt] QImage in BI24 format

2012-09-18 Thread Gelonida N
Hi, I have a C-library creating an image supposedly in in BI24 format (video application) Now I'd like to display the image. I tried to set the pixel format to QImage.Format_RGB888 and I can see the image. However the red and blue colors are inversed. Is there another format, that can direc

Re: [PyQt] Doubt over image

2012-09-18 Thread Micha
Hello, Am 18.09.2012 14:50, schrieb Python.py: Hello everybody, I'm doing a program that shows the image. But I need to know what I am selecting image. My question is: I am trying to retrieve the icon of a QPushButton and I can not. I can set the icon. Anyone have any suggestions? Do I unde

[PyQt] Doubt over image

2012-09-18 Thread Python.py
Hello everybody, I'm doing a program that shows the image. But I need to know what I am selecting image. My question is: I am trying to retrieve the icon of a QPushButton and I can not. I can set the icon. Anyone have any suggestions? -- View this message in context: http://python.6.n6.nabble.c

Re: [PyQt] sip: template<> %MappedType doesn't allow /AllowNone/

2012-09-18 Thread Phil Thompson
On Mon, 17 Sep 2012 22:10:35 +0200, mathias.b...@gmx.de wrote: > On 17.09.2012, 18:44:19 Phil Thompson wrote: >> On Mon, 10 Sep 2012 23:31:20 +0200, mathias.b...@gmx.de wrote: >>> Phil, >>> >>> While using /AlloNone/ on a normal mapped type directive like >>> >>> %MappedType boost::optional /Allo