I ported a little Haskell program I wrote from Mac to Windows. It's a GUI application (wxHaskell, compiled with ghc 6.12.1), so it does not need the command prompt window to open. It does so, anyway, so my question: What must I do so that the program starts without opening a prompt window first? Is there some ghc switch for this?
...
I want to use wxHaskell on OS X (Snow Leopard, MacBook Pro). I was able to install the library successfully and the script below:
module Main where
import Graphics.UI.WX
main :: IO ()
main = start hello
hello :: IO ()
hello
= do f <- frame [text := "Hello!"]
quit <- button f [text := "Quit", on command := close f]
...
I have a wxPython application which allows the users to select items from menus that then change what is visible on the screen. This often requires a recalculation of the layout of panels. I'd like to be able to call the layout of all the children of a panel (and the children of those children) in reverse order. That is, the items wit...
I have a frame that contains (among many other things) a panel. I need to be able to explicitly set the size of the panel and have the frame with all its sizers, buttons, and everything else fit around the new size of the panel. I have tried every combination of Fit/Layout/etc I can think of, but I can never get the frame to grow/shrin...
Is it possible to display text labels in wx.SL_Labels?
Thanks
...
In my frame constructor I have a function that easily makes a menu bar for me.
package Routines;
#This function will set up a menu
#REQUIRED: entries
#RETURNS: id, menu
sub SetupMenu {
$menuItemCount = 0; #Element number under the same menu
$subMenuCount = 0; #Number of menus
$mbar ...
What are the usable tools?
I am aware of wxformbuilder and wxGlade, but none of them seems to be complete yet.
...
Hello,
I'm trying to make a special splash screen that is displayed while the application is loading,
it outputs messages of the various components loading and features a progress bar.
The first job I am tackling is mapping a .png image to the frame that will host the splash screen.
import wx
class edSplash(wx.Frame):
def __...
I create a wx.TextEntryDialog as follows:
import wx
dlg = wx.TextEntryDialog(self, 'Rules:', 'Edit rules',
style=wx.TE_MULTILINE|wx.OK|wx.CANCEL)
dlg.SetValue(self.rules_text.Value)
if dlg.ShowModal() == wx.ID_OK:
…
This results in a dialog box that is too small for my needs, and that is not resizable:
...
Hello SO,
I have a video player written in wxpython and am overlaying the current FPS onto the video.
My text is black, so if the video is sufficiently dark the FPS counter is not visible.
I am looking for a way to draw text with an outline so it will stand out no matter what the video is displaying. E.g. I want black text with a whit...
Hello SO,
I have a requirement to center a wx.ComboBox on the selected item when opened.
Basically, I want to do this (http://stackoverflow.com/questions/592911/wpf-listbox-centering-selected-item), but using wxWidgets.
Thanks
...
I am trying to compile and create wxWidget apps but when its just about done I have a virtual memory runout and there is an error in the wxWidgets code I have tried it several times with 2.8.10 AND 2.8.11, no luck, I am using codeblocks 10.5 and mingw I think version 5.02 but I am not positive whenever I start a wxwidgets app in codebloc...
Im having some trouble with the erlang wx module.
My program runs as follows:
Server = wx:new(),
Frame = wxFrame:new(Server, -1, "" [{size,{700, 600}}]), %%%REFERENCE TO WINDOW
Panel = wxPanel:new(Frame), %%% REF TO PANEL IN FRAME
Then I pass Panel to another process and try to create a Grid
XreportZ = wxGrid:new(Panel, 24, [ {p...
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 ...
Recently I've been having an issue with the code shown below and it's been bugging me for a while now. I don't know why it's happening, the only thing I know is that the python code brings up a segfault on the line noted and gdb brings up something about memory. Am I doing something wrong or is this a bug? I'd really like to get this wor...
Hi I have a program that displays a simple list in report view
ListCtrl = wxListCtrl:new(Tab, [{winid, ?ANYl}, {style, ?wxLC_REPORT bor ?wxLC_SINGLE_SEL},{size, {695, 500}}]),
So A list is generated with this code and then I input data using setItem. Then when someone clicks on an item in the list (row is highlighted) I can get the S...