add bt_player

This commit is contained in:
2021-11-24 17:00:32 +01:00
parent 3bc6987c3b
commit 880e936dc3
92 changed files with 16476 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
#!/usr/bin/env python
import os
import sys
from .viafence_basedialogs import *
class MainDialog(MainDialogBase):
def __init__(self, parent):
MainDialogBase.__init__(self, parent)
# Small workaround to fix the paths generated by wxFormBuilder
self.bmpViafence.SetBitmap(wx.Bitmap( os.path.join(os.path.dirname(os.path.realpath(__file__)), "resources", "viafence.png") ) )
def OnInitDialog(self, event):
self.Layout()
self.GetSizer().Fit(self)
self.SetMinSize(self.GetSize())
#self.SetMaxSize(self.GetSize())
self.SetTitle(u"Via Fence Generator")
if sys.version_info[0] == 2:
self.chkDebugDump.SetToolTipString( u"Creates a json file in the same directory as the opened board file containing the tracks and settings" )
else:
self.chkDebugDump.SetToolTip( u"Creates a json file in the same directory as the opened board file containing the tracks and settings" )
def OnNetFilterCheckBox(self, event):
self.txtNetFilter.Enable(event.IsChecked())
def OnLayerCheckBox(self, event):
self.lstLayer.Enable(event.IsChecked())