[wxpython] Is there any control like this?

2011년 10월 25일 오후 1:54, Gadget/Steve GadgetSteve@live.co.uk님의 말:

···

On 25/10/2011 2:03 AM, 최원준 wrote:

2011년 10월 24일 오후 5:11, 최원준 wonjunchoi001@gmail.com
의 말:

2011년 10월 24일 오후 1:48, 최원준 wonjunchoi001@gmail.com
의 말:

2011년 10월 23일 오후 10:09, 최원준 wonjunchoi001@gmail.com
의 말:

                            2011/10/22 werner

wbruhin@free.fr

On 10/22/2011 01:54 PM, 최원준 wrote:

                                ...
                                      I think I must think about

the index of each control to
control them.

                                      so, I thought python list.

because some example of
wx.Flexgridsizer was using

                                      the list. ex) puzzle

example in http://zetcode.com/wxpython/gripts/

  1.                                             find
    

the index of the STC
that your pop-up came
from <= there was no
GetItemIndex in
FlexSizer. so I doubt I
can get the index of the
selected control. and I
have used
event.GetEventObject()
to get current stc
object. but there is
still statictext
control. so I am trying
continuously.

  1.                                             get
    

the editor and static
text pair for that index

  1.                                             remove
    

them from the lists,
self.texts and
self.editor

  1.                                             delete
    

them

                                Python list?  I think a dictionary

might be better/easier for this.

                                See attached.



                                  Werner

                                  To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

                                  or visit [http://groups.google.com/group/wxPython-users?hl=en](http://groups.google.com/group/wxPython-users?hl=en)
                      It works well. thank you for your advice all.

(Gadget/Steve, werner, Robin Dunn, Tobias
Weber, CM, Andrea Gavana, Steven Sproat, Tim
Roberts, grunculus)

                        Wonjun, Choi
              hello.



              I have a problem.



              when I add pythonSTC or fortranSTC to sizer, the

folding button is not working. Does anyone know the
reason?

      I am sorry. I forgot an event function.



              self.Bind(stc.EVT_STC_UPDATEUI, self.onUpdateUI)

              self.Bind(stc.EVT_STC_MARGINCLICK, self.onMarginClick)

              self.Bind(wx.EVT_KEY_DOWN, self.onKeyPressed)
      when I inserted the controls by below method, the controls

were appended strangely. Does anyone know why?

              self.Autosizer.Insert(1, self.text)

              self.Autosizer.Insert(1, self.editor)
  --

  To unsubscribe, send email to

wxPython-users+unsubscribe@googlegroups.com

  or visit [http://groups.google.com/group/wxPython-users?hl=en](http://groups.google.com/group/wxPython-users?hl=en)
Because both were inserted at position 1, so the 'first' becomes the

second and assuming that you are still following the previous
pattern, two cols, you need to insert the first at position 2 and
the second at position 3.

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en

actually I don’t understand sizer’s index pattern.

as you said. the index was (0, 1), (2, 3), (4, 5)…
and can I get the index of the selected stc? it seems like there is no function to get the index of the control in Sizer.

index = sizer.GetItemIndex(widget)

···

On 10/24/11 11:36 PM, 占쌍울옙占쏙옙 wrote:

actually I don't understand sizer's index pattern.
as you said. the index was (0, 1), (2, 3), (4, 5)...
and can I get the index of the selected stc? it seems like there is no
function to get the index of the control in Sizer.

--
Robin Dunn
Software Craftsman

it seems like there is no GetItemIndex function in FlexSizer or wx.Sizer.

···

2011/10/25 Robin Dunn robin@alldunn.com

On 10/24/11 11:36 PM, 최원준 wrote:

actually I don’t understand sizer’s index pattern.

as you said. the index was (0, 1), (2, 3), (4, 5)…

and can I get the index of the selected stc? it seems like there is no

function to get the index of the control in Sizer.

index = sizer.GetItemIndex(widget)

Robin Dunn

Software Craftsman

http://wxPython.org

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en

        > actually I don't understand sizer's index pattern.

        > as you said. the index was (0, 1), (2, 3), (4, 5)...

        > and can I get the index of the selected stc? it seems

like there is no

        > function to get the index of the control in Sizer.

        >

index = sizer.GetItemIndex(widget)

        --

        Robin Dunn

        Software Craftsman

        [http://wxPython.org](http://wxPython.org)




          --

          To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

          or visit [http://groups.google.com/group/wxPython-users?hl=en](http://groups.google.com/group/wxPython-users?hl=en)
  it seems like there is no GetItemIndex function in FlexSizer or

wx.Sizer.

there is. It is the part of the _core sizer:

def Sizer.GetItemIndex(self, item)

    Returns: int

Returns the index of the given *item* within the sizer. Does not

search recursivly. The item parameter can be either a window or a
sizer. An assertion is raised if the item is not found in the sizer

···

wxPython-users+unsubscribe@googlegroups.com
http://groups.google.com/group/wxPython-users?hl=en


-- --------------------------------------------------
Tobias Weber
CEO
The ROG Corporation GmbH
Donaustaufer Str. 200
93059 Regensburg
Tel: +49 941 4610 57 55
Fax: +49 941 4610 57 56
Geschäftsführer: Tobias Weber
Registergericht: Amtsgericht Regensburg - HRB 8954
UStID DE225905250 - Steuer-Nr.184/59359
--------------------------------------------------

www.roglink.com

index = self.GetParent().Autosizer.GetItemIndex(self)

AttributeError: ‘FlexGridSizer’ object has no attribute ‘GetItemIndex’

···

2011/10/25 Tobias Weber tobias.weber@roglink.net

Am 25.10.11 09:58, schrieb 최원준:

2011/10/25 Robin Dunn robin@alldunn.com

On 10/24/11 11:36 PM, 최원준 wrote:

        > actually I don't understand sizer's index pattern.

        > as you said. the index was (0, 1), (2, 3), (4, 5)...

        > and can I get the index of the selected stc? it seems

like there is no

        > function to get the index of the control in Sizer.

        >

index = sizer.GetItemIndex(widget)

        --

        Robin Dunn

        Software Craftsman

        [http://wxPython.org](http://wxPython.org)




          --

          To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

          or visit [http://groups.google.com/group/wxPython-users?hl=en](http://groups.google.com/group/wxPython-users?hl=en)
  it seems like there is no GetItemIndex function in FlexSizer or

wx.Sizer.

there is. It is the part of the _core sizer:

def Sizer.GetItemIndex(self, item)

    Returns: int

Returns the index of the given *item* within the sizer. Does not

search recursivly. The item parameter can be either a window or a
sizer. An assertion is raised if the item is not found in the sizer

  --

  To unsubscribe, send email to

wxPython-users+unsubscribe@googlegroups.com

  or visit [http://groups.google.com/group/wxPython-users?hl=en](http://groups.google.com/group/wxPython-users?hl=en)

-- --------------------------------------------------
Tobias Weber
CEO
The ROG Corporation GmbH
Donaustaufer Str. 200
93059 Regensburg
Tel: +49 941 4610 57 55
Fax: +49 941 4610 57 56
[www.roglink.com](http://www.roglink.com)

Geschäftsführer: Tobias Weber
Registergericht: Amtsgericht Regensburg - HRB 8954
UStID DE225905250 - Steuer-Nr.184/59359
--------------------------------------------------

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en

actually I don’t understand sizer’s index pattern.

as you said. the index was (0, 1), (2, 3), (4, 5)…

and can I get the index of the selected stc? it seems like there is no

function to get the index of the control in Sizer.

index = sizer.GetItemIndex(widget)

Robin Dunn

Software Craftsman

http://wxPython.org

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en

it seems like there is no GetItemIndex function in FlexSizer or wx.Sizer.

There is in 2.9, but not in 2.8, although writing your own is not particularly complicated.

I am impressed how you managed to stretch this thread to 100+ messages on an issue like this. I wonder what will happen when you really hit the difficult stuff.

Andrea.

“Imagination Is The Only Weapon In The War Against Reality.”
http://xoomer.alice.it/infinity77/

import PyQt4.QtGui

Traceback (most recent call last):

File “”, line 1, in

ImportError: No module named PyQt4.QtGui

import pygtk

Traceback (most recent call last):

File “”, line 1, in

ImportError: No module named pygtk

···

On 25 October 2011 09:58, 최원준 wrote:

2011/10/25 Robin Dunn robin@alldunn.com

On 10/24/11 11:36 PM, 최원준 wrote:

import wx

2011년 10월 25일 오후 5:14, Andrea Gavana andrea.gavana@gmail.com님의 말:

···

On 25 October 2011 09:58, 최원준 wrote:

2011/10/25 Robin Dunn robin@alldunn.com

On 10/24/11 11:36 PM, 최원준 wrote:

actually I don’t understand sizer’s index pattern.

as you said. the index was (0, 1), (2, 3), (4, 5)…

and can I get the index of the selected stc? it seems like there is no

function to get the index of the control in Sizer.

index = sizer.GetItemIndex(widget)

Robin Dunn

Software Craftsman

http://wxPython.org

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en

it seems like there is no GetItemIndex function in FlexSizer or wx.Sizer.

There is in 2.9, but not in 2.8, although writing your own is not particularly complicated.

I am impressed how you managed to stretch this thread to 100+ messages on an issue like this. I wonder what will happen when you really hit the difficult stuff.

Andrea.

“Imagination Is The Only Weapon In The War Against Reality.”
http://xoomer.alice.it/infinity77/

import PyQt4.QtGui

Traceback (most recent call last):

File “”, line 1, in

ImportError: No module named PyQt4.QtGui

import pygtk

Traceback (most recent call last):

File “”, line 1, in

ImportError: No module named pygtk

import wx

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en

Sorry, there is no one who knows about this. so I posted more than 100 messages.

2011년 10월 25일 오후 5:18, 최원준 wonjunchoi001@gmail.com님의 말:

2011년 10월 25일 오후 5:14, Andrea Gavana andrea.gavana@gmail.com님의 말:

actually I don’t understand sizer’s index pattern.

as you said. the index was (0, 1), (2, 3), (4, 5)…

and can I get the index of the selected stc? it seems like there is no

function to get the index of the control in Sizer.

index = sizer.GetItemIndex(widget)

Robin Dunn

Software Craftsman

http://wxPython.org

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en

it seems like there is no GetItemIndex function in FlexSizer or wx.Sizer.

There is in 2.9, but not in 2.8, although writing your own is not particularly complicated.

I am impressed how you managed to stretch this thread to 100+ messages on an issue like this. I wonder what will happen when you really hit the difficult stuff.

Andrea.

“Imagination Is The Only Weapon In The War Against Reality.”
http://xoomer.alice.it/infinity77/

import PyQt4.QtGui

Traceback (most recent call last):

File “”, line 1, in

ImportError: No module named PyQt4.QtGui

import pygtk

Traceback (most recent call last):

File “”, line 1, in

ImportError: No module named pygtk

import wx

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en

Sorry, there is no one who knows about this. so I posted more than 100 messages.

I didn’t install 2.9 version because it is not stable yet. so when it is stable, I will install it.

···

On 25 October 2011 09:58, 최원준 wrote:

2011/10/25 Robin Dunn robin@alldunn.com

On 10/24/11 11:36 PM, 최원준 wrote:

Hi,

2011년 10월 25일 오후 5:18, 최원준 wonjunchoi001@gmail.com님의 말:

2011년 10월 25일 오후 5:14, Andrea Gavana andrea.gavana@gmail.com님의 말:

actually I don’t understand sizer’s index pattern.

as you said. the index was (0, 1), (2, 3), (4, 5)…

and can I get the index of the selected stc? it seems like there is no

function to get the index of the control in Sizer.

index = sizer.GetItemIndex(widget)

Robin Dunn

Software Craftsman

http://wxPython.org

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en

it seems like there is no GetItemIndex function in FlexSizer or wx.Sizer.

There is in 2.9, but not in 2.8, although writing your own is not particularly complicated.

I am impressed how you managed to stretch this thread to 100+ messages on an issue like this. I wonder what will happen when you really hit the difficult stuff.

Andrea.

“Imagination Is The Only Weapon In The War Against Reality.”
http://xoomer.alice.it/infinity77/

import PyQt4.QtGui

Traceback (most recent call last):

File “”, line 1, in

ImportError: No module named PyQt4.QtGui

import pygtk

Traceback (most recent call last):

File “”, line 1, in

ImportError: No module named pygtk

import wx

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en

Sorry, there is no one who knows about this. so I posted more than 100 messages.

I didn’t install 2.9 version because it is not stable yet. so when it is stable, I will install it.

It is perfectly “stable”, I use it all the time in production code (although I’d kill the guy who suggested the modifications to the way sizers are handled :smiley: ). Here “stable” does not mean what you think you mean:

http://wiki.wxpython.org/ReleaseSeries

Andrea.

“Imagination Is The Only Weapon In The War Against Reality.”

http://xoomer.alice.it/infinity77/

import PyQt4.QtGui

Traceback (most recent call last):

File “”, line 1, in

ImportError: No module named PyQt4.QtGui

import pygtk

Traceback (most recent call last):

File “”, line 1, in

ImportError: No module named pygtk

···

2011/10/25 최원준 wonjunchoi001@gmail.com

On 25 October 2011 09:58, 최원준 wrote:

2011/10/25 Robin Dunn robin@alldunn.com

On 10/24/11 11:36 PM, 최원준 wrote:

import wx

2011占쏙옙 10占쏙옙 25占쏙옙 占쏙옙占쏙옙 5:18, 占쌍울옙占쏙옙 wonjunchoi001@gmail.com 占쏙옙
占쏙옙 占쏙옙:

        2011占쏙옙 10占쏙옙 25占쏙옙 占쏙옙占쏙옙 5:14, Andrea Gavana

andrea.gavana@gmail.com 占쏙옙
占쏙옙 占쏙옙:

                            > actually I don't understand sizer's

index pattern.

                            > as you said. the index was (0, 1),

(2, 3), (4, 5)…

                            > and can I get the index of the

selected stc? it seems like there is no

                            > function to get the index of the

control in Sizer.

                            >

index = sizer.GetItemIndex(widget)

                            --

                            Robin Dunn

                            Software Craftsman

                            [http://wxPython.org](http://wxPython.org)




                              --

                              To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

                              or visit [http://groups.google.com/group/wxPython-users?hl=en](http://groups.google.com/group/wxPython-users?hl=en)
                      it seems like there is no GetItemIndex

function in FlexSizer or wx.Sizer.

                  There is in 2.9, but not in 2.8, although

writing your own is not particularly complicated.

                  I am impressed how you managed to stretch this

thread to 100+ messages on an issue like this. I
wonder what will happen when you really hit the
difficult stuff.

              Andrea.



              "Imagination Is The Only Weapon In The War Against

Reality."

              [http://xoomer.alice.it/infinity77/](http://xoomer.alice.it/infinity77/)

import PyQt4.QtGui

Traceback (most recent call last):

                File "<interactive input>", line 1, in

ImportError: No module named PyQt4.QtGui

import pygtk

Traceback (most recent call last):

                  File "<interactive input>", line 1, in

ImportError: No module named pygtk

import wx

                  --

                  To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

                  or visit [http://groups.google.com/group/wxPython-users?hl=en](http://groups.google.com/group/wxPython-users?hl=en)
      Sorry, there is no one who knows about this. so I posted more

than 100 messages.

  I didn't install 2.9 version because it is not stable yet. so when

it is stable, I will install it.
Totally stable for me- Be aware that switching back and forth in a
wxPython verison is easy - so I do not see

any conerns or issues why you should not use 2.9
···

wxPython-users+unsubscribe@googlegroups.com
http://groups.google.com/group/wxPython-users?hl=en


-- --------------------------------------------------
Tobias Weber
CEO
The ROG Corporation GmbH
Donaustaufer Str. 200
93059 Regensburg
Tel: +49 941 4610 57 55
Fax: +49 941 4610 57 56
Geschäftsführer: Tobias Weber
Registergericht: Amtsgericht Regensburg - HRB 8954
UStID DE225905250 - Steuer-Nr.184/59359
--------------------------------------------------

www.roglink.com

      I didn't install 2.9 version because it is not stable yet. so

when it is stable, I will install it.

wonjunchoi, it might be good that you start a new thread at some

point. Because your original question of this thread has been
answered a long time ago.

I am trying to follow your problem, but the way you keep giving a

little information here and there is making this pretty difficult
and time consuming. Maybe it is time again for a little sample
application with a detailed description of what you can’t make to
work.

      It is perfectly "stable", I use it all the time in

production code (although I’d kill the guy who suggested the
modifications to the way sizers are handled :smiley: ).

You mean the change in how the spare space is distributed?

Here “stable” does not mean what you think you mean:

http://wiki.wxpython.org/ReleaseSeries

IIRC, he is on Linux and 2.9 doesn't work that great on there - at

least for me.

Werner
···

On 10/25/2011 11:05 AM, Andrea Gavana wrote:

Sorry, there is no one who knows about this. so I posted more than 100

messages.

Self-serving Bias

A self-serving bias occurs when people attribute their successes to internal or personal factors but attribute their failures to situational factors beyond their control. The self-serving bias can be seen in the common human tendency to take credit for success but to deny responsibility for failure.[1]

Here is the implementation of the method. I expect that it will work in
2.8 as well, but I have not tested it:

        def GetItemIndex(self, item):
            """
            Returns the index of the given *item* within the sizer. Does not
            search recursively. The *item* parameter can be either a window
            or a sizer. An assertion is raised if the item is not found in
            the sizer.
            """
            sItem = self.GetItem(item)
            assert sItem is not None, "Item not found in the sizer."
            allItems = self.Children
            idx = 0
            for i in allItems:
                if i.this == sItem.this:
                    break
                idx += 1
            return idx

http://trac.wxwidgets.org/browser/wxPython/trunk/src/_sizers.i#L985

···

On 10/25/11 1:14 AM, Andrea Gavana wrote:

On 25 October 2011 09:58, 占쌍울옙占쏙옙 wrote:

    it seems like there is no GetItemIndex function in FlexSizer or
    wx.Sizer.

There is in 2.9, but not in 2.8, although writing your own is not
particularly complicated.

--
Robin Dunn
Software Craftsman

+1, also see RTFM.

···

wxPython-users+unsubscribe@googlegroups.com
http://groups.google.com/group/wxPython-users?hl=en

Hi Werner,

...
      I didn't install 2.9 version because it is not stable yet. so

when it is stable, I will install it.

wonjunchoi, it might be good that you start a new thread at some

point. Because your original question of this thread has been
answered a long time ago.

I am trying to follow your problem, but the way you keep giving a

little information here and there is making this pretty difficult
and time consuming. Maybe it is time again for a little sample
application with a detailed description of what you can’t make to
work.

      It is perfectly "stable", I use it all the time in

production code (although I’d kill the guy who suggested the
modifications to the way sizers are handled :smiley: ).

You mean the change in how the spare space is distributed?

Correct, I had huge headaches trying to figure out how to maintain 2 custom controls I have written supporting both 2.8 and 2.9. Not to mention the self.GetEventHandler().ProcessEvent() vs. self.ProcessWindowEvent() issue, which I pray will not wreak too much havoc to AGW, or I’ll have to go through the whole library and apply conditional switches all over the place to support 2.8 and 2.9 at the same time.

Here “stable” does not mean what you think you mean:

http://wiki.wxpython.org/ReleaseSeries

IIRC, he is on Linux and 2.9 doesn't work that great on there - at

least for me.

This I don’t know, I don’t use Linux, but you should make sure Robin and the wxWidgets devs are aware of the issues (if you haven’t already done it, I mean).

Andrea.

“Imagination Is The Only Weapon In The War Against Reality.”
http://xoomer.alice.it/infinity77/

···

On 25 October 2011 13:43, werner wrote:

On 10/25/2011 11:05 AM, Andrea Gavana wrote:

self.GetEventHandler().ProcessEvent() should be the same as self.ProcessWindowEvent(), and the former should still be doable in 2.9, is that not the case? The thing that was changed is that it is no longer allowed to call self.ProcessEvent when self is a window class, because that bypasses any pushed event handlers or validators on the window.

One other related change that comes to mind is that in 2.9 you need to pop any pushed event handlers before the window is destroyed as they will no longer take ownership of those event handler objects.

···

On 10/25/11 12:39 PM, Andrea Gavana wrote:

Correct, I had huge headaches trying to figure out how to maintain 2
custom controls I have written supporting both 2.8 and 2.9. Not to
mention the self.GetEventHandler().ProcessEvent() vs.
self.ProcessWindowEvent() issue, which I pray will not wreak too much
havoc to AGW, or I'll have to go through the whole library and apply
conditional switches all over the place to support 2.8 and 2.9 at the
same time.

--
Robin Dunn
Software Craftsman

there was already issue about install wxpython 2.9 on ubuntu 11.04. I posted it a several days ago.

http://groups.google.com/group/wxpython-users/browse_thread/thread/bc41c173048c5804/22bc969ce0736db9?lnk=gst&q=building+fail+2.9.2.4+on+ubuntu+11.04#22bc969ce0736db9

···

2011/10/26 Robin Dunn robin@alldunn.com

On 10/25/11 12:39 PM, Andrea Gavana wrote:

Correct, I had huge headaches trying to figure out how to maintain 2

custom controls I have written supporting both 2.8 and 2.9. Not to

mention the self.GetEventHandler().ProcessEvent() vs.

self.ProcessWindowEvent() issue, which I pray will not wreak too much

havoc to AGW, or I’ll have to go through the whole library and apply

conditional switches all over the place to support 2.8 and 2.9 at the

same time.

self.GetEventHandler().ProcessEvent() should be the same as self.ProcessWindowEvent(), and the former should still be doable in 2.9, is that not the case? The thing that was changed is that it is no longer allowed to call self.ProcessEvent when self is a window class, because that bypasses any pushed event handlers or validators on the window.

One other related change that comes to mind is that in 2.9 you need to pop any pushed event handlers before the window is destroyed as they will no longer take ownership of those event handler objects.

Robin Dunn

Software Craftsman

http://wxPython.org

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en

where can I fine the document for the method GetItemIndex
I couldn’t find any document for this.

···

2011/10/26 최원준 wonjunchoi001@gmail.com

2011/10/26 Robin Dunn robin@alldunn.com

On 10/25/11 12:39 PM, Andrea Gavana wrote:

Correct, I had huge headaches trying to figure out how to maintain 2

custom controls I have written supporting both 2.8 and 2.9. Not to

mention the self.GetEventHandler().ProcessEvent() vs.

self.ProcessWindowEvent() issue, which I pray will not wreak too much

havoc to AGW, or I’ll have to go through the whole library and apply

conditional switches all over the place to support 2.8 and 2.9 at the

same time.

self.GetEventHandler().ProcessEvent() should be the same as self.ProcessWindowEvent(), and the former should still be doable in 2.9, is that not the case? The thing that was changed is that it is no longer allowed to call self.ProcessEvent when self is a window class, because that bypasses any pushed event handlers or validators on the window.

One other related change that comes to mind is that in 2.9 you need to pop any pushed event handlers before the window is destroyed as they will no longer take ownership of those event handler objects.

Robin Dunn

Software Craftsman

http://wxPython.org

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en

there was already issue about install wxpython 2.9 on ubuntu 11.04. I posted it a several days ago.

http://groups.google.com/group/wxpython-users/browse_thread/thread/bc41c173048c5804/22bc969ce0736db9?lnk=gst&q=building+fail+2.9.2.4+on+ubuntu+11.04#22bc969ce0736db9

+1, also see RTFM.

2011년 10월 26일 오전 8:55, 최원준 wonjunchoi001@gmail.com님의 말:

Correct, I had huge headaches trying to figure out how to maintain 2

custom controls I have written supporting both 2.8 and 2.9. Not to

mention the self.GetEventHandler().ProcessEvent() vs.

self.ProcessWindowEvent() issue, which I pray will not wreak too much

havoc to AGW, or I’ll have to go through the whole library and apply

conditional switches all over the place to support 2.8 and 2.9 at the

same time.

self.GetEventHandler().ProcessEvent() should be the same as self.ProcessWindowEvent(), and the former should still be doable in 2.9, is that not the case? The thing that was changed is that it is no longer allowed to call self.ProcessEvent when self is a window class, because that bypasses any pushed event handlers or validators on the window.

One other related change that comes to mind is that in 2.9 you need to pop any pushed event handlers before the window is destroyed as they will no longer take ownership of those event handler objects.

Robin Dunn

Software Craftsman

http://wxPython.org

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en

there was already issue about install wxpython 2.9 on ubuntu 11.04. I posted it a several days ago.

http://groups.google.com/group/wxpython-users/browse_thread/thread/bc41c173048c5804/22bc969ce0736db9?lnk=gst&q=building+fail+2.9.2.4+on+ubuntu+11.04#22bc969ce0736db9

+1, also see RTFM.

where can I fine the document for the method GetItemIndex
I couldn’t find any document for this.

      >I didn't install 2.9 version because it is not stable yet. so

when it is stable, I will install it.

>wonjunchoi, it might be good that you start a new thread at some

point. Because your original question of this thread has been
answered a >long time ago.

>I am trying to follow your problem, but the way you keep giving a

little information here and there is making this pretty difficult
and time >consuming. Maybe it is time again for a little sample
application with a detailed description of what you can’t make to
work.

      >It is perfectly "stable", I use it all the time in

production code (although I’d kill the guy who suggested the
modifications to the way sizers are >handled :smiley: ).

You mean the change in how the spare space is distributed?
==> you may can understand why I decided like this from the thread :
http://groups.google.com/group/wxpython-users/browse_thread/thread/bc41c173048c5804/22bc969ce0736db9?lnk=gst&q=building+fail+2.9.2.4+on+ubuntu+11.04#22bc969ce0736db9

Here “stable” does not mean what you think you mean:

>http://wiki.wxpython.org/ReleaseSeries

>IIRC, he is on Linux and 2.9 doesn't work that great on there - at

least for me.
==> yes, that is corret!

···

2011/10/26 최원준 wonjunchoi001@gmail.com

2011/10/26 Robin Dunn robin@alldunn.com

On 10/25/11 12:39 PM, Andrea Gavana wrote:

I am trying to test this example.

addcontrol.py (4.44 KB)