Questions tagged [lablgtk]

LablGtk is an OCaml interface to GTK+ 1.2, 2.x, and 3.x.

23 questions
1
vote
1 answer

How to get text value from GText.view?

I am creating a GUI in OCaml using Lablgtk. I have created a text view like so: let textView = GText.view ~border_width:2 ~packing:vbox#add () in textView#buffer#set_text "Hello World"; Later I want to take the text in the…
user1959309
  • 101
  • 1
  • 11
1
vote
1 answer

Installing lablgtk on Windows for OCaml GUI

I'm having trouble installing lablgtk in order to create a GUI for my Ocaml program. Not only am I finding the instructions on the site difficult to follow but I am having trouble finding the packages online to download; my browser is blocking most…
user1959309
  • 101
  • 1
  • 11
1
vote
2 answers

Function applied to too many arguments in lablgtk

I need some help understanding why the following code will not compile. I am attempting to place a GSourceView2 inside a vertical box in lablgtk. I've adapted the code from this Ocaml article open GMain open GdkKeysyms let locale =…
David
  • 2,080
  • 5
  • 29
  • 44
1
vote
2 answers

Exceptions in Lablgtk callbacks

In Lablgtk, whenever there is an exception in a callback, the exception is automatically caught and an error message is printed in the console, such as: (prog:12345) LablGTK-CRITICAL **: gtk_tree_model_foreach_func: callback raised an…
anol
  • 8,264
  • 3
  • 34
  • 78
0
votes
0 answers

lablgtk2, GEdit.entry preventing window from showing

I was learning Lablgtk2 for OCaml and all was good and working, but when I tried adding GEdit.entry to any container, the execution stops there and any thing after won't be executed. but the program keeps running, and I have to terminate it with ^C.…
Kavaliro
  • 119
  • 1
  • 8
0
votes
1 answer

Trouble installing lablgtk

I'm having trouble installing lablgtk. When I type in opam install lablgtk The following actions will be performed: ∗ install lablgtk 2.18.5 =-=- Gathering sources =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= [lablgtk] Archive in…
stumped
  • 3,235
  • 7
  • 43
  • 76
0
votes
1 answer

How to write new widgets implementing MVC with lablgtk2?

I am writing a family of new widgets for lablgtk2, the OCaml bindings for Gtk+. Some of these widgets can edit or present a fairly complex information, I am therefore interested in using model-view-controler or subject-observer, similar to what can…
Michaël Le Barbier
  • 6,103
  • 5
  • 28
  • 57
0
votes
1 answer

OCaml-Wodi: Installing Lablgtk2?

I have been trying to install lablgtk2 on my wodi32 cygwin since the package environment did not initially come with lablgtk (just lablgtk). I followed these directions to do it manually myself: 2) Install lablgtk2 binaries and scripts inside the…
9codeMan9
  • 802
  • 6
  • 11
  • 25
1
2