Skip to content

Commit 0f3a546

Browse files
committed
fix Desktop bugs
1 parent a4c6fb3 commit 0f3a546

19 files changed

+2930
-3187
lines changed

pyUI/SkillComposer.py

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1133,13 +1133,14 @@ def popImport(self):
11331133
def changeColor(self,i):
11341134
colorTuple = askcolor(title="Tkinter Color Chooser")
11351135
logger.debug(f"colorTuple: {colorTuple}")
1136+
self.topEye.focus_force() # the eye color edit window gets focus
11361137
if (colorTuple[0] is not None) and (colorTuple[1] is not None):
11371138
colors = list(colorTuple[0])
11381139
self.colorHex = colorTuple[1]
1139-
# for c in range(3):
1140-
# colors[c] //= 2 #it's not always returning interger.
1141-
# colors = list(map(lambda x:int(x//2),colors)) #colors have to be integer
1142-
# printH('RGB: ',colors)
1140+
# for c in range(3):
1141+
# colors[c] //= 2 #it's not always returning interger.
1142+
colors = list(map(lambda x: int(x), colors)) # colors have to be integer
1143+
logger.debug(f"RGB: {colors}")
11431144
if self.colorBinderValue.get():
11441145
self.activeEye = 0
11451146
self.eyeColors[0]=colors
@@ -1192,10 +1193,10 @@ def popEyeColor(self):
11921193
width = dia*2 + gap + 2*crd[0]
11931194
self.eyeColors = [[0,0,0],[0,0,0],[0,0,0]]
11941195
self.activeEye = 0
1195-
topEye = Toplevel(self.window)
1196-
topEye.title('Eye Color Setter')
1197-
topEye.geometry(str(width)+'x170+400+200')
1198-
face = Frame(topEye)
1196+
self.topEye = Toplevel(self.window)
1197+
self.topEye.title('Eye Color Setter')
1198+
self.topEye.geometry(str(width)+'x170+400+200')
1199+
face = Frame(self.topEye)
11991200
face.grid(row = 0,column = 0)
12001201
self.canvasFace = Canvas(face,height=120)
12011202
self.canvasFace.grid(row = 0,column = 0, columnspan = 2)
@@ -1223,7 +1224,8 @@ def popEyeColor(self):
12231224
for e in range(len(effectDictionary)):
12241225
Button(btnsEff,text=txt(list(effectDictionary.keys())[e]),width = wValue,command = lambda eff=list(effectDictionary.values())[e]:self.changeEffect(eff)).grid(row = 0,column = e)
12251226
Button(btnsEff,text=txt('Meow'),width = wValue,command = lambda :send(ports, ['u', 0])).grid(row = 0,column = 3)
1226-
1227+
self.topEye.focus_force() # the eye color edit window gets focus
1228+
self.topEye.mainloop()
12271229

12281230
def playThread(self):
12291231
self.playStop = False

pyUI/UI.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ def changeModel(self, modelName):
120120
model = copy.deepcopy(modelName)
121121
self.modelLabel.configure(text=model)
122122
print(model)
123+
if model == "Bittle X":
124+
self.defaultBdVer = "BiBoard_V0_2"
123125

124126
def changeLan(self, l):
125127
global language
Binary file not shown.
Binary file not shown.

pyUI/release/2.0/Bittle/NyBoard_V1/OpenCatCamera.ino.hex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
:100280006E697469616C697A652074686520636160
4242
:100290006D65726121004D5520696E697469616CEC
4343
:1002A000697A656420617420307835300052656168
44-
:1002B000647921004E5F3234303132330042697448
44+
:1002B000647921004E5F3234303230370042697445
4545
:1002C000746C65000A2A205374617274202A0054E9
4646
:1002D000007363726800636B007065650070750081
4747
:1002E0006869007374720073697400747200776BCC
@@ -51,7 +51,7 @@
5151
:10032000656E6E6973007461626C652074656E6ED3
5252
:100330006973004F56462120576F6E2774207361F2
5353
:100340007665210061626F72746564007361766521
54-
:1003500064004E5F32343031323300426974746C61
54+
:1003500064004E5F32343032303700426974746C5E
5555
:1003600065004C6F7720706F7765723A0000761DDC
5656
:10037000353011241FBECFEFD8E0DEBFCDBF12E075
5757
:10038000A0E0B1E0EAE4F1E702C005900D92AC30E4

pyUI/release/2.0/Bittle/NyBoard_V1/OpenCatMind+.ino.hex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@
1818
:1001100000000000000000000000000000000000DF
1919
:10012000240027002A0000000000230026002900E8
2020
:10013000536572766F3A00536B696C6C005461734F
21-
:100140006B5100526561647921004E5F3234303169
22-
:10015000323300426974746C65000A2A205374615A
21+
:100140006B5100526561647921004E5F3234303268
22+
:10015000303700426974746C65000A2A2053746158
2323
:100160007274202A0054007363726800636B00701D
2424
:100170006565007075006869007374720073697456
2525
:1001800000747200776B0063720076740063004243
2626
:1001900000700052007570004C006700460064005B
2727
:1001A0004F5646000000000800020100000304074B
2828
:1001B00000000000000000004F56462120576F6EDF
2929
:1001C00027742073617665210061626F72746564C3
30-
:1001D000007361766564004E5F3234303132330033
30+
:1001D000007361766564004E5F3234303230370030
3131
:1001E000426974746C65004C6F7720706F7765722C
3232
:1001F0003A00010204081020408001020408102087
3333
:1002000001020408102000000000250028002B0037

pyUI/release/2.0/Bittle/NyBoard_V1/OpenCatRandomMind.ino.hex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,15 +221,15 @@
221221
:100DC0004C82A8F1CAF235F19688A6D900D8F1FF75
222222
:100DD000444D50206661696C6564202800494D557A
223223
:100DE00000536572766F3A00536B696C6C00526504
224-
:100DF00061647921004E5F32343031323300426910
224+
:100DF00061647921004E5F3234303230370042690D
225225
:100E000074746C65000A2A205374617274202A007D
226226
:100E100054007363726800636B00706565007075E1
227227
:100E200000686900737472007369740074720077EB
228228
:100E30006B00637200767400630042007000520021
229229
:100E40007570004C006700460064004F5646007AFB
230230
:100E500001750171016D01680163015D0158015463
231231
:100E6000014F014A0161626F7274656400736176BB
232-
:100E70006564004E5F32343031323300426974743D
232+
:100E70006564004E5F32343032303700426974743A
233233
:100E80006C65004C6F7720706F7765723A0058235D
234234
:100E9000BA3411241FBECFEFD8E0DEBFCDBF11E0C2
235235
:100EA000A0E0B1E0E8EFFBE702C005900D92A83B9F

pyUI/release/2.0/Bittle/NyBoard_V1/OpenCatStandard.ino.hex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,15 +218,15 @@
218218
:100D9000F235F19688A6D900D8F1FF444D5020666F
219219
:100DA00061696C6564202800494D55005365727671
220220
:100DB0006F3A00536B696C6C005265616479210075
221-
:100DC0004E5F32343031323300426974746C6500E6
221+
:100DC0004E5F32343032303700426974746C6500E3
222222
:100DD0000A2A205374617274202A005400736372CB
223223
:100DE0006800636B0070656500707500686900736A
224224
:100DF00074720073697400747200776B0063720020
225225
:100E000076740063004200700052007570004C0060
226226
:100E10006700460064004F5646004F564621205753
227227
:100E20006F6E27742073617665210061626F727442
228-
:100E30006564007361766564004E5F323430313230
229-
:100E40003300426974746C65004C6F7720706F7763
228+
:100E30006564007361766564004E5F323430323031
229+
:100E40003700426974746C65004C6F7720706F775F
230230
:100E500065723A006B234F3511241FBECFEFD8E0E7
231231
:100E6000DEBFCDBF11E0A0E0B1E0E2E2FDE702C0ED
232232
:100E700005900D92A03BB107D9F727E0A0EBB1E0B8

pyUI/release/2.0/Bittle/NyBoard_V1/OpenCatVoice.ino.hex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
:100190003A00536B696C6C005461736B510043758A
2727
:1001A00073746F6D697A656420766F6963653A0070
2828
:1001B000496E697420766F69636500526561647980
29-
:1001C00021004E5F32343031323300426974746C36
29+
:1001C00021004E5F32343032303700426974746C33
3030
:1001D00065000A2A205374617274202A0054007347
3131
:1001E00063726800636B0070656500707500686914
3232
:1001F000007374720073697400747200776B00632B
@@ -35,7 +35,7 @@
3535
:100220000165015901550131012D012901250121E6
3636
:10023000011C014F56462120576F6E2774207361B1
3737
:100240007665210061626F72746564007361766522
38-
:1002500064004E5F32343031323300426974746C62
38+
:1002500064004E5F32343032303700426974746C5F
3939
:1002600065004C6F7720706F7765723A0000000070
4040
:100270000023002600290000000000250028002B94
4141
:10028000000404040404040404020202020202033F
Binary file not shown.

0 commit comments

Comments
 (0)