Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open Tcl/tk window in workspace two

Status
Not open for further replies.

Vinx76

Programmer
Jan 26, 2007
5
ES
Hi all
I'm developing a software compose by two separate window.
I would like to know if it's possible load one of those windows in a different workspace.
If it's possible please show me how.

Thank you all
 
By "workspace" do you mean on another platform?

_________________
Bob Rashkin
 
or do you mean another desktop (linux desktop)?

please be a tad bit more precise
 
For Workspace i mean one of the four "Virtual Desktop" (Linux).

Thanks all
 
Use the -screen option of the toplevel command.

From the manual:

-screen
Specifies the screen on which to place the new window. Any valid screen name may be used, even one associated with a different display. Defaults to the same screen as its parent. This option is special in that it may not be specified via the option database, and it may not be modified with the configure widget command.


More on:
For a use of this option dig in:
To have a look try:
Code:
  toplevel .t
  puts [.t cget -screen]

HTH

ulis
 
I've to specify the "valid screen name"!??!
How can i know the name of Virtual Desktop 2?
 
I hope that the above code will display that screen name when executed from a virtual desktop.

On UNIX should be 0.0, 0.1...

ulis

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top