A demo python GUI widget meant to facilate the parameter-settings (Contact Energies) in CompCell3D Git Page using TkInter
For PyQt
version Checkout the PyQt branch
It simply converts between the copy-pasted XML contents and a visual table. XML parsing is done using regular expressions.
Could be adapted for other parameter-settings in XML.
- Python 3.10.12 (Other python should also work; and
TkInter
used is already an integral part ofPython
) Numpy
conda
(currently only support python>=3.8)
conda install -c xemin0 xml2table
- Directly clone the repo
git clone https://github.com/Xemin0/XML2Table
simply run xml2table
from command line
Navigate to xml2table/
folder then start the program by running
python xml2table.py
Either:
- Copy-paste the contact energy section/plugin from the CC3D generated XML file into the text field on the left
- Start from scratch by adding new cells
Then each button literally does what it says.
- The values and the background colors of symmetric entry pairs are dynamically synchronized.
- The whole table's colors are updated for each change in any entry value
- The color dynamically assigned to each entry is determined based on its relative position with respect to the min_max values of the current table
- The colors are not equally spaced (as in the color bar)