Which tool is better
Anonymous Poll
18%
Crb
50%
mio-kitchen
1%
Ti-kitchen
4%
UKR
1%
Superr
32%
DNA
3%
MIK
7%
Others
❤2
I aim to replace crb by mio-kitchen,Can you discuss what features of crb charmed you?
❤3
join the development of UKA:https://news.1rj.ru/str/uka_developers
example code
from src.core.addon_register import Entry
def main():
from tkinter import Toplevel
from src.core import utils
# project_name
from src.tkui.tool import project_manger
from src.tkui.tool import current_project_name # This variable must import after tool inited.
print(f'Project name:{current_project_name.get()}')
print(f'Project path:{project_manger.get_work_path(current_project_name.get())}')
print(f'Project work path(include images, unpacked folders):{project_manger.current_work_path()}')
print(f'Project work output path(include repacked images):{project_manger.current_work_output_path()}')
print(f'Projects:{" ".join(project_manger.get_projects())}')
# check if the tool inited
from src.core.utils import states
print(f'The tool is init state is {states.inited}')
# run command or binaries
from src.core.utils import call
command = ['mkfs.erofs', '--help']
print(f'Run {command}')
ret=call(command)
print(f'exit code:{ret}')
# run without output
ret = call(command, out=False)
print(f'exit code:{ret}')
# run my own commands
command = ['curl', '--help']
ret = call(command, extra_path=False)
print(f'Run {command}')
print(f'exit code:{ret}')
ck = Toplevel()
ck.noscript("Created by Plugin")
entrance = {Entry.main: main}