Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement components with CustomTkinter UI-library based on Tkinter #31

Merged
merged 38 commits into from
Sep 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
8a841b0
init latest UI
yuqisun Jul 20, 2024
2ca17e5
[cgraPannel frame] replace components with CustomTkinter UI-library b…
yuqisun Jul 20, 2024
0e782a9
Merge branch 'tancheng:master' into master
yuqisun Jul 20, 2024
c560a37
Merge remote-tracking branch 'origin/master'
yuqisun Jul 20, 2024
cfb31b9
[cgraPanel frame] adjust button height of DataSPM according to ROWS
yuqisun Jul 20, 2024
a666c24
[cgraPanel frame canvas] enable mousewheel event for scrolling
yuqisun Jul 20, 2024
e256832
[configuration panel] replace components with CustomTkinter
yuqisun Jul 20, 2024
beda57a
[configuration panel] replace components with CustomTkinter - upper part
yuqisun Jul 20, 2024
5da7c1d
[configuration panel] replace with CustomTkinter for 'Tile x function…
yuqisun Jul 21, 2024
47c31fe
[cgraPanel frame] adjust canvas line color to white and add border be…
yuqisun Jul 21, 2024
60bd277
[configuration panel] refine configuration panel layout, event handle…
yuqisun Jul 21, 2024
c9d670d
[configuration panel] add event to control 'Data SPM outgoing links'
yuqisun Jul 22, 2024
52d1eac
[configuration panel] use scrollable frame for 'functional units' and…
yuqisun Jul 23, 2024
b950f3c
[dataPannel panel] 'Verification', 'SVerilog', 'Report area/power' up…
yuqisun Aug 6, 2024
3c2f38d
[layout panel] use customtkinter style
yuqisun Aug 6, 2024
55e06eb
[mapping panel] use customtkinter style
yuqisun Aug 8, 2024
c136f3b
[kernel panel] use customtkinter style
yuqisun Aug 8, 2024
2defd24
fine tune border pad
yuqisun Aug 10, 2024
952acea
[configuration panel] Dynamically adjust the number of Data SPM outgo…
yuqisun Aug 10, 2024
23c753a
[CGRA panel] fix 'Diable entire Tile' and 'Reset'
yuqisun Aug 11, 2024
76c332f
rename file
yuqisun Aug 11, 2024
8fb58e9
Run customtkinter UI in Docker.
yuqisun Aug 15, 2024
b6df576
Run customtkinter UI in Docker.
yuqisun Aug 15, 2024
40e44fd
Fix docker run issues.
yuqisun Aug 18, 2024
3bda50c
[kernel panel] make kernel panel works in Docker container
yuqisun Aug 19, 2024
3a22ea5
[mapping panel] enable customtkinter style for tiles and links
yuqisun Aug 20, 2024
8dc706f
[mapping panel] highlight mapped tile with diff colors
yuqisun Aug 21, 2024
1a5c78f
[mapping panel] highlight mapped tile with diff colors - entire tile …
yuqisun Aug 22, 2024
ecfecce
[mapping panel] highlight mapped tile with diff colors - entire tile …
yuqisun Aug 24, 2024
6210398
[README] update part for Windows docker
yuqisun Aug 24, 2024
64a22e2
[mapping panel] adjust canvas height and weight according to numbers …
yuqisun Aug 28, 2024
663ac90
readme update about windows docker part
yuqisun Aug 28, 2024
e86329a
[verification panel] fix customtkinter convert issue
yuqisun Aug 28, 2024
1309b42
readme update for execution path
yuqisun Aug 28, 2024
782a6ac
[customtkinter style] support light mode
yuqisun Sep 6, 2024
f2d37ba
[customtkinter style] add startup bash to choose theme
yuqisun Sep 8, 2024
a1c9b60
finetune UI style and fix compile issue
yuqisun Sep 13, 2024
e2e3db4
update startup bash
yuqisun Sep 13, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,28 @@ As CGRA-Flow requires GUI, a script is provided for setting up the display:
# Don't forget to activate the python virtual environment once you are in the container:
source /WORK_REPO/venv/bin/activate
```

```shell
# Windows Docker customtkinter style UI (Please setup GUI (X-11) first)
# In WSL
docker pull yuqisun/cgra-flow-win:latest
docker run -it yuqisun/cgra-flow-win bash
docker run -it --name cgra-flow-win yuqisun/cgra-flow-win bash

# In container
root@2cd33efd97b3 WORK_REPO# export DISPLAY=192.168.3.38:0.0 # change to your own ipv4 address with 0.0
root@2cd33efd97b3 WORK_REPO# source venv/bin/activate
(venv) root@2cd33efd97b3 WORK_REPO# cd /WORK_REPO/CGRA-Flow

# Three themes are available: dark, light, and classic
# Start with default theme (dark mode)
(venv) root@2cd33efd97b3 build# ./launchUI.bash
# Start with light theme
(venv) root@2cd33efd97b3 build# ./launchUI.bash light
# Start with classic theme
(venv) root@2cd33efd97b3 build# ./launchUI.bash classic
```

Otherwise, if you don't need the GUI, development can be performed in the container with the environment well set up:
```sh
docker pull cgra/cgra-flow:demo
Expand Down
20 changes: 20 additions & 0 deletions launchUI.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash

input_theme=$1
echo "Theme: $input_theme"

cd build
if [ "$input_theme" == "classic" ]; then
echo "classic theme selected"
#start dark theme
python ../launchUI_classic.py
elif [ "$input_theme" == "light" ]; then
echo "light theme selected"
#start light theme
python ../launchUI.py --theme light
else
echo "No theme selected, will start default theme (dark mode)"
#start default theme (dark mode)
python ../launchUI.py
fi

Loading
Loading