Questions tagged [bwidget]

BWidget is an extension to Tk that provides a number of higher-level widgets implemented in Tcl/Tk.

BWidget is an extension package written in Tcl/Tk that provides some combination widgets that can make creating Tk applications simpler. Many of these have been superseded in Tk 8.5 and 8.6 by Tk widgets or by themed widgets, but the BWidget package is still maintained and can be used with current versions of Tk.

Further details may be found in the documentation.

12 questions
2
votes
2 answers

Opening a TCL gui within Java code

I have a TCL file which uses Tcl's BWidget package that I've been using as a GUI for my program. I now want to be able to load up this GUI from a separate Java program. I've looked into Jacl and Swank, but they don't seem to do exactly what I…
Say.My.Name.
  • 511
  • 5
  • 19
1
vote
0 answers

notebook ttk close tab

I am looking to add a bind to close my tab (ttk::notebook). I am working with OO tcl (oriented object) I added an image (icon X) and it's OK but when I click on it, the bind is not coorect ? Can you help me to do it with tcl OO ? so this is my code…
Nirvan
  • 15
  • 7
0
votes
1 answer

Use custom Bitmap images for BWidget

I've created some customized bitmap images (.gif files) for buttons (in my case a ButtonBox), similar to the ones found in the bwidget-/images directory and stored them there. I would, however, like to use the standard installed BWidget version. Is…
Roalt
  • 8,330
  • 7
  • 41
  • 53
0
votes
1 answer

BWidget and Tile (ttk)

Do any tcl'ers out there know what is happening with the (possible) transition of BWidget to use the newer Tile (ttk) themed widgets. I know that some work has been done in BWidget 1.8 (it does have the Widget::theme command after all), but if I try…
Andrew Stein
  • 12,880
  • 5
  • 35
  • 43
0
votes
0 answers

tcl/tk : setting position of BWidget::Label

I'm showing a Label in a BWidget Mainframe and want it to be at the top of the layout. I've tried various permutations and combinations of -side and -anchor to no avail; it seems I have an incorrect mental model. Example code: package require…
njamescouk
  • 127
  • 11
0
votes
1 answer

Problem with BWidget's MessageDlg

I am trying to use BWidget's MessageDlg. As it follows from the documentation here, the -aspect ratio defines the ratio between the width and height of the message window. However, seems it has no effect. For this code: For package require…
Vahagn
  • 4,670
  • 9
  • 43
  • 72
0
votes
1 answer

How to set the maximum size of BWidget's ScrolledWindow?

I am using BWidget's ScrolledWindow in a code like this: toplevel .top set w [ScrolledWindow .top.scrolledWindow] set f [ScrollableFrame $w.scrollableFrame -constrainedwidth true] $w setwidget $f set a [$f getframe] # here goes some stuff in $a So…
Vahagn
  • 4,670
  • 9
  • 43
  • 72
0
votes
1 answer

updating Menu MainFrame tk

I am looking how I can update the menu of my application. I used MainFrame to create it but I can't update the whole menu. set descmenu1 {} set FileMenuItems1 {} lappend FileMenuItems1 [list command "f1" {} "f1" {Ctrl q} -command [list if…
Nirvan
  • 15
  • 7
0
votes
1 answer

How to define the height of a ScrollableFrame inside a ScrolledWindow?

I want to put some (~30) CheckButtons inside a BWidget::ScrollableFrame which is located inside a BWidget::ScrolledWindow. For testing purposes I wanted to restrict the size of the ScrollableFrame to 100px by 100px. I expected a ScrollableFrame,…
0
votes
1 answer

TCL Bwidget: How can i pass my Combobox selected value to the -command

May i know how to pass my selected value from the combobox to A_task through -command? For example, if i selected 3 in the combobox, then i want to pass this value to my A_task proc ComboBox .combo -values {"0" "1" "2" "3" "4" "5" \ …
fpga89
  • 1
0
votes
2 answers

Validate entry with BWidget's ComboBox

The BWidget ComboBox widget allows you to fill in an entry field with a value. I would like to enforce only specific characters in that field (e.g. only [a-z0-9]). For that purpose I would like to use Tcl/Tk's -validatecommand (or -vcmd for short),…
Roalt
  • 8,330
  • 7
  • 41
  • 53
-1
votes
1 answer

Combobox in tcl gives error when any item is selected in it

I'm using tk widget Combobox and whenever I select any item in it it gives invalid command name .top47.not48.fpage2.sw.sf.frame.cf2.frame.c.shell.listb my code looks like this:- ComboBox $mainframe.cf2.frame.c -textvariable variable1 \ …
user954134
  • 129
  • 2
  • 8