Skip to content

Commit

Permalink
Adds more filetypes to the select file dialog. Fixes #8
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryn authored and Bryn committed Nov 21, 2022
1 parent f903cb3 commit 8ee06db
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 18 deletions.
2 changes: 1 addition & 1 deletion uploader.pyw
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class AudioUploader(wx.Frame):

def SelectFile(self,event=None):
"""Opens a standard OS find file dialog to find an audio file to upload"""
openFileDialog = wx.FileDialog(self, "Select the audio file to be uploaded", "", "", "Audio Files (*.mp3, *.ogg, *.wav, *.flac, *.opus)|*.mp3; *.ogg; *.wav; *.flac; *.opus", wx.FD_OPEN | wx.FD_FILE_MUST_EXIST)
openFileDialog = wx.FileDialog(self, "Select the audio file to be uploaded", "", "", "Audio Files (*.mp3, *.ogg, *.wav, *.flac, *.opus, *.m4a, *.aif, *.aiff, *.wma, *.aac, *.au, *.snd, *.amr)|*.mp3; *.ogg; *.wav; *.flac; *.opus; *.m4a; *.aif; *.aiff; *.aac; *.wma; *.au; *.snd; *.amr", wx.FD_OPEN | wx.FD_FILE_MUST_EXIST)
if openFileDialog.ShowModal() == wx.ID_CANCEL:
return False
self.audio.filename= openFileDialog.GetPath()
Expand Down
33 changes: 16 additions & 17 deletions uploader.spec
Original file line number Diff line number Diff line change
@@ -1,41 +1,40 @@
# -*- mode: python ; coding: utf-8 -*-


block_cipher = None


a = Analysis(['uploader.pyw'],
pathex=['/Users/mason/Dropbox/projects/python/py3/uploader'],
pathex=[],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
win_private_assemblies=True,
cipher=block_cipher,
noarchive=False)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)

exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
[],
exclude_binaries=True,
name='uploader',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=False,
console=False )
coll = COLLECT(exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=False,
upx_exclude=[],
name='uploader')
app = BUNDLE(coll,
name='uploader.app',
icon=None,
bundle_identifier='me.masonasons.uploader')
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=False,
disable_windowed_traceback=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None )

0 comments on commit 8ee06db

Please sign in to comment.