mirror of
https://github.com/aclist/dztui.git
synced 2026-10-31 15:12:48 +01:00
chore: update comments and imports
This commit is contained in:
1 parent
64384d1ac6
commit
c4b918d61e
3 files changed
+6
-3
No files matched your search
+1
-1
@@ -104,7 +104,7 @@ def main() -> None:
|
|||||||
rebuild_symlinks(XDG.config)
|
rebuild_symlinks(XDG.config)
|
||||||
remove_stale_signatures(XDG.config, XDG.version)
|
remove_stale_signatures(XDG.config, XDG.version)
|
||||||
|
|
||||||
# TODO: handle IP DB failure
|
# TODO: handle IP DB failure and use coords fallback
|
||||||
get_ipdb(XDG.ips)
|
get_ipdb(XDG.ips)
|
||||||
local_coords = get_local_coords(XDG.ips)
|
local_coords = get_local_coords(XDG.ips)
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
|
from dzgui.views.components.web_button import WebButton
|
||||||
|
|
||||||
import gi
|
import gi
|
||||||
gi.require_version("Gtk", "3.0")
|
gi.require_version("Gtk", "3.0")
|
||||||
from gi.repository import Gtk # noqa E402
|
from gi.repository import Gtk # noqa E402
|
||||||
|
|
||||||
from dzgui.views.components.web_button import WebButton
|
|
||||||
|
|
||||||
class ConnectPanel(Gtk.Frame):
|
class ConnectPanel(Gtk.Frame):
|
||||||
def __init__(self) -> None:
|
def __init__(self) -> None:
|
||||||
@@ -10,10 +11,11 @@ class ConnectPanel(Gtk.Frame):
|
|||||||
|
|
||||||
self.label = Gtk.Label(label="Add/connect")
|
self.label = Gtk.Label(label="Add/connect")
|
||||||
self.label2 = Gtk.Label(label="Favorite server")
|
self.label2 = Gtk.Label(label="Favorite server")
|
||||||
|
|
||||||
# TODO: embold function
|
# TODO: embold function
|
||||||
#self.label2.set_markup("<b>Favorite server</b>")
|
#self.label2.set_markup("<b>Favorite server</b>")
|
||||||
|
|
||||||
self.label2.set_markup("<b>Favorite server</b>")
|
self.label2.set_markup("<b>Favorite server</b>")
|
||||||
sep = Gtk.Separator()
|
|
||||||
self.entry1 = Gtk.Entry(placeholder_text="Enter IP or Battlemetrics ID", hexpand=False)
|
self.entry1 = Gtk.Entry(placeholder_text="Enter IP or Battlemetrics ID", hexpand=False)
|
||||||
self.entry2 = Gtk.Entry()
|
self.entry2 = Gtk.Entry()
|
||||||
self.fav = Gtk.Label(label="MY favorite server very long title")
|
self.fav = Gtk.Label(label="MY favorite server very long title")
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ class RightPanel(Gtk.Box):
|
|||||||
)
|
)
|
||||||
self.ping.connect("clicked", self._on_ping_clicked)
|
self.ping.connect("clicked", self._on_ping_clicked)
|
||||||
|
|
||||||
|
# TODO: drop after adding context menu row
|
||||||
self.debug_toggle = Gtk.ToggleButton(
|
self.debug_toggle = Gtk.ToggleButton(
|
||||||
label=strings.debug_mode,
|
label=strings.debug_mode,
|
||||||
margin_top=10,
|
margin_top=10,
|
||||||
|
|||||||
Reference in new issue
Block a user