[wxlua-users] How to check type when iterating over wxWindowList

2012-06-11 Thread Paul K
Hi All, I have the same problem as described here (https://groups.google.com/forum/?fromgroups#!topic/wxpython-users/T78KWU6vS_A): when tabs in AuiNotebook are moved using drag and drop, their order changes on the screen, but not internally and I'd like to enumerate them in the right order. I can

Re: [wxlua-users] wxLua and UTF8 encoding on Windows

2012-06-11 Thread Paul K
Hi John, > Can you paste this into the editor from Firefox? It works fine in > Linux with the Unicode build. > Sanskrit: काचं शक्नोम्यत्तुम् । नोपहिनस्ति माम् ॥ I don't have access to a Linux machine, but tried on MacOS (with the build I built from sources, so can't vouch for its quality) and I

Re: [wxlua-users] wxLua and UTF8 encoding on Windows

2012-06-11 Thread John Labenski
On Mon, Jun 11, 2012 at 3:26 PM, Paul K wrote: > Hi All, > > I've been working on a wxLua-based IDE > (https://github.com/pkulchenko/ZeroBraneStudio/) and have a bug opened > about dealing with utf-8 encoding > (https://github.com/pkulchenko/ZeroBraneStudio/issues/7). I've > captured relevant info

Re: [wxlua-users] wxCalendarCtrl

2012-06-11 Thread John Labenski
On Mon, Jun 11, 2012 at 1:53 PM, Andre Arpin wrote: > Andre Arpin writes: > >> cal:Connect(wx.wxID_ANY, wx.wxEVT_CALENDAR_DAY_CHANGED, >> function(event) >>     dt = event:GetDate() > > problem is that event:GetDate() is not cal:GetDate() > but a temporary wxDateTime() the code should probably be

[wxlua-users] wxLua and UTF8 encoding on Windows

2012-06-11 Thread Paul K
Hi All, I've been working on a wxLua-based IDE (https://github.com/pkulchenko/ZeroBraneStudio/) and have a bug opened about dealing with utf-8 encoding (https://github.com/pkulchenko/ZeroBraneStudio/issues/7). I've captured relevant information in the ticket; to summarize, I seem to be setting cor

Re: [wxlua-users] wxCalendarCtrl

2012-06-11 Thread Andre Arpin
Andre Arpin writes: > cal:Connect(wx.wxID_ANY, wx.wxEVT_CALENDAR_DAY_CHANGED, > function(event) > dt = event:GetDate() problem is that event:GetDate() is not cal:GetDate() but a temporary wxDateTime() the code should probably be dt = wx.wxDateTime(event:GetDate().JDN) but Houston we ha

Re: [wxlua-users] wxCalendarCtrl

2012-06-11 Thread Andre Arpin
Here is a simpler example: click on show change the date click on show again - frame = wx.wxFrame( wx.NULL, wx.wxID_ANY, "Calendar") panel = wx.wxPanel(frame, wx.wxID_ANY) cal = wx.wxCalendarCtrl(panel,wx.wxID_ANY, wx.wxDefaultDateTime, wx.wxD

Re: [wxlua-users] wxCalendarCtrl

2012-06-11 Thread John Labenski
On Fri, Jun 8, 2012 at 2:10 AM, Блажнов Валерий wrote: > Please, see the test attached. Change the date, press "OK" and get broken > date. I don't have an unrar program on Linux. Can you simply post the code (it should be short) or zip it. Thanks, John --

Re: [wxlua-users] Back to ParseDate

2012-06-11 Thread John Labenski
On Sat, Jun 9, 2012 at 10:25 AM, Andre Arpin wrote: > I am having a hard time understanding the use of iterator in wxlua. > > I guess an iterator is created by wxString::const_iterator end() or > wxString::const_iterator begin() for wxString which would be coded > wx.wxString(str):end() but end is