From: John Stone (johns_at_ks.uiuc.edu)
Date: Wed Mar 21 2012 - 11:09:16 CDT

Hi,
  You can add TkCon to your .vmdrc if you want it to start automatically.
To do this, you would make a .vmdrc file in your home directory (or edit
the .vmdrc in the installed VMD directory), so that it looks something
like this (you can actually get by with only "menu main on" and the tkcon
commands that follow in your .vmdrc if you don't want to bother with the rest):

# turn on lights 0 and 1
light 0 on
light 1 on
light 2 off
light 3 off

# position the stage and axes
axes location lowerleft
stage location off

# position and turn on menus
menu main move 5 225
menu display move 395 30
menu graphics move 395 500
menu color move 125 225
menu files move 125 325
menu labels move 125 525
menu render move 125 525

menu main on
after idle {
  after 2 {
    menu tkcon on
  }
}

On Wed, Mar 21, 2012 at 04:17:30PM +0100, mbcx7sa3_at_zedat.fu-berlin.de wrote:
> Hello all,
>
> Is it possible to start the TK console from the VMD terminal window?
> After starting VMD it keeps telling me "invalid command name "tkcon"". I
> have to start the console manually from "Extensions --> TK Console" first,
> before the command starts working.
>
> Cheers,
> Suliman

-- 
NIH Resource for Macromolecular Modeling and Bioinformatics
Beckman Institute for Advanced Science and Technology
University of Illinois, 405 N. Mathews Ave, Urbana, IL 61801
http://www.ks.uiuc.edu/~johns/           Phone: 217-244-3349
http://www.ks.uiuc.edu/Research/vmd/       Fax: 217-244-6078