gtk2hs
gtk2hs: Request recalculation of windows size after removing a widget
I have a Window with three Entry widgets and one Button. I use the button to remove one of the widgets programmatically. The problem is that the main window doesn\'t change it\'s size to fit the new l[详细]
2023-03-24 11:43 分类:问答Custom implementation for Widget class in gtkhs
Gtk2hs has various widget datatypes that implements Widget class. Is it possible to write custom datatype which does the same?[详细]
2023-03-15 20:31 分类:问答Gtk Terminal Widget
Simple question: Is there a linux开发者_StackOverflow-style terminal widget for GTK? Preferably for Haskell, too, as I want to use gtk2hsvte is what is used in gnome-terminal. It seems there are vte h[详细]
2023-02-24 05:55 分类:问答How to show GtkToolItem in the overflow menu of a GtkToolbar?
I am working on a Haskell application using gtk2hs. This application has a toolbar which consists of several GtkToggleToolButton, GtkToolButton and GtkToolItem elements. For being able to resize the a[详细]
2023-02-19 14:20 分类:问答Gtk2hs multiple column TreeView with ListStore issue
I cannot force GTK to render data in TreeView with ListStore model with multiple columns through Haskell. I have the following code[详细]
2023-02-18 16:30 分类:问答How to pass state between event handlers in gtk2hs
I\'m trying to make a toy application, just to get my head around how to write event driven programs in Haskell. What I\'m trying to do is draw a line to a canvas which moves forward every time a key[详细]
2023-02-16 19:30 分类:问答Drawing text on GTK's DrawingArea in Haskell
I have a DrawingArea onto which I can draw using primitives such as drawRectangle and drawLine. How do I draw text onto that area? I\'m most interested in something that quickly outputs a single line[详细]
2023-02-16 10:41 分类:问答Haskell GTK, double buffering with primitives
With an example like this.How can I do 2d double buffering with gtk and haskell.I want to render primitives to an offscreen buffer and flip.This code only renders a pixel/rectangle.I want to add movem[详细]
2023-02-16 06:54 分类:问答How to do simple ComboBoxEntry in gtk2hs?
I use the code below adapted from a tutorial. It shows the two options in the drop down, but when I select one, it gives the error at the console:[详细]
2023-02-13 10:02 分类:问答Toggle between event handlers in gtk2hs
I would like to do something like this: handlerOn = do cid <- canvas `on` butto开发者_C百科nPressEvent $ tryEvent do[详细]
2023-02-13 01:57 分类:问答