network: Show wifi information

This commit is contained in:
Jordan Ruthe
2021-02-15 15:35:13 -05:00
parent a332556a51
commit 79eefbd170
3 changed files with 166 additions and 24 deletions

View File

@@ -28,6 +28,7 @@ from ks_includes.KlippyRest import KlippyRest
from ks_includes.files import KlippyFiles
from ks_includes.KlippyGtk import KlippyGtk
from ks_includes.printer import Printer
from ks_includes.wifi import WifiManager
from ks_includes.config import KlipperScreenConfig
@@ -109,6 +110,9 @@ class KlipperScreen(Gtk.Window):
self.lang = gettext.translation('KlipperScreen', localedir='ks_includes/locales', fallback=True)
self._config = KlipperScreenConfig(configfile, self.lang, self)
self.wifi = WifiManager()
self.wifi.start()
logger.debug("OS Language: %s" % os.getenv('LANG'))
self.lang_ltr = True
@@ -131,8 +135,6 @@ class KlipperScreen(Gtk.Window):
self.gtk = KlippyGtk(self.width, self.height)
self.init_style()
#self._load_panels()
self.printer_initializing(_("Initializing"))
# Disable DPMS