wxwidgets

What is the proper way of handling linked lists in wxWidgets?

I wrote an application using wxWidgets that uses wxList. I am having some random crahses (segfault) in the destructors that collect the list data. I could not find a definite way of removing items from the list (Erase() VS DeleteNode()). Even iterating over the items has two flavours (list->GetFirst() VS list->begin()). Below is a test ...

WX.Python and multiprocessing

I have a wx.python application that takes some files and processes them when a button is clicked. I need to process them in parallel. I use this code inside the bound button function: my_pool = multiprocessing.Pool(POOLSIZE) results=[digest_pool.apply_async(self.fun, [args]) for file in list_files() ] my_pool.close() my_pool...

Using wxWidgets docking facilities from Mono (Linux)

In an attempt to port Inlage to Linux, one major problem is to support docking. Docking is done using Windows hooks from C#. Docking is not impossible as it was exhibited by Eclipse (the IDE) and also by wxWidgets (wxAUI video: www.kirix.com/labs/wxaui.html). The questions is, is it possible to easily port the C#-based (windows hooks-b...

Setting up Netbeans to compile wxWidgets projects under Windows

I'm trying to set up my Netbeans IDE so that it is capable of compiling wxWidgets projects. There is very similar question: Setup wxWidget in Netbeans 6.1 C++ On MS Windows? but the answer is not working for me. And the mentioned versions are a bit outdated. I use the mingw package for compilation. There is no problem compiling a sma...

how to make a Command Line Interface from a given data model used for GUI

HI, guys. I am developing a GUI to configure and call several external programs with Python and I use wxPython for the GUI toolkits. Basically, instead of typing commands and parameters in each shell for each application (one application via one shell), the GUI is visualizing these parameters and call them as subprocesses. I have built t...

What does wxWidgets' EVT_CHAR_HOOK do?

I am maintaining a wxWidgets C++ application that uses EVT_CHAR_HOOK to capture key events in a high level window. I can't find any real documentation for this event but I can surmise that it intercepts key events in some way that has priority over the "standard" key events. One disturbing thing that I just discovered is that, if this...

wxWidgets custom window shape (PNG)

Hi! I'm using wxPython bindings for wxWidgets. Is it possible to create custom-shaped window from PNG image and in count alpha-channel? Take a look at VS2010 splash screen to see what I mean: Highlighted zones (rounded corner and shadow) are not sharp, they use alpha-channel to look smooth. Update: I want not only custom shape, but ...

Model, View, Controller - I understand the class diagram, but I don't understanding all the threading issues. Advice?

I recently read the Head First Design Patterns book and I especially liked how the chapter on MVC seemed to bring everything together from the previous chapters. However, I am now on the verge of implementing a MVC pattern (using wxWidgets in C++) and I am beginning to realize that I don't understand threading issues as much as I should...

wxWidgets and locking resources.

I'm new to wxWidgets (C++), and threads for that matter. What should I be aware of concerning shared resources? Should I implement some sort of semaphore-based locking of resources that may be used by both the GUI thread and the worker thread(s)? Does wxWidgets offer some capability for dealing with this? ...

wxBitmap::LoadFile fails in Windows.

I am trying to load an Image file of type .xpm into the wxBitmap Object using LoadFile method. The following call fails wxBitmap aBitmap; aBitmap.LoadFile(strIconPath,wxBITMAP_TYPE_XPM); with the error No image handler for type wxBITMAP_TYPE_XPM defined. Whereas, if I load it by including the xpm file and using it as shown below, i...

how to delete or destroy the wx.panel from its parent (another wx.panel object) ?

HI, guys I am developing a GUI with wxPython. I draw a square which represents a CD object, inside another square (also with wxPanel class), which represents CD Container Object. I want to have "delete this CD" in the right click menu of CDWindow, which will remove the CDwindow. enter code here` Basically, my code looks like this (for ...

Can't Build wxWidgets on Cygwin with OpenGL Support

I am trying to build wxWidgets 2.8.11 under Cygwin, but the wxWidgets configure step is not generating OpenGL support. Specifically, the build is not generating a library called libwx_mswd_gl-2.8.a. I suspect that I am missing a Cygwin OpenGL package, but am not sure. I already have the following OpenGL-related packages: libglut-deve...

wxWidgets - How to add configurations to wx-config with VC++?

I'm using the MSYS shell to compile on Windows with Microsoft VC++ using make with my own makefile that invokes cl (VC++) using wx-config to grab the appropriate command line options (I also use the same makefile on Linux with g++). I've been doing this with a release version of wxWidgets 2.8.7 for quite a while without problems. I now ...

WxWidgets: Troubling Callling wxFrame ConstructorE

Okay, I have run into a really bizarre problem. I have a wxWidgets program that has two frames, a main one, and a secondary one. The main one has a button that calls the second one to open. I had trouble with calling a derived class from the second wxframe's class, so I moved the declaration/implementation of the class to before the c...

help with wxwidgets intsall

I have been trying to install wxwidgets on visual studios 2010 but I keep getting the same error. It would be great if some one could tell me what it means and how I can fix my problem. This is the error message I keep getting Error 1 error MSB3073: The command "xcopy ....\include\wx\msw\setup.h ....\lib\vc_dll\mswu\wx\ /Y :VCEnd" exit...

How to Append data to a combobox

I need to insert data to a combobox so i do an append as defined in this lines : fd = open(files,'rb') data=fd.readlines() for i in data[]: item=i.strip() if item is not None: combobox.Append(item) fd.close Even data insert the selection still void please can you tell me how to set a selection a value from the items read...

Insert data into texctrl

To insert data into a textctrl i do this : num_items = self.lc_sources.GetItemCount() self.lc_sources.SetStringItem(num_items, 1, data) But the problem is the insertion is done after the treatment of data, well and i need to do insertion in real time. Please how can i do this ...

ERLANG - WX NOTEBOOK SIZE

Hi Everyone, Im having a small issue today.. I am trying to create an aui as shown in the demo program of the wx module. The size of the actual tabs will not change no matter what I do. They stay at about 400 by 50 and I can't understand why. I think it may be when I call Manager = wxAuiManager:new([{managed_wnd, Panel}]), I need ...

wxWidgets for Ada?

In Lua-scripting I found wxWidgets (wxLua) library very useful, so I'd wanted to found binding for Ada and GNAT Programming Studio 2010 (4.4.1) - does it exist at all and maybe somebody know how to link it with GNAT? Only one I found is wxAda, which is about 5 years old and without any hyperlinks to load it. ...

glGenLists(1) return 0 outside OnPaint() with wxThread

Hi there, Currently, I am trying to separate the display list from the OnPaint(), but glGenLists(1) return 0. Is there any prerequisite on using display list? Is function glGenLists(1) only survive inside OnXxx() event thread? Thank you! ...