working on filling in status page data
This commit is contained in:
parent
1cc07cdbb2
commit
26af9578d6
14
mythboxee.py
14
mythboxee.py
|
@ -774,6 +774,20 @@ class MythBoxee:
|
|||
self.config.Reset("loadingstatus")
|
||||
mc.CloseWindow()
|
||||
|
||||
if isRecording == True:
|
||||
is_recording_txt = "is recording"
|
||||
else:
|
||||
is_recording_txt = "is not recording"
|
||||
|
||||
mc.GetWindow(14003).GetLabel(1023).SetLabel("Encoder " + str(recorders[0]) + " " + is_recording_txt + ".")
|
||||
#mc.GetWindow(14003).GetLabel(1033).SetLabel()
|
||||
|
||||
text = None
|
||||
for program in upcoming:
|
||||
text = text + str(program.title) + "\n"
|
||||
|
||||
mc.GetWindow(14003).GetEdit(1043).SetText(text)
|
||||
|
||||
self.log("def(StatusInit): Recorders: " + str(recorders))
|
||||
self.log("def(StatusInit): Uptime: " + str(uptime))
|
||||
self.log("def(StatusInit): Load: " + str(load))
|
||||
|
|
|
@ -38,6 +38,12 @@ mb.StatusInit()
|
|||
<label>Encoder Status</label>
|
||||
<font>font28b</font>
|
||||
</control>
|
||||
<control type="label" id="1023">
|
||||
<posx>45</posx>
|
||||
<posy>135</posy>
|
||||
<label>Loading Encoder Status ...</label>
|
||||
<font>font18</font>
|
||||
</control>
|
||||
</control>
|
||||
|
||||
<!-- END ENCODE STATUS -->
|
||||
|
@ -58,6 +64,12 @@ mb.StatusInit()
|
|||
<label>System Information</label>
|
||||
<font>font28b</font>
|
||||
</control>
|
||||
<control type="label" id="1033">
|
||||
<posx>675</posx>
|
||||
<posy>135</posy>
|
||||
<label>Loading System Information ...</label>
|
||||
<font>font18</font>
|
||||
</control>
|
||||
</control>
|
||||
|
||||
<!-- END SYSTEM INFORMATION -->
|
||||
|
@ -75,9 +87,31 @@ mb.StatusInit()
|
|||
<control type="label" id="1042">
|
||||
<posx>30</posx>
|
||||
<posy>430</posy>
|
||||
<label>Upcoming Schedule</label>
|
||||
<label>Schedule</label>
|
||||
<font>font28b</font>
|
||||
</control>
|
||||
<control type="list" id="1043">
|
||||
<posx>45</posx>
|
||||
<posy>460</posy>
|
||||
<itemlayout width="580" height="220">
|
||||
<control type="label">
|
||||
<posx>5</posx>
|
||||
<posy>5</posy>
|
||||
<width>400</width>
|
||||
<height>50</height>
|
||||
<info>ListItem.Label</info>
|
||||
</control>
|
||||
</itemlayout>
|
||||
<focusedlayout width="580" height="220">
|
||||
<control type="label">
|
||||
<posx>5</posx>
|
||||
<posy>5</posy>
|
||||
<width>400</width>
|
||||
<height>50</height>
|
||||
<info>ListItem.Label</info>
|
||||
</control>
|
||||
</focusedlayout>
|
||||
</control>
|
||||
</control>
|
||||
|
||||
<!-- END SCHEDULE -->
|
||||
|
|
Loading…
Reference in New Issue