wxwidgets

Inconsistency between IDLE/PythonWin during module imports

房东的猫 提交于 2020-01-16 19:13:30
问题 I have been fumbling around between IDLE/PythonWin and even Aptana Studio 3 trying to get some consistency regarding importing modules. The modules I have been using lately are wx from wxPython and the arcpy module. IDLE will let me import arcpy, but not wx. PythonWin will let me import wx, but not arcpy. When I do sys.executable in IDLE I get "C:\Python27\ArcGIS10.1\Lib\site-packages\pythonwin\Pythonwin.exe" When I do sys.executable in PythonWin I get "C:\Python27\pythonw.exe" Additionally,

Inconsistency between IDLE/PythonWin during module imports

南楼画角 提交于 2020-01-16 19:13:03
问题 I have been fumbling around between IDLE/PythonWin and even Aptana Studio 3 trying to get some consistency regarding importing modules. The modules I have been using lately are wx from wxPython and the arcpy module. IDLE will let me import arcpy, but not wx. PythonWin will let me import wx, but not arcpy. When I do sys.executable in IDLE I get "C:\Python27\ArcGIS10.1\Lib\site-packages\pythonwin\Pythonwin.exe" When I do sys.executable in PythonWin I get "C:\Python27\pythonw.exe" Additionally,

Trouble in installing WxWidgets

那年仲夏 提交于 2020-01-16 13:17:03
问题 When i trying to install wxwidgets i getting this error message: What should I do? 回答1: You have some other gcc in your path, the normal one definitely understands all of these options and, contrary to a comment above, no space is needed after -MT . Try running where gcc to find out where is it coming from and set up your PATH to exclude it. FWIW I've just tried building wxWidgets with TDM 5.1.0 and it worked without any problems. 回答2: The Problem is that some files from your compiler are

WxWidgets panels in sizers don't seem to be working

匆匆过客 提交于 2020-01-16 08:40:32
问题 I have a WxWidgets project that is setup like this: Main Frame->Main Panel->Vertical Sizer ->Horizontal Sizer for a few buttons etc ->Horizontal Sizer that shows all the main info. ->In that main sizer, I have a SimpleBook ->The Simple book has 3 panels in it. No matter what, the SimpleBook's visable page is under the top "few buttons" sizer. When having a panel in a sizer, the does the panel abide by the sizer's location within window? This looked "perfect" when the SimpleBook was a Sizer.

Window-overflowing widget in wxWidgets

扶醉桌前 提交于 2020-01-15 11:08:10
问题 I'm looking for a way to implement this design in wxPython on Linux... I have a toolbar with a button, when the button is pressed a popup should appear, mimicking an extension of the toolbar (like a menu), and this popup should show two columns of radio buttons (say 2x5) and a text box... My main problem is that the toolbar is small in height, so the popup has to overflow the bounds of the window/client area.. I thought of two possible implementations: by using a wxMenu, since a menu can be

Window-overflowing widget in wxWidgets

↘锁芯ラ 提交于 2020-01-15 11:08:09
问题 I'm looking for a way to implement this design in wxPython on Linux... I have a toolbar with a button, when the button is pressed a popup should appear, mimicking an extension of the toolbar (like a menu), and this popup should show two columns of radio buttons (say 2x5) and a text box... My main problem is that the toolbar is small in height, so the popup has to overflow the bounds of the window/client area.. I thought of two possible implementations: by using a wxMenu, since a menu can be

wxWidgets runtime error (Mismatch version)

不打扰是莪最后的温柔 提交于 2020-01-14 10:22:49
问题 I have a problem at start the program: Fatal Error: Mismatch between the program and library build versions detected. The library used 3.0 (wchar_t,compiler with C++ ABI 1010,wx containers,compatible with 2.8), and your program used 3.0 (wchar_t,compiler with C++ ABI 1009,wx containers,compatible with 2.8). My cmake settings: cmake_minimum_required(VERSION 3.0) project(simple) set(CMAKE_BUILD_TYPE Release) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${wxWidgets_CXX_FLAGS} -Wall -std=c++14") find

g++ won't play nice with wx-config

泪湿孤枕 提交于 2020-01-13 13:49:10
问题 I'm on windows using mingw and when i use the following to try and compile my wxWidgets code g++ main.cpp `wx-config --libs` `wx-config --cxxflags` I get the following error g++: `wx-config: No such file or directory g++: `wx-config: No such file or directory cc1plus.exe: error: unrecognized command line option "-flibs`" cc1plus.exe: error: unrecognized command line option "-fcxxflags`" And I cannot figure out what to do to make g++ play nice with wx-config Please help, thanks. 回答1: What

Creating wxSlider with range on Linux

帅比萌擦擦* 提交于 2020-01-13 07:38:06
问题 I'm trying to create a slider with option for range selection using wxSlider in Python. It has an optional range parameter but the problem is: SL_SELRANGE: Allows the user to select a range on the slider. Windows only. And I'm using Linux. I thought I might subclass wxSlider and make it work on Linux, or create a custom widget on my own. The problem is I'm not sure how to go about either option. Any ideas/pointers/pointing me in the right direction would be appreciated. I tried something like

Basic wxWidgets Timer

守給你的承諾、 提交于 2020-01-13 05:52:08
问题 Being new to wxWidgets I need some example code of how to get the wxTimer working. The reference gives 3 ways to use it but doesn't include sample code for any of them. Optimally, I'd like to get method 2 working. 回答1: (from the samples/widgets/gauge.cpp:) Set up your event constants enum { GaugePage_Reset = wxID_HIGHEST, GaugePage_Progress, Wire the event to your member function (using your event constant) EVT_TIMER(GaugePage_Timer, GaugeWidgetsPage::OnProgressTimer) and then you'll need to