From: <mar...@di...> - 2019-02-01 13:06:11
|
Hi John, thanks for your mail. I just went the Tkinter route because I was interested in how the whole tcl based GUI works. It was an easy way for me to try it out. I'm interested in tcl because I make music in my spare time with Pure data which has also a tcl based GUI. https://en.wikipedia.org/wiki/Pure_Data https://github.com/pure-data/pure-data Pure Data also has a plugin to call external Python scripts: https://github.com/grrrr/py So I'm just experimenting a bit, learning tcl and how both ascend and pure data work in regard to their tcl interfaces. And maybe I will some day in the future be able to spin out a general interface for both ascend and pure data. There are some articles I've found where one could also think of doing this with PyGObject: https://www.tcl.tk/community/tcl2017/assets/talk85/Paper.pdf https://jefftrull.github.io/eda/qt/tcl/eventloop/2012/05/25/integrating-qt-tcl-event-loops.html https://pygobject.readthedocs.io/en/latest/guide/threading.html It's also just a little side project where I can learn how ascend worked back then when the Carnegie Mellon folks were working on it. I feel a bit like a software archaeologist when diving into the tcl code which is quite fun. ;) Right now I'm stuck with "couldn't find procedure Color_Init". And I can't find it myself in which file this procedure ought to be. Searching through the whole trunk branch gave no results: $ grep -Ril Color_Init * Cheers, mark On 2019-02-01 13:12, asc...@li... wrote: > Send Ascend-sim-users mailing list submissions to > asc...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/ascend-sim-users > or, via email, send a message with subject or body 'help' to > asc...@li... > > You can reach the person managing the list at > asc...@li... > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Ascend-sim-users digest..." > > > Today's Topics: > > 1. Re: Check out the oldschool ASCEND tcl/tk interface with > TkInter (John Pye) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Fri, 1 Feb 2019 10:47:30 +1100 > From: John Pye <joh...@an...> > To: mar...@di..., asc...@li... > Subject: Re: [ASCEND] Check out the oldschool ASCEND tcl/tk interface > with TkInter > Message-ID: <376...@an...> > Content-Type: text/plain; charset=utf-8; format=flowed > > Hi Mark > > Apologies for the delay in my reply. I 'recently' removed that > interval.c stuff from trunk as part of my attempt to clean up libascend > and increase the test suite coverage, forgetting that it was used in > the > Tcl/Tk GUI. However rather than deleting the files, I moved them to the > 'disused/compiler' folder. I should perhaps copy them back from there > back into trunk/ascend/compiler in order to preserve file history. > > http://code.ascend4.org/ascend?view=revision&revision=3408 > > Regarding the Tcl/Tk GUI, that GUI still compiles/runs in trunk using > regular Tcl/Tk (not TkInter), when building with SCons. Did you try > that > route? The starting point is the script tcltk/asc4dev, which will be > built by SCons if all required dependencies are met. > > It's very interesting that you were able to run the GUI via Python and > TkInter, but I am wondering what you feel would be the benefit would be > of maintaining such an approach, as opposed to the Python-free Tcl/Tk > GUI that is currently built (although rarely testing, I have to admit, > as evidenced by the missing interval.c file that you noticed). > > Cheers > JP > > On 26/12/18 9:26 pm, mar...@di... wrote: >> Dear all, >> I found some time and wrapped the legacy tcl code with TkInter to >> relive the old ASCEND interface. >> >> I made a wiki page for this: >> http://ascend4.org/TkInter_wrapper_for_tcl/tk_GUI >> >> There was an issue with tktable which I couldn't fix and also found >> this bug report which might actually not be resolved: >> http://bugs.ascend4.org/view.php?id=254 >> see also: https://github.com/nbro/tktable/issues/3 >> >> >> Also the trunk branch was missing the interval.c and interval.h files >> in ascend/compiler/. >> I copied the files over from the Python3 branch and then the issue was >> solved >> >> In line 138 in solver.tcl the - bitmap {feet} and -bitmap{stop} >> options couldn't find the bitmaps in ascend/tcltk/tk/bitmaps. >> >> >> Cheers, >> mark >> >> >> _______________________________________________ >> Ascend-sim-users mailing list >> Asc...@li... >> https://lists.sourceforge.net/lists/listinfo/ascend-sim-users > > > > ------------------------------ > > > > ------------------------------ > > Subject: Digest Footer > > _______________________________________________ > Ascend-sim-users mailing list > Asc...@li... > https://lists.sourceforge.net/lists/listinfo/ascend-sim-users > > > ------------------------------ > > End of Ascend-sim-users Digest, Vol 50, Issue 1 > *********************************************** |