Error In Startup Script Invalid Command Name Frame
you by: delson, dorothyr Summary Files Reviews Support Wiki Tickets ▾ Bugs Feature Requests Support Requests Patches News Discussion Code Create Topic Stats Graph Forums Help 45 Open Discussion 89 Help Formatting Help error in startup script Forum: Help Creator: john Created: 2007-08-31 Updated: 2013-04-17 john - 2007-08-31 I am new to TKCVS and after installing it on a Solaris box, I am getting the following error. The command I am running is just tkcvs without any options or additional commands. Error in startup script: unknown color name "white" (database entry for "-background" in widget ".workdir.top.tcwd.e") invoked from within "::entry $w.e -relief flat -border 0 -textvariable $varName -bg $cvsglb(textbg)" (procedure "::picklist::entry" line 10) invoked from within "::picklist::entry .workdir.top.tcwd cwd directory" (procedure "workdir_setup" line 47) invoked from within "workdir_setup" invoked from within "if {[string match {mod*} $cvscfg(startwindow)]} { wm withdraw . foreach {incvs insvn inrcs} [cvsroot_check [pwd]] { break } if {$insvn} { s..." (file "/usr/local/bin/tkcvs" line 338) If you would like to refer to this comment somewhere else in this project, copy and paste the following link: DorothyR - 2007-09-01 Tk requires a functioning X11 environment. Yours isn't even finding the rgb.txt file, apparently. Something is severely mis-configured either on your system or in your environment. Sorry, you'll have to get that figured out first. If you would like to refer to this comment somewhere else in this project, copy and paste the following link: john - 2007-09-04 I do have X11 installed and it is working with other applications without any problems. Does TKCVS look for the rgb.txt in any particular path? If I add TCLROOT=/usr/local to my env then the only error I get is the following: ==================================== Error in startup script: invalid command name "::picklist::load" while executing "::picklist::load" (file "/usr/local/bin/tkcvs" line 103) ==================================== If I remove the TCLROOT then I get the above error. If you would like to refer to this comment somewhere else in this project, copy and paste the following link: DorothyR - 2007-09-04 That time, I don't think you got far enough to ask for a color. Do you have OPENWINHOME set in your environment? As far as I know it's always been necessary to have OPENWINHOME=/usr/openwin on a Sun, no matter which session manager you're using. As far as I can tell, Tk doesn't access rgb.txt directly. It uses the X11 API with calls
von GoogleAnmeldenAusgeblendete FelderNach Gruppen oder Nachrichten suchen
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of http://stackoverflow.com/questions/16059592/tkinter-tclerror-invalid-command-name-4302957584 this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up error in _tkinter.TclError: invalid command name “.4302957584” up vote 4 down vote favorite When closing the python 3 program, I get a strange exception in the console. The Python 3 code: from tkinter import * from random import randint # Return a random color string in the form of #RRGGBB def getRandomColor(): color = "#" for j in range(6): color += toHexChar(randint(0, 15)) # Add error in startup a random digit return color # Convert an integer to a single hex digit in a character def toHexChar(hexValue): if 0 <= hexValue <= 9: return chr(hexValue + ord('0')) else: # 10 <= hexValue <= 15 return chr(hexValue - 10 + ord('A')) # Define a Ball class class Ball: def __init__(self): self.x = 0 # Starting center position self.y = 0 self.dx = 2 # Move right by default self.dy = 2 # Move down by default self.radius = 3 self.color = getRandomColor() class BounceBalls: def __init__(self): self.ballList = [] # Create a list for balls window = Tk() window.title("Bouncing Balls") ### Create Canvas ### self.width = 350 self.height = 150 self.canvas = Canvas(window, bg = "white", width = self.width, height = self.height) self.canvas.pack() ### Create Buttons ### frame = Frame(window) frame.pack() btStop = Button(frame, text = "Stop", command = self.stop) btStop.pack(side = LEFT) btResume = Button(frame, text = "Resume", command = self.resume) btResume.pack(side = LEFT) btAdd = Button(frame, text = "Add", command = self.add) btAdd.pack(side = LEFT) btRemove = Button(frame, text = "Remove", command = self.remove) btRemove.pack(side = LEFT) self.sleepTime = 20 self.isStopped = False self.a