moved miner count and hashrate to top of tool
This commit is contained in:
@@ -118,16 +118,11 @@ TABLE_KEYS = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
MINER_COUNT_BUTTONS = [
|
MINER_COUNT_BUTTONS = [
|
||||||
"scan_miner_count",
|
"miner_count",
|
||||||
"cmd_miner_count",
|
|
||||||
"cfg_miner_count",
|
|
||||||
"pools_miner_count",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
HASHRATE_TOTAL_BUTTONS = [
|
HASHRATE_TOTAL_BUTTONS = [
|
||||||
"scan_total_hashrate",
|
"total_hashrate",
|
||||||
"cfg_total_hashrate",
|
|
||||||
"pools_total_hashrate",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
BUTTON_KEYS = [
|
BUTTON_KEYS = [
|
||||||
@@ -201,21 +196,6 @@ def get_scan_layout():
|
|||||||
disabled_button_color=BTN_DISABLED,
|
disabled_button_color=BTN_DISABLED,
|
||||||
mouseover_colors=BTN_DISABLED,
|
mouseover_colors=BTN_DISABLED,
|
||||||
),
|
),
|
||||||
sg.Push(background_color=MAIN_TABS_BG),
|
|
||||||
sg.Button(
|
|
||||||
"Hashrate: 0 TH/s",
|
|
||||||
disabled=True,
|
|
||||||
button_color=("black", "white smoke"),
|
|
||||||
disabled_button_color=("black", "white smoke"),
|
|
||||||
key="scan_total_hashrate",
|
|
||||||
),
|
|
||||||
sg.Button(
|
|
||||||
"Miners: 0",
|
|
||||||
disabled=True,
|
|
||||||
button_color=("black", "white smoke"),
|
|
||||||
disabled_button_color=("black", "white smoke"),
|
|
||||||
key="scan_miner_count",
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
sg.Button(
|
sg.Button(
|
||||||
@@ -291,14 +271,6 @@ def get_command_layout():
|
|||||||
border_width=BTN_BORDER,
|
border_width=BTN_BORDER,
|
||||||
disabled_button_color=BTN_DISABLED,
|
disabled_button_color=BTN_DISABLED,
|
||||||
),
|
),
|
||||||
sg.Push(background_color=MAIN_TABS_BG),
|
|
||||||
sg.Button(
|
|
||||||
"Miners: 0",
|
|
||||||
disabled=True,
|
|
||||||
button_color=("black", "white smoke"),
|
|
||||||
disabled_button_color=("black", "white smoke"),
|
|
||||||
key="cmd_miner_count",
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
sg.Button(
|
sg.Button(
|
||||||
@@ -389,22 +361,6 @@ def get_pools_layout():
|
|||||||
border_width=BTN_BORDER,
|
border_width=BTN_BORDER,
|
||||||
disabled_button_color=BTN_DISABLED,
|
disabled_button_color=BTN_DISABLED,
|
||||||
),
|
),
|
||||||
sg.Push(background_color=MAIN_TABS_BG),
|
|
||||||
sg.Button(
|
|
||||||
"Hashrate: 0 TH/s",
|
|
||||||
disabled=True,
|
|
||||||
button_color=("black", "white smoke"),
|
|
||||||
disabled_button_color=("black", "white smoke"),
|
|
||||||
key="pools_total_hashrate",
|
|
||||||
),
|
|
||||||
sg.Button(
|
|
||||||
"Miners: 0",
|
|
||||||
disabled=True,
|
|
||||||
button_color=("black", "white smoke"),
|
|
||||||
disabled_button_color=("black", "white smoke"),
|
|
||||||
key="pools_miner_count",
|
|
||||||
pad=((5, 5), (0, 0)),
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
sg.TabGroup(
|
sg.TabGroup(
|
||||||
@@ -563,23 +519,6 @@ def get_config_layout():
|
|||||||
disabled_button_color=BTN_DISABLED,
|
disabled_button_color=BTN_DISABLED,
|
||||||
pad=((0, 5), (5, 0)),
|
pad=((0, 5), (5, 0)),
|
||||||
),
|
),
|
||||||
sg.Push(background_color=MAIN_TABS_BG),
|
|
||||||
sg.Button(
|
|
||||||
"Hashrate: 0 TH/s",
|
|
||||||
disabled=True,
|
|
||||||
button_color=("black", "white smoke"),
|
|
||||||
disabled_button_color=("black", "white smoke"),
|
|
||||||
key="cfg_total_hashrate",
|
|
||||||
pad=((0, 10), (3, 2)),
|
|
||||||
),
|
|
||||||
sg.Button(
|
|
||||||
"Miners: 0",
|
|
||||||
disabled=True,
|
|
||||||
button_color=("black", "white smoke"),
|
|
||||||
disabled_button_color=("black", "white smoke"),
|
|
||||||
key="cfg_miner_count",
|
|
||||||
pad=((0, 5), (3, 2)),
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
sg.Button(
|
sg.Button(
|
||||||
@@ -655,6 +594,24 @@ layout = [
|
|||||||
),
|
),
|
||||||
sg.Text("", size=(20, 1), key="progress_percent", justification="r"),
|
sg.Text("", size=(20, 1), key="progress_percent", justification="r"),
|
||||||
],
|
],
|
||||||
|
[
|
||||||
|
sg.Push(),
|
||||||
|
sg.Button(
|
||||||
|
"Hashrate: 0 TH/s",
|
||||||
|
disabled=True,
|
||||||
|
button_color=("black", "white smoke"),
|
||||||
|
disabled_button_color=("black", "white smoke"),
|
||||||
|
key="total_hashrate",
|
||||||
|
),
|
||||||
|
sg.Button(
|
||||||
|
"Miners: 0",
|
||||||
|
disabled=True,
|
||||||
|
button_color=("black", "white smoke"),
|
||||||
|
disabled_button_color=("black", "white smoke"),
|
||||||
|
key="miner_count",
|
||||||
|
),
|
||||||
|
sg.Push(),
|
||||||
|
],
|
||||||
[
|
[
|
||||||
sg.TabGroup(
|
sg.TabGroup(
|
||||||
[
|
[
|
||||||
|
|||||||
Reference in New Issue
Block a user