Too many changes to list. Rewrote the entire mythboxee.py file, split code into classes mainly. Closes #1, #2, #4, #6
This commit is contained in:
parent
eb3c47dba5
commit
4dc1297356
853
mythboxee.py
853
mythboxee.py
File diff suppressed because it is too large
Load Diff
|
@ -3,12 +3,12 @@
|
|||
<defaultcontrol always="true">1030</defaultcontrol>
|
||||
<allowoverlay>yes</allowoverlay>
|
||||
<onload lang="python"><![CDATA[
|
||||
from mythboxee import MythBoxee
|
||||
mb = MythBoxee()
|
||||
mb.LoadMain()
|
||||
from mythboxee import *
|
||||
mb = MythBoxeeMain()
|
||||
]]></onload>
|
||||
<onunload lang="python"><![CDATA[
|
||||
mb.stop()
|
||||
if mb:
|
||||
mb.unload()
|
||||
]]></onunload>
|
||||
<controls>
|
||||
<control type="group" id="1010">
|
||||
|
@ -34,19 +34,11 @@ mb.stop()
|
|||
</control>
|
||||
<control type="grouplist" id="1040">
|
||||
<posy>28</posy>
|
||||
<posx>780</posx>
|
||||
<posx>920</posx>
|
||||
<width>500</width>
|
||||
<itemgap>10</itemgap>
|
||||
<orientation>horizontal</orientation>
|
||||
<ondown>1030</ondown>
|
||||
<control type="button" id="1041">
|
||||
<label>Refresh</label>
|
||||
<texturefocus>bg_btn.png</texturefocus>
|
||||
<texturenofocus></texturenofocus>
|
||||
<height>30</height>
|
||||
<align>center</align>
|
||||
<onclick lang="python"><![CDATA[mb.RefreshMain()]]></onclick>
|
||||
</control>
|
||||
<control type="button" id="1042">
|
||||
<label>Status</label>
|
||||
<texturefocus>bg_btn.png</texturefocus>
|
||||
|
@ -63,17 +55,6 @@ mb.stop()
|
|||
<align>center</align>
|
||||
<onclick lang="python"><![CDATA[mc.ActivateWindow(14004)]]></onclick>
|
||||
</control>
|
||||
<!--
|
||||
780/500
|
||||
<control type="button" id="1043">
|
||||
<label>Send Logs</label>
|
||||
<texturefocus>bg_btn.png</texturefocus>
|
||||
<texturenofocus></texturenofocus>
|
||||
<height>29</height>
|
||||
<align>center</align>
|
||||
<onclick lang="python"><![CDATA[mb.SendLogs()]]></onclick>
|
||||
</control>
|
||||
-->
|
||||
</control>
|
||||
<control type="panel" id="1030">
|
||||
<posx>22</posx>
|
||||
|
|
|
@ -2,10 +2,8 @@
|
|||
<defaultcontrol always="true">1030</defaultcontrol>
|
||||
<allowoverlay>yes</allowoverlay>
|
||||
<onload lang="python"><![CDATA[
|
||||
import mc
|
||||
import mythboxee
|
||||
|
||||
mb.SettingsInit()
|
||||
from mythboxee import *
|
||||
mbs = MythBoxeeSettings()
|
||||
]]></onload>
|
||||
<controls>
|
||||
<control type="group" id="1010">
|
||||
|
@ -91,7 +89,7 @@ mb.SettingsInit()
|
|||
<height>30</height>
|
||||
<align>center</align>
|
||||
<aligny>center</aligny>
|
||||
<onclick lang="python"><![CDATA[mb.TestDbSettings()]]></onclick>
|
||||
<onclick lang="python"><![CDATA[mbs.TestDbSettings()]]></onclick>
|
||||
</control>
|
||||
<control type="button" id="1048">
|
||||
<label>Save DB Settings</label>
|
||||
|
@ -101,7 +99,7 @@ mb.SettingsInit()
|
|||
<height>30</height>
|
||||
<align>center</align>
|
||||
<aligny>center</aligny>
|
||||
<onclick lang="python"><![CDATA[mb.SaveDbSettings()]]></onclick>
|
||||
<onclick lang="python"><![CDATA[mbs.SaveDbSettings()]]></onclick>
|
||||
</control>
|
||||
</control>
|
||||
|
||||
|
@ -171,7 +169,7 @@ mb.SettingsInit()
|
|||
</control>
|
||||
</focusedlayout>
|
||||
<content type="action">
|
||||
<onclick lang="python"><![CDATA[mb.SetStreamMethod()]]></onclick>
|
||||
<onclick lang="python"><![CDATA[mbs.SetStreamMethod()]]></onclick>
|
||||
</content>
|
||||
</control>
|
||||
</control>
|
||||
|
@ -237,7 +235,7 @@ mb.SettingsInit()
|
|||
<height>30</height>
|
||||
<align>center</align>
|
||||
<aligny>center</aligny>
|
||||
<onclick lang="python"><![CDATA[mb.SaveSMBSettings()]]></onclick>
|
||||
<onclick lang="python"><![CDATA[mbs.SaveSMBSettings()]]></onclick>
|
||||
</control>
|
||||
</control>
|
||||
|
||||
|
@ -263,7 +261,7 @@ mb.SettingsInit()
|
|||
<font>font18</font>
|
||||
<onup>1022</onup>
|
||||
<ondown>1033</ondown>
|
||||
<ontextchange lang="python"><![CDATA[mb.SaveCacheSettings()]]></ontextchange>
|
||||
<ontextchange lang="python"><![CDATA[mbs.SaveCacheSettings()]]></ontextchange>
|
||||
</control>
|
||||
<control type="edit" id="1053">
|
||||
<posx>820</posx>
|
||||
|
@ -274,7 +272,7 @@ mb.SettingsInit()
|
|||
<font>font18</font>
|
||||
<onup>1032</onup>
|
||||
<ondown>1034</ondown>
|
||||
<ontextchange lang="python"><![CDATA[mb.SaveCacheSettings()]]></ontextchange>
|
||||
<ontextchange lang="python"><![CDATA[mbs.SaveCacheSettings()]]></ontextchange>
|
||||
</control>
|
||||
<control type="edit" id="1054">
|
||||
<posx>820</posx>
|
||||
|
@ -285,7 +283,7 @@ mb.SettingsInit()
|
|||
<font>font18</font>
|
||||
<password>true</password>
|
||||
<onup>1033</onup>
|
||||
<ontextchange lang="python"><![CDATA[mb.SaveCacheSettings()]]></ontextchange>
|
||||
<ontextchange lang="python"><![CDATA[mbs.SaveCacheSettings()]]></ontextchange>
|
||||
</control>
|
||||
</control>
|
||||
-->
|
||||
|
|
|
@ -3,12 +3,12 @@
|
|||
<defaultcontrol always="true">2040</defaultcontrol>
|
||||
<allowoverlay>true</allowoverlay>
|
||||
<onload lang="python"><![CDATA[
|
||||
from mythboxee import MythBoxee
|
||||
mb = MythBoxee()
|
||||
mb.LoadShow()
|
||||
from mythboxee import *
|
||||
mb = MythBoxeeShow()
|
||||
]]></onload>
|
||||
<onunload lang="python"><![CDATA[
|
||||
mb.stop()
|
||||
if mb:
|
||||
mb.unload()
|
||||
]]></onunload>
|
||||
<controls>
|
||||
<control type="group" id="1010">
|
||||
|
@ -37,23 +37,12 @@ mb.stop()
|
|||
|
||||
<control type="grouplist" id="1040">
|
||||
<posy>28</posy>
|
||||
<posx>940</posx>
|
||||
<width>334</width>
|
||||
<posx>920</posx>
|
||||
<width>500</width>
|
||||
<itemgap>10</itemgap>
|
||||
<orientation>horizontal</orientation>
|
||||
<ondown>2040</ondown>
|
||||
<!--
|
||||
940/334
|
||||
<control type="button" id="1041">
|
||||
<label>Refresh</label>
|
||||
<texturefocus>bg_btn.png</texturefocus>
|
||||
<texturenofocus></texturenofocus>
|
||||
<height>30</height>
|
||||
<align>center</align>
|
||||
<onclick lang="python"><![CDATA[mb.RefreshMain()]]></onclick>
|
||||
</control>
|
||||
-->
|
||||
<control type="button" id="1042">
|
||||
<label>Status</label>
|
||||
<texturefocus>bg_btn.png</texturefocus>
|
||||
<texturenofocus></texturenofocus>
|
||||
|
@ -69,17 +58,6 @@ mb.stop()
|
|||
<align>center</align>
|
||||
<onclick lang="python"><![CDATA[mc.ActivateWindow(14004)]]></onclick>
|
||||
</control>
|
||||
<!--
|
||||
780/500
|
||||
<control type="button" id="1043">
|
||||
<label>Send Logs</label>
|
||||
<texturefocus>bg_btn.png</texturefocus>
|
||||
<texturenofocus></texturenofocus>
|
||||
<height>29</height>
|
||||
<align>center</align>
|
||||
<onclick lang="python"><![CDATA[mb.SendLogs()]]></onclick>
|
||||
</control>
|
||||
-->
|
||||
</control>
|
||||
|
||||
<!-- END: TOP MENU -->
|
||||
|
|
|
@ -1,10 +1,8 @@
|
|||
<window type="window" id="14003">
|
||||
<allowoverlay>yes</allowoverlay>
|
||||
<onload lang="python"><![CDATA[
|
||||
import mc
|
||||
import mythboxee
|
||||
|
||||
mb.StatusInit()
|
||||
from mythboxee import *
|
||||
mbs = MythBoxeeStatus()
|
||||
]]></onload>
|
||||
<controls>
|
||||
<control type="group" id="1010">
|
||||
|
|
Loading…
Reference in New Issue