Tim Edwards
09/14/2023, 12:32 AM.graphdialog
window, he got a text input window with contents that appear to correspond to the information the graph symbol is storing. The only thing I can think of is that the Mac (XQuartz presumably being the culprit?) does not interpret the "Double-Button-" event from Tk correctly. But then, there's nothing that I can figure out to do that would bring up the text window with that content ("q" on the graph window just brings up an empty text window). So I'm not sure what callback function got executed. Apparently not graph_edit_properties
, though.Harald Pretl
09/14/2023, 4:05 PMTim Edwards
09/14/2023, 4:06 PMHarald Pretl
09/14/2023, 4:07 PMTim Edwards
09/14/2023, 4:10 PMHarald Pretl
09/14/2023, 4:17 PMHarald Pretl
09/14/2023, 4:19 PMXQartz
implementation is but funky, I have to add. It is quite slow and sometimes shows updating artifacts (this means, window parts are NOT updated, resulting in missing menu items, etc.)Tim Edwards
09/14/2023, 4:19 PMHarald Pretl
09/14/2023, 4:20 PMTim Edwards
09/14/2023, 4:23 PMTim Edwards
09/14/2023, 4:28 PMxschem.tcl
(/usr/local/share/xschem/xschem.tcl
on Linux systems; might be the same install path on Mac OS) line 4654; just copy that line
bind $topwin <Double-Button-1> "xschem callback %W -3 %x %y 0 %b 0 %s"
and assign the same callback function to an unused key or key combination, like:
bind $topwin <Control-q> "xschem callback %W -3 %x %y 0 %b 0 %s"
and then see if that one works where the double-button doesn't.Tim Edwards
09/14/2023, 4:30 PMHarald Pretl
09/14/2023, 4:30 PMTim Edwards
09/14/2023, 5:01 PMgraph_edit_properties 0
on the command line, and the window pops up. That definitely pins down the problem as an issue with the double-click binding, since all the callback does is to figure out which graph has been clicked on and then call graph_edit_properties
.Harald Pretl
09/14/2023, 5:16 PMgraph_edit_properties 0
pops up the window, but super small (one has to increase window size manually for the dialog window). Maybe a hint?Stefan Schippers
09/15/2023, 8:18 AMxschem raw_query loaded
. It returns the hierarchy level (starts at 0) where the raw file has been loaded or -1 if no raw file is in memory.
All what the dialog box window does is setting the rectangle set of attributes according to user selections in the dialog box.
You can always manually edit the attributes as raw text even if .raw file is loaded:
• single left button click the area shown in the attached image.
• hit '`q`' or Properties->Edit
Stefan Schippers
09/15/2023, 8:20 AMTim Edwards
09/15/2023, 12:29 PMStefan Schippers
09/15/2023, 1:29 PMStefan Schippers
09/15/2023, 1:36 PMwish
on the MacOS and give this command:
bind . <Double-Button-1> {puts hello}
does the system print hello
when the user double clicks in the wish toplevel window?Stefan Schippers
09/15/2023, 1:48 PMTim Edwards
09/15/2023, 2:27 PMxschem raw_query loaded
was returning 0
. I think I just had an outdated version (I failed to practice what I preach. . .).Harald Pretl
09/15/2023, 2:36 PMwish
thing, and yes it does show the hello string.Harald Pretl
09/15/2023, 2:40 PMtest_nmos.sch
, ran sim, loaded data, double-clicked the graph window. The dialog pops up, but in miniatutized form (look closely in left top corner). When one manually extends the window it looks fine. @Stefan Schippers So the actual bug is: The window is miniature on double-click.Harald Pretl
09/15/2023, 2:42 PMTim Edwards
09/15/2023, 2:58 PMStefan Schippers
09/15/2023, 3:13 PMHarald Pretl
09/15/2023, 3:14 PMq
works fine.Stefan Schippers
09/15/2023, 4:05 PMtoplevel .graphdialog -width 1 -height 1
and replace with:
toplevel .graphdialog
then rebuild xschem .
I don't remember why i did create the toplevel window with 1x1 size and resize it later (it seems a bug to me, may be the reason was to avoid some flickering, I dont remember), so I think I will remove that upstream too.
I am surprised it does not show as 1x1 on Linux too, may be the window manager kicks in after the creation and resets the size.
[Edit]
Its funny, but the behavior you saw on MacOS (miniaturized graph dialog) seems the correct one. I have fixed this upstream too. Thank you for reporting that.Harald Pretl
09/15/2023, 4:17 PMcb1b8a09a65b565646d5cada2f81a2570d495ba0
works like a charm. Case closed.Stefan Schippers
09/15/2023, 4:18 PM