Christian K. | 4 Jul 09:51

SetIcon does not show any effect


Hi,

in general SetIcon works as expected without exception. However, when I run the
whole MainLoop in a subthread, regardless of calling SetIcon or not, all windows
have the 'white empty window' icon. Is this a bug?

Regards, Christian

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To post to this group, send email to wxPython-users <at> googlegroups.com
To unsubscribe from this group, send email to wxPython-users+unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/wxPython-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Zeb | 4 Jul 04:27

agw.aui LoadPerspective problem


In my program, I write the following 2 methods to add/remove the
notebook's pages.

	def  AddPanel(self, panel):
		self._mainNotebook.AddPage(panel, panel.GetLabel(), False)
		panel.Show()
		self._mainNotebook.Update()

	def RemovePanel(self, idx):
		page = self._mainNotebook.GetPage(idx)
		page.Hide()
		self._mainNotebook.RemovePage(idx)
		self._mainNotebook.Update()

When the program started, I create many panels and call 'AddPanel' to
add all panels to the notebook.
Then I call 'RemovePanel' to hide one(Le'ts call it panelA) and call
notebook's 'SavePerspective', and exit the program.

When I start the program again, call notebook's 'LoadPerspective',
everything is OK. The panelA is not in the notebook also.

But, when I called:
self._mainNotebook.GetPageIndex(panelA):
The return value is not wx.NOT_FOUND.

Is this a bug?

Thank you
(Continue reading)

ArtProvider and IconBundle, plus general style questions


Hi all,
after looking at wxWidgets docs on wxArtProvider here
http://docs.wxwidgets.org/trunk/classwx_art_provider.html#0bb64950e85d0cc36977c01f864fdef8
I see that there exists a CreateIconBundle method that can be
overridden to provide custom icon bundles. Unfortunately I could not
find such thing in wxPython, only CreateBitmap and CreateIcon.
So the question is - is there a native way to get wx.IconBundle from
wx.ArtProvider in wxPython (on MSW at least)? The only alternative
coming to my mind would be to tweak the overridden CreateIcon method
to return either wx.Icon or wx.IconBundle depending on supplied artid.

And since I'm asking about ArtProvider, I would also like to ask a
more general style question. Since I'm creating the custom
ArtProvider, it involves creating custom ArtID's (as constants). These
ArtID's must be usable inside my package itself, but also from outside
of the package (to be able to use them when calling the custom
ArtProvider). Where should I better store the definitions of my custom
ArtID's from the convenience/style point of view? What I'm doing now
is putting them in a separate module called id, and then using "from
id import *" from inside the package and "from mypackage import id"
from outside of the package. Actually this question is interesting for
me not only for wx, but for Python in general (where to better store
package constants).

Thanks for help,
Pavlo.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To post to this group, send email to wxPython-users <at> googlegroups.com
(Continue reading)

Jair Gaxiola | 3 Jul 21:36

Re: Get position richTextCtrl



On Fri, Jul 3, 2009 at 10:10 AM, <ricercar <at> infinito.it> wrote:

At 02.55 03/07/2009 -0500, you wrote:
>Hi,
>
>I need to get position of "x" and "y"  of content at richTextCtrl, I
>tested with GetPosition,GetLasPosition.
>
>any suggestions?

Probably you need to pass position obtained by the previous functions
to PositionToXY()

No, I need to get last position (x,y) of the contents of a text control and insert an image here


--
SIN ETIQUETAS.[ PUNTO ]
http://jyr.tumblr.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To post to this group, send email to wxPython-users <at> googlegroups.com
To unsubscribe from this group, send email to wxPython-users+unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/wxPython-users?hl=en
-~----------~----~----~----~------~----~------~--~---

ricercar | 3 Jul 17:10
Favicon

Re: Get position richTextCtrl


At 02.55 03/07/2009 -0500, you wrote:
>Hi,
>
>I need to get position of "x" and "y"  of content at richTextCtrl, I 
>tested with GetPosition,GetLasPosition.
>
>any suggestions?

Probably you need to pass position obtained by the previous functions 
to PositionToXY()

best, Enrico 

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To post to this group, send email to wxPython-users <at> googlegroups.com
To unsubscribe from this group, send email to wxPython-users+unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/wxPython-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Favicon

First menu item has no image


I am creating a menu and assigning images to menu items, sometime
first item in menu doesn't display any image, I am not able to find
the reason. I have tried to make a simple stand alone example and
below is the code which does demonstrates the problem on my machine.
I am using windows XP, wx 2.8.7.1 (msw-unicode)'

    import wx

    def getBmp():
        bmp = wx.EmptyBitmap(16,16)
        return bmp

    class MyFrame(wx.Frame):
        def __init__(self):
            wx.Frame.__init__(self, style=wx.DEFAULT_FRAME_STYLE,
parent=None)

            self.SetTitle("why New has no image?")

            menuBar = wx.MenuBar()
            fileMenu=wx.Menu()
            item = fileMenu.Append(wx.ID_NEW, "New")
            item.SetBitmap(getBmp())
            item = fileMenu.Append(wx.ID_OPEN, "Open")
            item.SetBitmap(getBmp())
            item = fileMenu.Append(wx.ID_SAVE, "Save")
            item.SetBitmap(getBmp())
            menuBar.Append(fileMenu, "File")
            self.SetMenuBar(menuBar)

    app = wx.PySimpleApp()
    frame=MyFrame()
    frame.Show()
    app.SetTopWindow(frame)
    app.MainLoop()

So are you able to see the problem and what could be the reason for
it?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To post to this group, send email to wxPython-users <at> googlegroups.com
To unsubscribe from this group, send email to wxPython-users+unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/wxPython-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Jair Gaxiola | 3 Jul 09:53

Get position richTextCtrl

Hi,

I need to get position of "x" and "y"  of content at richTextCtrl, I tested with GetPosition,GetLasPosition.

any suggestions?

--
SIN ETIQUETAS.[ PUNTO ]
http://jyr.tumblr.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To post to this group, send email to wxPython-users <at> googlegroups.com
To unsubscribe from this group, send email to wxPython-users+unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/wxPython-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Brent W. York | 2 Jul 19:48

Vista 64-bit Issue?


I've recently got a new machine running 64-bit Vista Ultimate. I
installed Python 2.6 and wxPython 2.8 (wxPython2.8-win64-
unicode-2.8.10.1-py26.exe). When I run a simple test program, I get
the following:

Traceback (most recent call last):
  File "C:\Users\byork\Desktop\Python 25 Projects\Test.py", line 1, in
<module>
    import wx
  File "C:\Projects\Python\Python26\lib\site-packages\wx-2.8-msw-
unicode\wx\__init__.py", line 45, in <module>
    from wx._core import *
  File "C:\Projects\Python\Python26\lib\site-packages\wx-2.8-msw-
unicode\wx\_core.py", line 4, in <module>
    import _core_
ImportError: DLL load failed: %1 is not a valid Win32 application.

Any idea what could be causing this?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To post to this group, send email to wxPython-users <at> googlegroups.com
To unsubscribe from this group, send email to wxPython-users+unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/wxPython-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Dave Angel | 2 Jul 18:27

Oddity in the wxPython download page


Hi.

When I go to http://wxpython.org/download.php , the page says "The links 
below are for the binaries and source for wxPython *2.8.10.1"

*Good, I was trying to upgrade from 2.8.9.2

But when I scan through the page (as I did in April), for Microsoft 
Windows, wxPython runtime, Python 2.6, win32-unicode, and click on that 
link, I get to page:

http://sourceforge.net/projects/wxpython/files/

and that page lists only versions up to 2.7.1

If I instead right-click the link and "Copy URL"  I get 
http://downloads.sourceforge.net/wxpython/wxPython2.8-win32-unicode-2.8.10.1-py26.exe
in the clipboard, and I can paste that into my address bar to download it.

So I've got 2.8.10.1  (sha1: 6602fb05272b7847576128313aacc447ffc107f6), 
and am happy.  But if there's something wrong with that page, I figured 
somebody needed to know.

I'm using Firefox 3.0.11 on Windows XP Sp3.

DaveA

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To post to this group, send email to wxPython-users <at> googlegroups.com
To unsubscribe from this group, send email to wxPython-users+unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/wxPython-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Shoola | 2 Jul 18:06

how to sort ListView by click on its column header?


I have an app with wx.ListView object on it, containing 4 columns.

I'd like to have the table sorted when a user clicks the column title.

    def OnListView1ListColClick(self, event):
        col = event.GetColumn()
        self.sort_results(col)

    def sort_results(self, col):

        ... ok, now what?

i found self.listView1.SortItems(self.sorttable),
but i can't find documentation on how to use it,
and how to apply it to a particular column.

Thanks!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To post to this group, send email to wxPython-users <at> googlegroups.com
To unsubscribe from this group, send email to wxPython-users+unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/wxPython-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Daivd T | 2 Jul 17:45

Where is wxPython 2.8.x?


On the downloads page there are links to the latest wxpython 2.8
binaries. Unfortunately, sourceforge has not had an update since 2007.
These links are broken. I do see that the source repository has moved,
but where are the prebuilt binaries? Thanks for the support.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To post to this group, send email to wxPython-users <at> googlegroups.com
To unsubscribe from this group, send email to wxPython-users+unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/wxPython-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Gmane