-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcmder_gui.py
49 lines (41 loc) · 1.48 KB
/
cmder_gui.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/usr/bin/python3
import os
import iquail
import logging
logging.basicConfig(
level=logging.DEBUG,
filename=os.path.join(os.path.dirname(__file__), '..', 'iquail.log'),
)
if not iquail.helper.OS_WINDOWS:
raise AssertionError("This test solution is windows only")
class FrameSelectMiniOrFull(iquail.controller_tkinter.FrameBaseConfigure):
def __init__(self, parent, controller):
super().__init__(parent, controller)
self.version_selected = self.add_combobox("Which version would you like to install?",
('Full', 'Mini'))
def next_pressed(self):
print(self.version_selected.get())
version = self.version_selected.get().lower()
zip = "cmder_mini.zip" if version == "mini" else "cmder.zip"
self.manager.config.set("zip_url", zip)
self.controller.switch_to_install_frame()
iquail.run(
solution=iquail.SolutionGitHub(
iquail.ConfVar("zip_url", default_value="cmder_mini.zip"),
"https://github.com/cmderdev/cmder"),
installer=iquail.Installer(
publisher='cmderdev',
name='Cmder',
icon='Cmder.exe',
binary='Cmder.exe',
console=False,
launch_with_quail=True,
),
builder=iquail.builder.Builder(
iquail.builder.CmdIcon('icon.ico'),
iquail.builder.CmdNoconsole()
),
controller=iquail.ControllerTkinter(
install_custom_frame=FrameSelectMiniOrFull),
conf_ignore=["config/*"]
)