Questions tagged [itcl]

[incr Tcl] is an object system for Tcl

56 questions
0
votes
2 answers

TCL Array: Data Not Persistent?

I'm going through a crash course in TCL and I'm running into a problem with arrays in TCL. I have two classes, say A and B. In class B I have a method that updates a local array. The format for the array is something like this: filterData(1) =…
Scott James Walter
  • 427
  • 1
  • 6
  • 20
0
votes
1 answer

How to inherit classes that inherits base class more than once

Title is not clear. Here I am explaining I am having a package say package provide test. It is having classes. I am using Itcl. Package is having following structure ::itcl::class classA { written something having constructor and…
Sumit
  • 1,953
  • 6
  • 32
  • 58
0
votes
1 answer

itcl How to pass objects around to other objects

I'm just getting started with itcl and I have found How to pass itcl object from one class to another? but that did not help me. I have the following objects defined: package require Itcl namespace eval FEM { itcl::class Node { variable…
Lumpi
  • 2,697
  • 5
  • 38
  • 47
0
votes
1 answer

How to pass itcl object from one class to another?

I have a 3 classes: A , B and C, theye are all in the same namespace: foo. I create an instance of the C inside A: set object [::foo::C \#auto $param] $b addObject $object ;# b is a instance of the B But inside B I cannot use the object: It's…
Vardan Hovhannisyan
  • 1,101
  • 3
  • 17
  • 40
0
votes
3 answers

Tcl namespace renaming to avoid conflicts

I want to rename or delete namespace in tcl, can anyone tell me how to do it? rename gk "" Here gk is the namespace
0
votes
1 answer

Hierarchical structure of classes object with Incr Tcl

I'm trying to implement a hierarchical structure of classes/subclasses objects such as: |-- Class1 # mainClass | |-- SubClassA # subClass | `-- SubClassB # subClass `-- Class2 # mainClass …
Mousstix
  • 303
  • 1
  • 3
  • 8
0
votes
1 answer

conversion from Tcl to Itcl

i am very new to ITCL can some one help me how to convert following code from Tcl to itcl catch { namespace delete ::HVToolSet } namespace eval ::HVToolSet { } { } proc ::HVToolSet::Main {} { if {[winfo exists .main]} { destroy .main …
surendra
  • 551
  • 3
  • 13
  • 27
-1
votes
1 answer

Why does tclOO Exist?

We have been using Itcl for years. I've haven't had to code anything in tcl for several years. I recently realized that a new object oriented system has been added to tcl - tclOO! What the heck is this and why does it exist? Is it supposed to…
-1
votes
1 answer

Itcl supported by Python?

I was wondering if itcl is supported by python, cause it seems to be a part of the tcl/tk lib. And while I have not found out where the widgets in cpython actually gets created, I guess it should be somewhat itcl. So my attempt was a copy of this in…
Thingamabobs
  • 7,274
  • 5
  • 21
  • 54
-1
votes
1 answer

mcu8051ide Missing existing library itcl3.4 (Ubuntu 18.04)

Issue is the same as this question. As suggested I used tcl8.6, the application worked, but having problems with user interface like glitching UI and not working arrow keys (someone suggested here to use tcl8.5 to solve some of these issues). But…
FFaFafy
  • 27
  • 5
-3
votes
2 answers

need regexp to extract the string from end of the file path

I have this file path called : images/Linux/RHEL7-x64/PTSVPL/ptsvpl-esxi-x86_64-7.20.0302.vmdk and i want to extract the string from the end from this i.e i want the string : ptsvpl-esxi-x86_64-7.20.0302.vmdk from whole line, please help me for…
vinay
  • 53
  • 1
  • 8
1 2 3
4