wxwidgets

can't get wxHaskell to work from ghci on Mac

佐手、 提交于 2020-01-02 03:40:19
问题 I'm trying to run an example using EnableGUI function. % ghci -framework Carbon Main.hs *Main> enableGUI >> main This is what I get instead of a working program: 2013-01-14 00:21:03.021 ghc[13403:1303] *** Assertion failure in +[NSUndoManager _endTopLevelGroupings], /SourceCache/Foundation/Foundation-945.11/Misc.subproj/NSUndoManager.m:328 2013-01-14 00:21:03.022 ghc[13403:1303] +[NSUndoManager(NSInternal) _endTopLevelGroupings] is only safe to invoke on the main thread. 2013-01-14 00:21:03

How does Rainlendar achieve transparency with wxWidgets

懵懂的女人 提交于 2020-01-01 06:57:06
问题 Rainlendar is a fantastic cross platform calendar program that is written with wxWidgets. How does it achieve the transparency effect? Does anyone have any example code which demonstrates the transparency effect? 回答1: My guess is that they could be using a wxScreenDC to draw directly to the screen (while preserving the background contents). Unlike receiving paint events or erase events, you create a wxScreenDC on the stack at your choosing, which means that you need to refresh yourself (most

wxpython: automatically resize a static image (staticbitmap) to fit into size

佐手、 提交于 2020-01-01 03:21:18
问题 My wxPython project has a frame, with multiple nested sizers. One of the sizers contains a wxStaticImage with a bitmap that is read from a file. I need the image to resize (grow/shrink) every time the frame is resized, so it will fit it's sizer's boundaries. (I think that) I know how to resize an image. What I don't know is how to: how to get the image's container's width or height? maybe i overlooked a property that does it auotmatically? (for now, I don't mind the proportions) Edit:

How to remove initial wx.RadioBox selection?

て烟熏妆下的殇ゞ 提交于 2019-12-31 02:57:34
问题 I have the following code : myList =['a','b'] rb=wx.RadioBox(self.panel, -1, "Options :", (0, 0), wx.DefaultSize,myList, 2, wx.RA_SPECIFY_COLS) When it renders first time I see that a choice has been made how can I change the code that when this radibox rendered first time there are no option has been chosen. 回答1: The use of a radio box implies, "there is a list of two or more options that are mutually exclusive and the user must select exactly one choice." The radio box never exists in a

How do I add a label to wxWidgets wxBitmapButton?

拈花ヽ惹草 提交于 2019-12-31 01:54:10
问题 How do I create a button using wxWidgets that has both a label(text) and an image or icon. If I select wxBitmapButton there is a field called "label". But whenever I write anything in that field it doesn't update code in the wxFormBuilder. I have also tried wxButton->SetLabel() but no luck. Any help or suggestions would be appreciated. 回答1: You can only do this in wxWidgets 2.9.1 or greater and can use either a wxBitmapButton or wxButton. To quote from the documentation: Since version 2.9.1

Building wxWidgets 3.1.0 on CLion (Ubuntu)

允我心安 提交于 2019-12-31 00:42:07
问题 I am currently trying to build wxWidgets-3.1.0 on a CLion 1.3 project. I use Ubuntu 16.04 (64 bit). Basically, I edited the CMakeLists.txt file like this: cmake_minimum_required(VERSION 3.5) project(WxProva) set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake_modules" ${CMAKE_MODULE_PATH}) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") set(SOURCE_FILES main.cpp) add_executable(WxProva ${SOURCE_FILES}) find_package(wxWidgets) include_directories(${wxWidgets_INCLUDE_DIRS}) target_link

ScrolledPanel with vertical scrollbar only and WrapSizer

给你一囗甜甜゛ 提交于 2019-12-30 10:22:55
问题 I uses a WrapSizer in order to have an automatic layout (as thumbnail gallery) like this (see screenshot on the left ) : I would like that if there are two many elements, a (vertical only)- ScrollBar is added on the panel (see right screenshot). How to add such a vertical scrollbar to a panel using a WrapSizer? I tried by mixing WrapSizer and ScrolledPanel , but I cannot get the desired layout. class MyPanel(scrolled.ScrolledPanel): def __init__(self, parent): scrolled.ScrolledPanel.__init__

ScrolledPanel with vertical scrollbar only and WrapSizer

拟墨画扇 提交于 2019-12-30 10:22:48
问题 I uses a WrapSizer in order to have an automatic layout (as thumbnail gallery) like this (see screenshot on the left ) : I would like that if there are two many elements, a (vertical only)- ScrollBar is added on the panel (see right screenshot). How to add such a vertical scrollbar to a panel using a WrapSizer? I tried by mixing WrapSizer and ScrolledPanel , but I cannot get the desired layout. class MyPanel(scrolled.ScrolledPanel): def __init__(self, parent): scrolled.ScrolledPanel.__init__

ScrolledPanel with vertical scrollbar only and WrapSizer

倾然丶 夕夏残阳落幕 提交于 2019-12-30 10:22:30
问题 I uses a WrapSizer in order to have an automatic layout (as thumbnail gallery) like this (see screenshot on the left ) : I would like that if there are two many elements, a (vertical only)- ScrollBar is added on the panel (see right screenshot). How to add such a vertical scrollbar to a panel using a WrapSizer? I tried by mixing WrapSizer and ScrolledPanel , but I cannot get the desired layout. class MyPanel(scrolled.ScrolledPanel): def __init__(self, parent): scrolled.ScrolledPanel.__init__

Unable to use wx.NotificationMessage properly with wxPython

那年仲夏 提交于 2019-12-30 06:33:21
问题 I recently upgraded to the development release of wxPython (wxPython 2.9.2.4) since I needed the functionality of wx.NotificationMessage within my application. I have been trying unsuccessfully to create notification bubbles on certain user events due to something I think might be a possible bug. Before submitting such bug, I wanted to go ahead and ask the people of the mailing list what they think might be the problem and hopefully find a solution from within my code. Here is the code I have