On 8/7/07, Attila <[EMAIL PROTECTED]> wrote: > Hi all, I need a little help again. Now the LUA A-I-O developers updated > the wx lib to the newest, so I downloaded it, and rewrite some changes in > my app. I saw, wx.wxNull became wx.NULL, but what happened with > wx.wxGetBaseApp:MainLoop()? wx.wxGetBaseApp returned me as nil, so it > renamed maybe too. What' the new name, or what code should I use?
wx.wxGetApp() The rule of thumb is that almost all functions now use the C++ function name. I've tried to remove all of the inconsistencies so that the C++ wxWidgets documentation can be used. Please see here for some documentation. http://www.wxwidgets.org/manuals/stable/wx_contents.html http://wxlua.cvs.sourceforge.net/wxlua/wxLua/docs/changelog.txt?view=markup http://wxlua.sourceforge.net/documentation.php Especially this: http://wxlua.sourceforge.net/docs/wxluaref.html > Another problem, I want to find a running program in my program, I think > FindWindowByLabel() is what I should use, but I don't know how. I know the > program's exe name, and I know four characters, which is in it's label, > the other letters are changing. Is that possible to find it, and maybe > send a 'kill sign' to it? FindWindowByLabel() will find a wxWindow in the current application, not a process. See here for a list of the process functions that wxWidgets has. http://wxlua.sourceforge.net/docs/wxluaref.html#wxProcess > My third 'problem' (maybe just question): Is that possible to restart the > computer with wxLUA? For some reason I decided to not wrap that, probably for "safety". It will be available in the next version as the function wx.wxShutdown(flags). > Last question: Can I get somehow the current CPU usage? I do not believe that wxWidgets wraps anything that can do that, but if it does and we haven't already added it we can. Let me know. Hope this helps, John Labenski ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users