Skip to content
Permalink
Browse files

maybe fixed progress bar

  • Loading branch information
slinger360 committed Jan 13, 2020
1 parent 69aaf29 commit 62a20e9cd5151df2b19c5f7bbbf2937ee6041d85
Showing with 6 additions and 8 deletions.
  1. +4 −0 fwupd.py
  2. +0 −6 main.py
  3. +2 −2 ninerift.kv
@@ -24,6 +24,8 @@ def __init__(self, conn):
self.PING_RETRIES = 3
self.nolock = False
self.conn = conn
self.progress = 0
self.maxprog = 100

def checksum(self, s, data):
for c in data:
@@ -104,4 +106,6 @@ def Flash(self, fwfilep):

@mainthread
def update_progress(self, progress, maxprogress):
self.progress = progress
self.max = maxprogress
pass
@@ -28,12 +28,6 @@
class MainWindow(BoxLayout):
pass

class FlashScreen(Screen):
def setprog(self, prog, mprog):
ProgBar = self.ids['fwprogbar']
ProgBar.value = prog
ProgBar.max = mprog

class CommandScreen(Screen):
def setcmd(self,c):
ScriptUI = self.ids['scriptspace']
@@ -61,8 +61,8 @@
ProgressBar:
id: fwprogbar
size_hint_y: .3
value: 0
max: 100
value: app.fwupd.progress
max: app.fwupd.maxprog
Button:
disabled: app.conn.state in ('disconnected',)
size_hint_y: .7

0 comments on commit 62a20e9

Please sign in to comment.
You can’t perform that action at this time.