Tk Source Code

Ticket Change Details
Login
Overview

Artifact ID: a6e011b10861bbe4eee9b59ecde15369f7fd892d
Ticket: d01ec103c0a87efb1ea6204eb9a7c0be4c981d0d
After "wm withdraw .;wm state . iconic", "wm state ." always returns "withdrawn"
User & Date: oehhar 2014-01-23 14:05:19
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    <H1>Issue</H1>
    When a tk window is started by the sequence "wm wtihdraw .;wm state . iconic", the command "wm state ." will return "withdrawn" and not "iconic".
    
    <H1>Environment</H1>
    
      *  Linux CentOS 6.5 64 bit
      *  WM: Gnome
      *  Tk 8.5.7, 8.6.0, 8.6.1
    
    <H1>Demonstration</H1>
    
    Having a file "wmt.tcl" like:
    <verbatim>
    package require Tk
    proc showstate {} {
        puts [wm state .]
        after 1000 showstate
    }
    wm withdraw .
    wm state . iconic
    after 1000 showstate
    </verbatim>
    
    And starting by:
    <verbatim>
    wish wmt.tcl
    </verbatim>
    
    The printed result of "wm state ." is constantly "withdrawn".
    
    Even if the window state is changed by the user by deiconifying the window, it still shows "withdrawn". Only an explicit command "wm state . normal" will change the returned state.
    
  5. foundin changed to: "8.6.1"
  6. is_private changed to: "0"
  7. login: "oehhar"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "0f366eb3e9e2fcab52b8ebacd197db9047186a5f"
  10. resolution changed to: "None"
  11. severity changed to: "Important"
  12. status changed to: "Open"
  13. submitter changed to: "oehhar"
  14. subsystem changed to: "67. Unix Window Operations"
  15. title changed to:
    After "wm withdraw .;wm state . iconic", "wm state ." always returns "withdrawn"
    
  16. type changed to: "Bug"