-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use flake8 to fix remaining linting, but sxtwl is not included.
- Loading branch information
1 parent
c3eb98e
commit d410bee
Showing
8 changed files
with
106 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,23 @@ | ||
import os | ||
from nvwave import playWaveFile | ||
|
||
|
||
def Copy(): | ||
play_sound("Copy") | ||
|
||
|
||
def FileInClipboard(): | ||
play_sound("FileInClipboard") | ||
|
||
|
||
def StartOrEnd(): | ||
play_sound("StartOrEnd") | ||
|
||
|
||
def LineBoundary(): | ||
play_sound("LineBoundary") | ||
|
||
|
||
def play_sound(filename): | ||
path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..', 'sounds', filename)) | ||
return playWaveFile(path + ".wav") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,24 @@ | ||
import wx | ||
import os | ||
|
||
|
||
class ReDialog(wx.Dialog): | ||
def __init__(self, parent, title='正则替换'): | ||
super().__init__(parent, title=title, size=(300, 180)) | ||
box = wx.BoxSizer(wx.VERTICAL) | ||
v1 = wx.BoxSizer(wx.VERTICAL) | ||
st = wx.StaticText(self, -1, label='查找内容(&N)') | ||
self.cb=wx.ComboBox(self, -1, style=wx.CB_DROPDOWN) | ||
self.cb = wx.ComboBox(self, -1, style=wx.CB_DROPDOWN) | ||
v1.Add(st, 1) | ||
v1.Add(self.cb, 2) | ||
st2 = wx.StaticText(self, -1, label='替换为(&P)') | ||
self.cb2=wx.ComboBox(self, -1, style=wx.CB_DROPDOWN) | ||
self.cb2 = wx.ComboBox(self, -1, style=wx.CB_DROPDOWN) | ||
v1.Add(st2, 1) | ||
v1.Add(self.cb2, 2) | ||
r1=wx.BoxSizer(wx.HORIZONTAL) | ||
b_ok=wx.Button(self, wx.ID_OK, label='替换(&R)') | ||
r1 = wx.BoxSizer(wx.HORIZONTAL) | ||
b_ok = wx.Button(self, wx.ID_OK, label='替换(&R)') | ||
b_cancel = wx.Button(self, wx.ID_CANCEL, label='取消') | ||
r1.Add(b_ok, 1) | ||
r1.Add(b_cancel, 1) | ||
box.Add(v1, 1) | ||
box.Add(r1, 1) | ||
self.SetSizer(box) | ||
|
Oops, something went wrong.