From: Joao Ribeiro (
Date: Mon Apr 08 2019 - 07:25:50 CDT

Dear Ali,


I would suggest you take a look at the “VMD PDB Tool” as a simple example.


In the VMD tree, you have all the code for the VMD plugins, including the tk code for their interface. So inside the vmd installation folder, you will have something like “vmd/plugins/noarch/tcl/pdbtool1.0”. This is a simple plugin with a simple interface that you can use as a template.







João Vieira Ribeiro
Theoretical and Computational Biophysics Group
Beckman Institute, University of Illinois

+1 (217) 3005851


From: <> on behalf of Ali Morshedi <>
Date: Sunday, April 7, 2019 at 3:35 AM
To: <>
Subject: vmd-l: Creating and using a tk button


Dear vmd users,


My goal is to have a canvas with a button and a box so that I enter a number in the box and press the button and a procedure is executed (e.g. a new molecule is loaded).


I'm having trouble getting gui in tcl console to work. For example when I execute:

label .hello "hello world"

grid .label


nothing happens.


I'd appreciate it if you let me know whether doing this is possible and if yes, some hints about how to do it.