You can subscribe to this list here.
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(60) |
Jul
(35) |
Aug
(32) |
Sep
(5) |
Oct
(5) |
Nov
(58) |
Dec
(34) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
(114) |
Feb
(184) |
Mar
(153) |
Apr
(90) |
May
(153) |
Jun
(59) |
Jul
(24) |
Aug
(43) |
Sep
(17) |
Oct
(34) |
Nov
(11) |
Dec
(204) |
2007 |
Jan
(84) |
Feb
(119) |
Mar
(38) |
Apr
(28) |
May
(52) |
Jun
(105) |
Jul
(64) |
Aug
(67) |
Sep
(14) |
Oct
(3) |
Nov
(28) |
Dec
(55) |
2008 |
Jan
(228) |
Feb
(55) |
Mar
(30) |
Apr
(30) |
May
(15) |
Jun
(20) |
Jul
(12) |
Aug
(3) |
Sep
(13) |
Oct
(54) |
Nov
(35) |
Dec
(35) |
2009 |
Jan
(19) |
Feb
(20) |
Mar
(34) |
Apr
(4) |
May
(60) |
Jun
(25) |
Jul
(16) |
Aug
(51) |
Sep
(19) |
Oct
(62) |
Nov
(21) |
Dec
(12) |
2010 |
Jan
(1) |
Feb
|
Mar
(4) |
Apr
(12) |
May
(23) |
Jun
(13) |
Jul
(1) |
Aug
(40) |
Sep
(18) |
Oct
(21) |
Nov
(26) |
Dec
(34) |
2011 |
Jan
(17) |
Feb
(23) |
Mar
(1) |
Apr
(10) |
May
(1) |
Jun
(5) |
Jul
(1) |
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
(43) |
2012 |
Jan
(5) |
Feb
(19) |
Mar
(6) |
Apr
(24) |
May
(39) |
Jun
(83) |
Jul
(29) |
Aug
(36) |
Sep
(64) |
Oct
(55) |
Nov
(12) |
Dec
(7) |
2013 |
Jan
(17) |
Feb
(10) |
Mar
(37) |
Apr
(27) |
May
(13) |
Jun
(9) |
Jul
(7) |
Aug
(61) |
Sep
(23) |
Oct
(23) |
Nov
(30) |
Dec
(16) |
2014 |
Jan
(23) |
Feb
(13) |
Mar
(9) |
Apr
(17) |
May
(2) |
Jun
(11) |
Jul
(2) |
Aug
|
Sep
(9) |
Oct
(24) |
Nov
(2) |
Dec
(14) |
2015 |
Jan
(6) |
Feb
(4) |
Mar
(17) |
Apr
|
May
(7) |
Jun
(3) |
Jul
|
Aug
|
Sep
(2) |
Oct
(21) |
Nov
(6) |
Dec
(2) |
2016 |
Jan
(4) |
Feb
(2) |
Mar
(7) |
Apr
(3) |
May
(11) |
Jun
(6) |
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2017 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2018 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
|
Feb
|
Mar
(6) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2022 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
(4) |
Dec
|
2023 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(8) |
Nov
|
Dec
|
2024 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: klaas.holwerda <ng...@kl...> - 2012-06-13 17:01:08
|
Hi, For wxstedit the wxWidgets_DEBUGFLAG is empty even if wxWidgets_USE_DEBUG is ON. So it always comes out as: wxstedit-wx29gtk2u-1.6.0 But maybe that is wanted?? At least in wxWidgets 2.9.3 library names always come out without the "d", independent of debug or not version. I myself stick to the old way for wxart2d, but i think in general on Linux indeed library name stays the same, independent of debug or not info. It would still be nice to have the same naming scheme in wxLua. Using something like this I think, WXLIKE_LIBRARY_NAMES( wxStEditLib wxstedit "${wxStEdit_VERSION}") This name is handy to have. I do use wxLua and wxStedit after installing them (why no headers?). But for wxstedit, something is taken from here, where I compiled it: wxStEdit_ROOT_DIR = /home /klaas/soft/usr/local/soft/wxstedit But my install prefix is this: BUILD_INSTALL_PREFIX = /home/klaas/soft/usr/local This line was needed to make it find the right headers of some things in lua, which I can not install in "/usr/local". INCLUDE_DIRECTORIES( "/home /klaas/soft/usr/local/include" ) /home/klaas/soft/wxLua/modules/lua/src/luaconf.h:275:31: error: readline/readline.h: No such file or directory Do not know how this should be fixed using prefix something?? Next is worse, I can not use media in wxwidgets, so the next I do not have: libwx_gtk2u_media-2.9.a How can I easily/normally disable this for wxLua? make[2]: *** No rule to make target `/thales/thales_localdata/db348/soft/usr/local/lib/libwx_gtk2u_media-2.9.a', needed by `modules/wxlua/libwxLuaLib.so'. Stop. Removed media in the next two lines: set(wxWidgets_COMPONENTS xrc xml net media propgrid richtext aui stc html adv core base) # minimal set for static lib/dll set(wxLuaBind_ALL_COMPONENTS gl stc xrc richtext html media aui adv core xml net base ) Also I was fooled by old stedit headers in /usr/local/include/wx/stdedit, they are not installed by wxstedit "make install" Maybe install them relative to here?? /usr/local/include/wx-2.9 I use things like: /usr/local/include/wxart2d-1.2/ Same for wxLua, also headers are not installed. Now I understand that I need to find it from the place where it is compiled. And I do require the user to set the path/vars WXLUA and WXSTEDIT to find it. I still wonder what is the right approach?? Normally I just need to install libraries and devel versions of it on Linux, in order to use them with headers. That is how wxWidgets deals with it also. For wxStedit, that looks oke to do. But for wxLua, something extra would be need to find the bindings. ( I would say/usr/local/share/wxlua/ ) I do this, which is I think CMake like. Maybe it would be oke for wxLua also. 10:05:45 509> pwd / usr/local/share/wxart2d 10:03:31 507> ls -R .: FindwxArt2D.cmake luawraps UsewxArt2D.cmake wxArt2DConfig.cmake wxart2dMacros.cmake ./luawraps: src ./luawraps/src: wxart2d_datatypes.lua At last: I had to add #include "wx/progdlg.h" here: #if wxUSE_PROGRESSDLG&& wxLUA_USE_wxProgressDialog #include "wx/progdlg.h" #include "wx/generic/progdlgg.h" #endif // wxUSE_PROGRESSDLG&& wxLUA_USE_wxProgressDialog And I need to compile wxWidgest with -fPIC again (something to do with shared libraries in lua, see mailinglist archive): make CXXFLAGS=-fPIC CFLAGS=-fPIC Hope it helps. Somehow it feels easier than the first time, also on windows. Thanks, Klaas On 13-6-2012 6:19, John Labenski wrote: > On Tue, Jun 12, 2012 at 3:24 PM, klaas.holwerda<ng...@kl...> wrote: >> Busy making wxLua compile on Centos 64but, in general same issues as found with Ubuntu. > It should compile without a problem in Centos as I use RHEL6 regularly > without any problems. I just built it yesterday. Can you please post > some of the errors? > >> For wxstedit using Cmake, i think you should add this line in its CmakeLists file: >> >> set (LIBRARY_OUTPUT_PATH ${wxStEdit_BINARY_DIR}/lib ) >> >> This makes in generate the library in there on windows using Debug/Release as subdir, on Unix in there directly. >> Currently it is placed directly in the top dir, while "make install" expects it in the lib directory, which i think is the right one. > This sounds good. I currently use a higher level CMakeLists.txt that > includes the wxLua and some other projects' CMakeLists.txt to have the > binaries put in the same place for convenience so I never see what > happens by default. > > set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/bin) > set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/bin) > set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/bin) > > Regards, > John > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > wxlua-users mailing list > wxl...@li... > https://lists.sourceforge.net/lists/listinfo/wxlua-users > |
From: Andre A. <ar...@ki...> - 2012-06-13 12:47:20
|
Блажнов Валерий <vblazhnov@...> writes: > > Better late than never ) - ZIP file is attached. > Please read other posts. John solve the problem. Andre |
From: Блажнов В. <vbl...@ya...> - 2012-06-13 07:53:20
|
Better late than never ) - ZIP file is attached. 11.06.2012, 08:19, "John Labenski" <jla...@gm...>: > On Fri, Jun 8, 2012 at 2:10 AM, Блажнов Валерий <vbl...@ya...> 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 > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > wxlua-users mailing list > wxl...@li... > https://lists.sourceforge.net/lists/listinfo/wxlua-users |
From: John L. <jla...@gm...> - 2012-06-13 04:19:24
|
On Tue, Jun 12, 2012 at 3:24 PM, klaas.holwerda <ng...@kl...> wrote: > > Busy making wxLua compile on Centos 64but, in general same issues as found with Ubuntu. It should compile without a problem in Centos as I use RHEL6 regularly without any problems. I just built it yesterday. Can you please post some of the errors? > For wxstedit using Cmake, i think you should add this line in its CmakeLists file: > > set (LIBRARY_OUTPUT_PATH ${wxStEdit_BINARY_DIR}/lib ) > > This makes in generate the library in there on windows using Debug/Release as subdir, on Unix in there directly. > Currently it is placed directly in the top dir, while "make install" expects it in the lib directory, which i think is the right one. This sounds good. I currently use a higher level CMakeLists.txt that includes the wxLua and some other projects' CMakeLists.txt to have the binaries put in the same place for convenience so I never see what happens by default. set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/bin) set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/bin) set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/bin) Regards, John |
From: John L. <jla...@gm...> - 2012-06-13 03:57:13
|
On Tue, Jun 12, 2012 at 2:26 AM, Paul K <pau...@ya...> wrote: > > 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. Use a unique wxWindow ID or wxWindow::Get/SetName() to give each notebook page a unique name so you can find the window no matter what. You can also use wxWindow::FindWindowById/Name(). Doing this should be the cleanest solution since you will definitely know what window you're getting. > I can get the list of children for my notebook > (notebook:GetChildren()) and can enumerate those using > GetFirst()/GetNext() and then get their target using GetData(), but > all their targets are of wxWindow type. How do I know which one is > AuiTabCtrl and how do I cast it to AuiTabCtrl to call GetPage()? Here's how to get information about what an object is and how to cast wxObject derived classes up and down their class hierarchy. The wxClassInfo is may not be right for all classes and this function only works for wxObject derived classes, but it will work for all major classes. You can also just call Lua's tostring() function to get the object type as string name. NOTE! The integer number is NOT fixed between versions, but will be constant within a single run. Here's some code run in the wxLuaEdit console to show some of the possibilities and what works and what doesn't. f = wx.wxFrame(wx.NULL, -1, "Hello") w = wx.wxWindow(f, -1) f:Show(true) c = wx.wxComboBox(w, -1) ci = c:GetClassInfo() -- from wxObject print(ci) userdata: 0x161d918 [wxClassInfo(0x7f33d2cf8b40, 23)] print(ci:GetClassName()) wxComboBox print(tostring(c)) userdata: 0x161b368 [wxComboBox(0x1614c00, 134)] cw = c:DynamicCast("wxWindow") print(cw) userdata: 0x16273f8 [wxWindow(0x1614c00, 368)] ciw = ci:DynamicCast("wxWindow") Error: Lua: Error while running chunk [string "wxLuaShell"]:1: wxLua: Unable to call an unknown method 'DynamicCast' on a 'wxClassInfo' type. stack traceback: [C]: ? [string "wxLuaShell"]:1: in main chunk c_from_win = cw:DynamicCast("wxComboBox") print(c_from_win) userdata: 0x161b368 [wxComboBox(0x1614c00, 134)] dialog_from_combobox = cw:DynamicCast("wxDialog") Error: Lua: Error while running chunk [string "wxLuaShell"]:1: wxLua: wxObject::DynamicCast() Unable to cast a 'wxComboBox' to a 'wxDialog' with wxClassInfo 'wxDialog'. Function called: 'DynamicCast(wxWindow, string)' 01. wxObject::DynamicCast(wxObject(self), string) stack traceback: [C]: in function 'DynamicCast' [string "wxLuaShell"]:1: in main chunk Hope this helps, John |
From: klaas.holwerda <ng...@kl...> - 2012-06-12 19:24:48
|
Hi John, Busy making wxLua compile on Centos 64but, in general same issues as found with Ubuntu. For wxstedit using Cmake, i think you should add this line in its CmakeLists file: set (LIBRARY_OUTPUT_PATH ${wxStEdit_BINARY_DIR}/lib ) This makes in generate the library in there on windows using Debug/Release as subdir, on Unix in there directly. Currently it is placed directly in the top dir, while "make install" expects it in the lib directory, which i think is the right one. Regards, Klaas |
From: John L. <jla...@gm...> - 2012-06-12 16:11:19
|
On Tue, Jun 12, 2012 at 12:58 AM, Paul K <pau...@ya...> wrote: > 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 only > got question marks and some special characters. On Windows I just get > question marks. I just tried it in MSW with Unicode and ANSI builds, running the wxLua editor the Sanskrit characters show up fine in the Unicode build and as ??? in the ANSI build. So I will have to provide Unicode binaries then. Regards, John |
From: Paul K <pau...@ya...> - 2012-06-12 06:26:49
|
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 get the list of children for my notebook (notebook:GetChildren()) and can enumerate those using GetFirst()/GetNext() and then get their target using GetData(), but all their targets are of wxWindow type. How do I know which one is AuiTabCtrl and how do I cast it to AuiTabCtrl to call GetPage()? Paul. |
From: Paul K <pau...@ya...> - 2012-06-12 05:23:51
|
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 only got question marks and some special characters. On Windows I just get question marks. > Where did you get your binaries? The Windows 2.8.10 ones at > wxlua.sf.net are compiled in ANSI and not Unicode. The idea was that > since Lua is ANSI wxLua might as well be too since multibyte chars > will not be handled properly in the Lua string.XXX functions. However, > if you are careful it can be made to work. I think mine are from the official wxlua site, so are probably compiled in ANSI mode. > You have to recompile wxLua for Unicode, linking against a Unicode > wxWidgets build. When compiled in ANSI mode, strings are considered > one char per byte and that's it. > > I plan on providing binaries for Windows compiled in Unicode for the > next release. Ok; I'll wait for it then. Thank you. Paul. On Mon, Jun 11, 2012 at 9:22 PM, John Labenski <jla...@gm...> wrote: > On Mon, Jun 11, 2012 at 3:26 PM, Paul K <pau...@ya...> 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 information in the ticket; to summarize, I seem to >> be setting correctly both the the codepage >> (SetCodePage(wxstc.wxSTC_CP_UTF8)) and the encoding >> (wxFONTENCODING_UNICODE), but the text is still shown as single-byte >> garbled content (there are some examples in the ticket), even though >> the editor seems to recognize that these are two-byte characters (as >> it doesn't allow to position the cursor in the middle of any unicode >> character). > > Can you paste this into the editor from Firefox? It works fine in > Linux with the Unicode build. > Sanskrit: काचं शक्नोम्यत्तुम् । नोपहिनस्ति माम् ॥ > >> Also, when I set wxFONTENCODING_UTF8, I get "No font for displaying >> text in encoding 'Unicode 8 bit (UTF-8)' found." and even after I >> select "Lucida Sans Unicode", which is reported to be a unicode font, >> I still have the issue above. >> >> I also found this message from John "They probably compiled it in ANSI >> mode and not Unicode. Note however >> that Lua is strictly ANSI only." in this thread >> (http://comments.gmane.org/gmane.comp.lib.wxwidgets.wxlua.user/2636). >> Does this mean that the binaries I'm using need to be compiled with >> some other configuration (Unicode mode)? Note that in my case I'm not >> manipulating UTF strings, I just want them to be displayed correctly >> in the editor. > > Where did you get your binaries? The Windows 2.8.10 ones at > wxlua.sf.net are compiled in ANSI and not Unicode. The idea was that > since Lua is ANSI wxLua might as well be too since multibyte chars > will not be handled properly in the Lua string.XXX functions. However, > if you are careful it can be made to work. > >> What am I doing wrong here? Is there *any* WxLua based application >> working on windows with UTF8 encoded text (with or without BOM)? I've >> tested with both 2.8.7 and 2.8.10 (on windows Vista) with the same >> result. WxLua and wxLuaEdit also show the same behavior. > > You have to recompile wxLua for Unicode, linking against a Unicode > wxWidgets build. When compiled in ANSI mode, strings are considered > one char per byte and that's it. > > I plan on providing binaries for Windows compiled in Unicode for the > next release. > > Regards, > John > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > wxlua-users mailing list > wxl...@li... > https://lists.sourceforge.net/lists/listinfo/wxlua-users |
From: John L. <jla...@gm...> - 2012-06-12 04:22:46
|
On Mon, Jun 11, 2012 at 3:26 PM, Paul K <pau...@ya...> 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 information in the ticket; to summarize, I seem to > be setting correctly both the the codepage > (SetCodePage(wxstc.wxSTC_CP_UTF8)) and the encoding > (wxFONTENCODING_UNICODE), but the text is still shown as single-byte > garbled content (there are some examples in the ticket), even though > the editor seems to recognize that these are two-byte characters (as > it doesn't allow to position the cursor in the middle of any unicode > character). Can you paste this into the editor from Firefox? It works fine in Linux with the Unicode build. Sanskrit: काचं शक्नोम्यत्तुम् । नोपहिनस्ति माम् ॥ > Also, when I set wxFONTENCODING_UTF8, I get "No font for displaying > text in encoding 'Unicode 8 bit (UTF-8)' found." and even after I > select "Lucida Sans Unicode", which is reported to be a unicode font, > I still have the issue above. > > I also found this message from John "They probably compiled it in ANSI > mode and not Unicode. Note however > that Lua is strictly ANSI only." in this thread > (http://comments.gmane.org/gmane.comp.lib.wxwidgets.wxlua.user/2636). > Does this mean that the binaries I'm using need to be compiled with > some other configuration (Unicode mode)? Note that in my case I'm not > manipulating UTF strings, I just want them to be displayed correctly > in the editor. Where did you get your binaries? The Windows 2.8.10 ones at wxlua.sf.net are compiled in ANSI and not Unicode. The idea was that since Lua is ANSI wxLua might as well be too since multibyte chars will not be handled properly in the Lua string.XXX functions. However, if you are careful it can be made to work. > What am I doing wrong here? Is there *any* WxLua based application > working on windows with UTF8 encoded text (with or without BOM)? I've > tested with both 2.8.7 and 2.8.10 (on windows Vista) with the same > result. WxLua and wxLuaEdit also show the same behavior. You have to recompile wxLua for Unicode, linking against a Unicode wxWidgets build. When compiled in ANSI mode, strings are considered one char per byte and that's it. I plan on providing binaries for Windows compiled in Unicode for the next release. Regards, John |
From: John L. <jla...@gm...> - 2012-06-12 03:35:23
|
On Mon, Jun 11, 2012 at 1:53 PM, Andre Arpin <ar...@ki...> wrote: > Andre Arpin <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 Yes, the function returned "const wxDateTime& GetDate() const" which is an optimization for when you want to simply call a wxDateTime function and not save the object itself. I've changed it so that it simply returns a new wxDateTime object so it will never go out of scope when the event is garbage collected. I've also added a wxDateTime copy constructor so that you can make copies of a wxDateTime using: dt1 = wx.wxDateTime(...) dt2 = wx.wxDateTime(dt1) This should fix any problems with the wxDateEvent. Regards, John |
From: Paul K <pau...@ya...> - 2012-06-11 19:53:22
|
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 correctly both the the codepage (SetCodePage(wxstc.wxSTC_CP_UTF8)) and the encoding (wxFONTENCODING_UNICODE), but the text is still shown as single-byte garbled content (there are some examples in the ticket), even though the editor seems to recognize that these are two-byte characters (as it doesn't allow to position the cursor in the middle of any unicode character). Also, when I set wxFONTENCODING_UTF8, I get "No font for displaying text in encoding 'Unicode 8 bit (UTF-8)' found." and even after I select "Lucida Sans Unicode", which is reported to be a unicode font, I still have the issue above. I also found this message from John "They probably compiled it in ANSI mode and not Unicode. Note however that Lua is strictly ANSI only." in this thread (http://comments.gmane.org/gmane.comp.lib.wxwidgets.wxlua.user/2636). Does this mean that the binaries I'm using need to be compiled with some other configuration (Unicode mode)? Note that in my case I'm not manipulating UTF strings, I just want them to be displayed correctly in the editor. Selecting File | Encoding | UTF-8 in Scite from Lua4Windows displays the same text correctly, which confirms that this is not a font issue. What am I doing wrong here? Is there *any* WxLua based application working on windows with UTF8 encoded text (with or without BOM)? I've tested with both 2.8.7 and 2.8.10 (on windows Vista) with the same result. WxLua and wxLuaEdit also show the same behavior. Paul. |
From: Andre A. <ar...@ki...> - 2012-06-11 17:54:15
|
Andre Arpin <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 have a problem event:GetDate():GetJDN() returns a double and wx.wxDateTime expect an unsigned integer the best solution I could find is local tdt = event:GetDate() -- must init with a valid time (a valid JDN would work like 2456100) dt = wx.wxDateTime(os.time()) dt:SetYear(tdt:GetYear()) -- copy time from temporary dt:SetMonth(tdt:GetMonth()) dt:SetDay(tdt:GetDay()) dt:SetHour(tdt:GetHour()) dt:SetMinute(tdt:GetMinute()) dt:SetMillisecond(tdt:GetMillisecond()) I am sure there is a better way. Andre |
From: Andre A. <ar...@ki...> - 2012-06-11 14:12:33
|
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.wxDefaultPosition, wx.wxDefaultSize) button = wx.wxButton(panel, wx.wxID_ANY, 'show', wx.wxPoint(cal:GetSize().Width, 0)) local dt = cal:GetDate() cal:Connect(wx.wxID_ANY, wx.wxEVT_CALENDAR_DAY_CHANGED, function(event) dt = event:GetDate() print(dt:GetJulianDayNumber(), 'OnDate') print(cal:GetDate():GetJulianDayNumber()) end) button:Connect(wx.wxID_ANY, wx.wxEVT_COMMAND_BUTTON_CLICKED, function(event) print(dt:GetJulianDayNumber()) end) frame:Show(true) ----------------------------------------------------- Andre |
From: John L. <jla...@gm...> - 2012-06-11 04:19:40
|
On Fri, Jun 8, 2012 at 2:10 AM, Блажнов Валерий <vbl...@ya...> 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 |
From: John L. <jla...@gm...> - 2012-06-11 04:18:01
|
On Sat, Jun 9, 2012 at 10:25 AM, Andre Arpin <ar...@ki...> 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 a reserve word in Lua. I guess end could be > renamed. That is unfortunate. You can get the function using this... s = wx.wxString() e = s['end'] iter_end = e(s) > aa = wx.wxString("09-06-2012") > print(date:ParseDate(aa, wx.wxString_const_iterator(aa:begin()))) > aa = wx.wxString("") > print(date:ParseDate(aa, wx.wxString_const_iterator(aa:begin()))) This is probably not right, you would need to call it like this. it = aa:const_iterator() print(date:ParseDate(aa, it)) > Are iterators useful in wxLua? The addition in wxWidget maybe justified for > saving copying of strings in a tight loop but most of the time C++ programmer > will replace their code in the following way and live with the overhead. They're required for using UTF8 since not every code point is a single char. I think the simplest solution is to return two values, [bool, Lua String of start of input on failure] where the second Lua String is only returned on failure and contains the start of the input string up until the failure. I hope to have time to do it tomorrow night. Regards, John |
From: Andre A. <ar...@ki...> - 2012-06-09 14:26:02
|
> > I agree that the current functions are awkward to use. I will make the > input iterator argument optional. > 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 a reserve word in Lua. I guess end could be renamed. the code would be date:ParseDate(aa, wx.wxString_const_iterator(aa:end()) ) since aa:end()returns a wxString_iterator Note: that using begin() give unexpected results aa = wx.wxString("09-06-2012") print(date:ParseDate(aa, wx.wxString_const_iterator(aa:begin()))) aa = wx.wxString("") print(date:ParseDate(aa, wx.wxString_const_iterator(aa:begin()))) display: true false I would have expected both of these to be identical. -------------------------------------------------------- Are iterators useful in wxLua? The addition in wxWidget maybe justified for saving copying of strings in a tight loop but most of the time C++ programmer will replace their code in the following way and live with the overhead. old code: foo(v) new code: foo(v,&(type::const_iterator)v.end) // would not compile purely for illustration. In wxLua using foo(v) or foo(string.match(v,pattern)) seems so much simpler than using an iterator. ParseDate is not the only function using iterator but all of them seem similar. Thank you. Andre |
From: John L. <jla...@gm...> - 2012-06-09 04:08:57
|
On Thu, Jun 7, 2012 at 7:20 AM, Sven Andersson <me...@sv...> wrote: > > I have a quick question regarding licensing; Since we are considering a > commercial release sometime in the future, we would like to avoid our code base > being forced under the L-GPL license. AFAIK we can accomplish this by linking > statically to wxLua (and wxWidgets) and providing object files of our > application to comply with the license. In its current form, we are deriving a > application class like wxLuaFreeze does, but this does mean our application has > to fall under L-GPL licensing, correct? So to continue as planned, we have to > take the separate path you explained in your reply, by manually get the wxWidget > event loop initialized? wxLua uses the wxWindows/wxWidgets license which is LGPL with an exception for binary linking and distribution on your terms. You do not need to do anything special and I still recommend using wxApp to initialize the event loop. http://www.wxwidgets.org/about/newlicen.htm Regards, John |
From: John L. <jla...@gm...> - 2012-06-09 03:50:42
|
On Thu, Jun 7, 2012 at 10:09 AM, Andre Arpin <ar...@ki...> wrote: > using date:ParseDate(value, wx.wxString_const_iterator()) > > seems to work but looking into the run time we see that the pointer to the > iterator is a bad pointer not very desirable. > > supporting a single argument seems preferable. I agree that the current functions are awkward to use. I will make the input iterator argument optional. Regards, John |
From: Блажнов В. <vbl...@ya...> - 2012-06-08 06:20:39
|
<div>Thank You, I did so too and then I used string captures to get day, month and year values:</div><div>str = dt:Format("%m/%d/%Y")</div><div>month, day, year = string.match(str, "(%d+)/(%d+)/(%d+)")</div><div> </div><div>07.06.2012, 22:11, "Milind Gupta" <mil...@gm...>:</div><blockquote type="cite">Hi,<div> Currently I use the Format method to get the string and extract it from there: currDate:Format("%m/%d/%Y")</div><div>Regards,</div><div>Milind<br /><br /><div>On Thu, Jun 7, 2012 at 2:18 AM, Блажнов Валерий <span dir="ltr"><<a href="mailto:vbl...@ya..." target="_blank">vbl...@ya...</a>></span> wrote:<br /><blockquote style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid #cccccc;padding-left:1ex;"><br /> <br /> 07.06.2012, 08:19, "John Labenski" <<a href="mailto:jla...@gm...">jla...@gm...</a>>:<br /><div>> On Tue, Jun 5, 2012 at 10:46 AM, Блажнов Валерий <<a href="mailto:vbl...@ya...">vbl...@ya...</a>> wrote:<br /> ><br /> >> There are no wxWidgets GetDay(), GetMonth(), GetYear() methods in wxLua wxDateTime. How to get day, month and year values from wxDateTime object?<br /> ><br /> > Oops, there are now in the SVN development version.<br /> ><br /> > I would like to make a release in the next couple weeks.<br /> ><br /> > Regards,<br /> > John<br /> ></div>Thank You,<br /> Please, don't forget to add Today() method too )<br /><div><div><br /> ------------------------------------------------------------------------------<br /> Live Security Virtual Conference<br /> Exclusive live event will cover all the ways today's security and<br /> threat landscape has changed and how IT managers can respond. Discussions<br /> will include endpoint security, mobile security and the latest in malware<br /> threats. <a href="http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/" target="_blank">http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/</a><br /> _______________________________________________<br /> wxlua-users mailing list<br /> <a href="mailto:wxl...@li...">wxl...@li...</a><br /> <a href="https://lists.sourceforge.net/lists/listinfo/wxlua-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/wxlua-users</a></div></div></blockquote></div></div><p>------------------------------------------------------------------------------<br />Live Security Virtual Conference<br />Exclusive live event will cover all the ways today's security and <br />threat landscape has changed and how IT managers can respond. Discussions <br />will include endpoint security, mobile security and the latest in malware <br />threats. <a href="http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/">http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/</a></p><p>_______________________________________________<br />wxlua-users mailing list<br /><a href="mailto:wxl...@li...">wxl...@li...</a><br /><a href="https://lists.sourceforge.net/lists/listinfo/wxlua-users">https://lists.sourceforge.net/lists/listinfo/wxlua-users</a></p></blockquote> |
From: Блажнов В. <vbl...@ya...> - 2012-06-08 06:10:40
|
Please, see the test attached. Change the date, press "OK" and get broken date. 08.06.2012, 06:49, "John Labenski" <jla...@gm...>: > On Thu, Jun 7, 2012 at 11:47 AM, Блажнов Валерий <vbl...@ya...> wrote: > >> Got the strange difference between event:GetDate() and calendar:GetDate() in wxCalendarCtrl event handler. If I use dt = calendar:GetDate() directly (ignoring event argument) for saving wxDateTime value then I have correct value after dialog destruction. But if I use dt = event:GetDate() then dt value becomes broken after dialog destruction. > > Do you have some code that demonstrates this? I can't think of any > reason why it would become "broken" and can you explain what that > means? > > Regards, > John > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > wxlua-users mailing list > wxl...@li... > https://lists.sourceforge.net/lists/listinfo/wxlua-users |
From: John L. <jla...@gm...> - 2012-06-08 02:49:55
|
On Thu, Jun 7, 2012 at 11:47 AM, Блажнов Валерий <vbl...@ya...> wrote: > Got the strange difference between event:GetDate() and calendar:GetDate() in wxCalendarCtrl event handler. If I use dt = calendar:GetDate() directly (ignoring event argument) for saving wxDateTime value then I have correct value after dialog destruction. But if I use dt = event:GetDate() then dt value becomes broken after dialog destruction. > Do you have some code that demonstrates this? I can't think of any reason why it would become "broken" and can you explain what that means? Regards, John |
From: Milind G. <mil...@gm...> - 2012-06-07 18:11:30
|
Hi, Currently I use the Format method to get the string and extract it from there: currDate:Format("%m/%d/%Y") Regards, Milind On Thu, Jun 7, 2012 at 2:18 AM, Блажнов Валерий <vbl...@ya...> wrote: > > > 07.06.2012, 08:19, "John Labenski" <jla...@gm...>: > > On Tue, Jun 5, 2012 at 10:46 AM, Блажнов Валерий <vbl...@ya...> > wrote: > > > >> There are no wxWidgets GetDay(), GetMonth(), GetYear() methods in > wxLua wxDateTime. How to get day, month and year values from wxDateTime > object? > > > > Oops, there are now in the SVN development version. > > > > I would like to make a release in the next couple weeks. > > > > Regards, > > John > > > Thank You, > Please, don't forget to add Today() method too ) > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > wxlua-users mailing list > wxl...@li... > https://lists.sourceforge.net/lists/listinfo/wxlua-users > |
From: Блажнов В. <vbl...@ya...> - 2012-06-07 15:48:00
|
Got the strange difference between event:GetDate() and calendar:GetDate() in wxCalendarCtrl event handler. If I use dt = calendar:GetDate() directly (ignoring event argument) for saving wxDateTime value then I have correct value after dialog destruction. But if I use dt = event:GetDate() then dt value becomes broken after dialog destruction. |
From: Andre A. <ar...@ki...> - 2012-06-07 14:09:40
|
using date:ParseDate(value, wx.wxString_const_iterator()) seems to work but looking into the run time we see that the pointer to the iterator is a bad pointer not very desirable. supporting a single argument seems preferable. The following code works. static int LUACALL wxLua_wxDateTime_ParseDate(lua_State *L) { // wxString date wxString date = wxlua_getwxStringtype(L, 2); // wxString::const_iterator end wxString::const_iterator * end; if (lua_type(L, 3) == LUA_TNONE) // missing argument end = &(wxString::const_iterator)date.end(); else end = (wxString::const_iterator *)wxluaT_getuserdatatype(L, 3, wxluatype_wxString_const_iterator); but a similar change would be needed for each function expecting an optional iterator. currently wxlua_getwxStringtype does not seem to handle a missing argument. If it returned NULL we could trigger on the result. maybe a special function end = GetOptionalIterator(L, 3, date); which returns the_iterator || &date.end() could be used. Andre |