@@ -229,10 +229,12 @@ def __init__( self, parent, id = wx.ID_ANY, pos = wx.DefaultPosition, size = wx.
229
229
bSizer20 = wx .BoxSizer ( wx .HORIZONTAL )
230
230
231
231
self .fileNameFormatTextControl = wx .TextCtrl ( sbSizer6 .GetStaticBox (), wx .ID_ANY , wx .EmptyString , wx .DefaultPosition , wx .DefaultSize , 0 )
232
- bSizer20 .Add ( self .fileNameFormatTextControl , 1 , wx .ALL | wx .EXPAND , 5 )
232
+ bSizer20 .Add ( self .fileNameFormatTextControl , 1 , wx .ALIGN_CENTER_VERTICAL | wx .BOTTOM | wx . LEFT | wx . TOP , 5 )
233
233
234
- self .m_button12 = wx .Button ( sbSizer6 .GetStaticBox (), wx .ID_ANY , u"?" , wx .DefaultPosition , wx .DefaultSize , wx .BU_EXACTFIT )
235
- bSizer20 .Add ( self .m_button12 , 0 , wx .ALIGN_CENTER_VERTICAL | wx .ALL , 4 )
234
+ self .m_bpButton5 = wx .BitmapButton ( sbSizer6 .GetStaticBox (), wx .ID_ANY , wx .NullBitmap , wx .DefaultPosition , wx .DefaultSize , wx .BU_AUTODRAW | 0 )
235
+ self .m_bpButton5 .SetMinSize ( wx .Size ( 30 ,30 ) )
236
+
237
+ bSizer20 .Add ( self .m_bpButton5 , 0 , wx .ALIGN_CENTER_VERTICAL | wx .ALL , 5 )
236
238
237
239
238
240
fgSizer1 .Add ( bSizer20 , 1 , wx .EXPAND , 5 )
@@ -269,17 +271,29 @@ def __init__( self, parent, id = wx.ID_ANY, pos = wx.DefaultPosition, size = wx.
269
271
270
272
bSizer5 = wx .BoxSizer ( wx .VERTICAL )
271
273
272
- self .m_button1 = wx .Button ( sortingSizer .GetStaticBox (), wx .ID_ANY , u"Up" , wx .DefaultPosition , wx .Size ( 30 ,30 ), 0 | wx .BORDER_DEFAULT )
273
- bSizer5 .Add ( self .m_button1 , 0 , wx .ALL , 5 )
274
+ self .m_btnSortUp = wx .BitmapButton ( sortingSizer .GetStaticBox (), wx .ID_ANY , wx .NullBitmap , wx .DefaultPosition , wx .DefaultSize , wx .BU_AUTODRAW | 0 )
275
+
276
+ self .m_btnSortUp .SetBitmap ( wx .NullBitmap )
277
+ self .m_btnSortUp .SetMinSize ( wx .Size ( 30 ,30 ) )
278
+
279
+ bSizer5 .Add ( self .m_btnSortUp , 0 , wx .ALL , 5 )
280
+
281
+ self .m_btnSortDown = wx .BitmapButton ( sortingSizer .GetStaticBox (), wx .ID_ANY , wx .NullBitmap , wx .DefaultPosition , wx .DefaultSize , wx .BU_AUTODRAW | 0 )
282
+
283
+ self .m_btnSortDown .SetBitmap ( wx .NullBitmap )
284
+ self .m_btnSortDown .SetMinSize ( wx .Size ( 30 ,30 ) )
285
+
286
+ bSizer5 .Add ( self .m_btnSortDown , 0 , wx .ALL , 5 )
274
287
275
- self .m_button2 = wx .Button ( sortingSizer .GetStaticBox (), wx .ID_ANY , u"Dn" , wx .DefaultPosition , wx .Size ( 30 , 30 ), 0 | wx .BORDER_DEFAULT )
276
- bSizer5 . Add ( self . m_button2 , 0 , wx . ALL , 5 )
288
+ self .m_btnSortAdd = wx .BitmapButton ( sortingSizer .GetStaticBox (), wx .ID_ANY , wx . NullBitmap , wx .DefaultPosition , wx .DefaultSize , wx .BU_AUTODRAW | 0 )
289
+ self . m_btnSortAdd . SetMinSize ( wx . Size ( 30 , 30 ) )
277
290
278
- self .m_button3 = wx .Button ( sortingSizer .GetStaticBox (), wx .ID_ANY , u"+" , wx .DefaultPosition , wx .Size ( 30 ,30 ), 0 | wx .BORDER_DEFAULT )
279
- bSizer5 .Add ( self .m_button3 , 0 , wx .ALL , 5 )
291
+ bSizer5 .Add ( self .m_btnSortAdd , 0 , wx .ALL , 5 )
280
292
281
- self .m_button4 = wx .Button ( sortingSizer .GetStaticBox (), wx .ID_ANY , u"-" , wx .DefaultPosition , wx .Size ( 30 ,30 ), 0 | wx .BORDER_DEFAULT )
282
- bSizer5 .Add ( self .m_button4 , 0 , wx .ALL , 5 )
293
+ self .m_btnSortRemove = wx .BitmapButton ( sortingSizer .GetStaticBox (), wx .ID_ANY , wx .NullBitmap , wx .DefaultPosition , wx .DefaultSize , wx .BU_AUTODRAW | 0 )
294
+ self .m_btnSortRemove .SetMinSize ( wx .Size ( 30 ,30 ) )
295
+
296
+ bSizer5 .Add ( self .m_btnSortRemove , 0 , wx .ALL , 5 )
283
297
284
298
285
299
bSizer4 .Add ( bSizer5 , 0 , 0 , 5 )
@@ -305,11 +319,15 @@ def __init__( self, parent, id = wx.ID_ANY, pos = wx.DefaultPosition, size = wx.
305
319
306
320
bSizer512 = wx .BoxSizer ( wx .VERTICAL )
307
321
308
- self .m_button112 = wx .Button ( blacklistSizer .GetStaticBox (), wx .ID_ANY , u"+" , wx .DefaultPosition , wx .Size ( 30 ,30 ), 0 | wx .BORDER_DEFAULT )
309
- bSizer512 .Add ( self .m_button112 , 0 , wx .ALL , 5 )
322
+ self .m_btnBlacklistAdd = wx .BitmapButton ( blacklistSizer .GetStaticBox (), wx .ID_ANY , wx .NullBitmap , wx .DefaultPosition , wx .DefaultSize , wx .BU_AUTODRAW | 0 )
323
+ self .m_btnBlacklistAdd .SetMinSize ( wx .Size ( 30 ,30 ) )
324
+
325
+ bSizer512 .Add ( self .m_btnBlacklistAdd , 0 , wx .ALL , 5 )
326
+
327
+ self .m_btnBlacklistRemove = wx .BitmapButton ( blacklistSizer .GetStaticBox (), wx .ID_ANY , wx .NullBitmap , wx .DefaultPosition , wx .DefaultSize , wx .BU_AUTODRAW | 0 )
328
+ self .m_btnBlacklistRemove .SetMinSize ( wx .Size ( 30 ,30 ) )
310
329
311
- self .m_button212 = wx .Button ( blacklistSizer .GetStaticBox (), wx .ID_ANY , u"-" , wx .DefaultPosition , wx .Size ( 30 ,30 ), 0 | wx .BORDER_DEFAULT )
312
- bSizer512 .Add ( self .m_button212 , 0 , wx .ALL , 5 )
330
+ bSizer512 .Add ( self .m_btnBlacklistRemove , 0 , wx .ALL , 5 )
313
331
314
332
315
333
bSizer412 .Add ( bSizer512 , 0 , 0 , 5 )
@@ -339,13 +357,13 @@ def __init__( self, parent, id = wx.ID_ANY, pos = wx.DefaultPosition, size = wx.
339
357
340
358
# Connect Events
341
359
self .Bind ( wx .EVT_SIZE , self .OnSize )
342
- self .m_button12 .Bind ( wx .EVT_BUTTON , self .OnNameFormatHintClick )
343
- self .m_button1 .Bind ( wx .EVT_BUTTON , self .OnComponentSortOrderUp )
344
- self .m_button2 .Bind ( wx .EVT_BUTTON , self .OnComponentSortOrderDown )
345
- self .m_button3 .Bind ( wx .EVT_BUTTON , self .OnComponentSortOrderAdd )
346
- self .m_button4 .Bind ( wx .EVT_BUTTON , self .OnComponentSortOrderRemove )
347
- self .m_button112 .Bind ( wx .EVT_BUTTON , self .OnComponentBlacklistAdd )
348
- self .m_button212 .Bind ( wx .EVT_BUTTON , self .OnComponentBlacklistRemove )
360
+ self .m_bpButton5 .Bind ( wx .EVT_BUTTON , self .OnNameFormatHintClick )
361
+ self .m_btnSortUp .Bind ( wx .EVT_BUTTON , self .OnComponentSortOrderUp )
362
+ self .m_btnSortDown .Bind ( wx .EVT_BUTTON , self .OnComponentSortOrderDown )
363
+ self .m_btnSortAdd .Bind ( wx .EVT_BUTTON , self .OnComponentSortOrderAdd )
364
+ self .m_btnSortRemove .Bind ( wx .EVT_BUTTON , self .OnComponentSortOrderRemove )
365
+ self .m_btnBlacklistAdd .Bind ( wx .EVT_BUTTON , self .OnComponentBlacklistAdd )
366
+ self .m_btnBlacklistRemove .Bind ( wx .EVT_BUTTON , self .OnComponentBlacklistRemove )
349
367
350
368
def __del__ ( self ):
351
369
pass
@@ -411,11 +429,15 @@ def __init__( self, parent, id = wx.ID_ANY, pos = wx.DefaultPosition, size = wx.
411
429
412
430
bSizer5 = wx .BoxSizer ( wx .VERTICAL )
413
431
414
- self .m_button1 = wx .Button ( extraFieldsSizer .GetStaticBox (), wx .ID_ANY , u"Up" , wx .DefaultPosition , wx .Size ( 30 ,30 ), 0 | wx .BORDER_DEFAULT )
415
- bSizer5 .Add ( self .m_button1 , 0 , wx .ALL , 5 )
432
+ self .m_btnUp = wx .BitmapButton ( extraFieldsSizer .GetStaticBox (), wx .ID_ANY , wx .NullBitmap , wx .DefaultPosition , wx .DefaultSize , wx .BU_AUTODRAW | 0 )
433
+ self .m_btnUp .SetMinSize ( wx .Size ( 30 ,30 ) )
434
+
435
+ bSizer5 .Add ( self .m_btnUp , 0 , wx .ALL , 5 )
436
+
437
+ self .m_btnDown = wx .BitmapButton ( extraFieldsSizer .GetStaticBox (), wx .ID_ANY , wx .NullBitmap , wx .DefaultPosition , wx .DefaultSize , wx .BU_AUTODRAW | 0 )
438
+ self .m_btnDown .SetMinSize ( wx .Size ( 30 ,30 ) )
416
439
417
- self .m_button2 = wx .Button ( extraFieldsSizer .GetStaticBox (), wx .ID_ANY , u"Dn" , wx .DefaultPosition , wx .Size ( 30 ,30 ), 0 | wx .BORDER_DEFAULT )
418
- bSizer5 .Add ( self .m_button2 , 0 , wx .ALL , 5 )
440
+ bSizer5 .Add ( self .m_btnDown , 0 , wx .ALL , 5 )
419
441
420
442
421
443
bSizer4 .Add ( bSizer5 , 0 , 0 , 5 )
@@ -498,8 +520,8 @@ def __init__( self, parent, id = wx.ID_ANY, pos = wx.DefaultPosition, size = wx.
498
520
# Connect Events
499
521
self .Bind ( wx .EVT_SIZE , self .OnSize )
500
522
self .netlistFilePicker .Bind ( wx .EVT_FILEPICKER_CHANGED , self .OnNetlistFileChanged )
501
- self .m_button1 .Bind ( wx .EVT_BUTTON , self .OnExtraFieldsUp )
502
- self .m_button2 .Bind ( wx .EVT_BUTTON , self .OnExtraFieldsDown )
523
+ self .m_btnUp .Bind ( wx .EVT_BUTTON , self .OnExtraFieldsUp )
524
+ self .m_btnDown .Bind ( wx .EVT_BUTTON , self .OnExtraFieldsDown )
503
525
self .normalizeCaseCheckbox .Bind ( wx .EVT_CHECKBOX , self .OnNetlistFileChanged )
504
526
self .boardVariantFieldBox .Bind ( wx .EVT_COMBOBOX , self .OnBoardVariantFieldChange )
505
527
0 commit comments