Menu

#12 Problem with interface port editing

v2.0
open
nobody
interface (7)
5
2015-07-29
2008-12-10
No

When i click on the drop-down/list-box to set the number of wires for a port I get this error:

bad window path name ".dblist"
bad window path name ".dblist"
while executing
"grab set $w"
(procedure "dialogWait" line 13)
invoked from within
"dialogWait .dblist -dosync 0"
(procedure "Dropbox::showlist" line 32)
invoked from within
"Dropbox::showlist $w"
(procedure "Dropbox::press" line 10)
invoked from within
"Dropbox::press .edport.box.bit"
(command bound to event)

This happens either in the Port Properties dialog that pops-up after a right-click+add input/output
Or when using the Port List in the Interface tab

TKGate 2.0-a11 on Linux 2.6.27-9-generic x86_64 GNU/Linux (Ubuntu 8.10)

Discussion

  • Gilles Duboscq

    Gilles Duboscq - 2008-12-10

    In fact this applies to all dropbox elements in the UI

     
  • LukePH

    LukePH - 2009-03-10

    Having the same problem

     
  • Andrey Skvortsov

    The proposed solution is in the default branch at https://bitbucket.org/starling13/tkgate .
    It changes the behaviour of drop-down lists, which are disappeared after mouse pointer leaves it and need to be discussed.

    Here is the patch:

    diff -r 8e17497f9859 -r b9cd6487de2e scripts/dropbox.tcl
    --- a/scripts/dropbox.tcl   Tue Jul 28 15:20:19 2015 +0300
    +++ b/scripts/dropbox.tcl   Wed Jul 29 10:20:49 2015 +0300
    @@ -365,7 +365,7 @@
           .dblist.lb insert end $i
         }
    
    
    -    bind $w_top <Configure> { destroy .dblist }
    +    bind .dblist <Leave> { destroy .dblist }
         bind .dblist <Button-1> "Dropbox::listdnaction $w %W"
         bind .dblist <ButtonRelease-1> "Dropbox::listupaction $w %W"
         bind .dblist <Enter> "Dropbox::didEnter $w"
    

    The problem is in that on Cygwin the top-level window is reconfigured many times while
    drop-down box is being created and displayed, but on linux (at least) it is reconfigured only after window changes its size or positioning.

     

    Last edit: Andrey Skvortsov 2015-09-29

Log in to post a comment.

MongoDB Logo MongoDB