mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
flake8
This commit is contained in:
parent
6a65e9f1c7
commit
307ce03e23
2 changed files with 13 additions and 12 deletions
|
@ -28,7 +28,7 @@ import os
|
||||||
import Tkinter
|
import Tkinter
|
||||||
|
|
||||||
# PySol imports
|
# PySol imports
|
||||||
from pysollib.mygettext import _, n_
|
from pysollib.mygettext import _
|
||||||
from pysollib.mfxutil import KwStruct
|
from pysollib.mfxutil import KwStruct
|
||||||
from pysollib.settings import TITLE
|
from pysollib.settings import TITLE
|
||||||
from pysollib.pysolaudio import pysolsoundserver
|
from pysollib.pysolaudio import pysolsoundserver
|
||||||
|
@ -41,6 +41,7 @@ from tkwidget import MfxDialog, MfxMessageDialog
|
||||||
# *
|
# *
|
||||||
# ************************************************************************
|
# ************************************************************************
|
||||||
|
|
||||||
|
|
||||||
class SoundOptionsDialog(MfxDialog):
|
class SoundOptionsDialog(MfxDialog):
|
||||||
|
|
||||||
def __init__(self, parent, title, app, **kw):
|
def __init__(self, parent, title, app, **kw):
|
||||||
|
@ -186,11 +187,11 @@ class SoundOptionsDialog(MfxDialog):
|
||||||
return self.mDone(0)
|
return self.mDone(0)
|
||||||
|
|
||||||
def mOptSoundDirectX(self, *event):
|
def mOptSoundDirectX(self, *event):
|
||||||
##print self.sound_mode.get()
|
# print self.sound_mode.get()
|
||||||
d = MfxMessageDialog(self.top, title=_("Sound preferences info"),
|
MfxMessageDialog(
|
||||||
|
self.top, title=_("Sound preferences info"),
|
||||||
text=_("""\
|
text=_("""\
|
||||||
Changing DirectX settings will take effect
|
Changing DirectX settings will take effect
|
||||||
the next time you restart """)+TITLE,
|
the next time you restart """)+TITLE,
|
||||||
bitmap="warning",
|
bitmap="warning",
|
||||||
default=0, strings=(_("&OK"),))
|
default=0, strings=(_("&OK"),))
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,7 @@ my %skip =
|
||||||
|
|
||||||
# my $cmd = shell_quote( 'flake8', '.' );
|
# my $cmd = shell_quote( 'flake8', '.' );
|
||||||
my $cmd = shell_quote( 'flake8',
|
my $cmd = shell_quote( 'flake8',
|
||||||
grep { not exists $skip{$_} } glob('./*.py ./scripts/*.py ./tests/board_gen/*.py ./pysollib/*.py ./pysollib/[cmgpuw]*/{*/*.py,*.py} ./pysollib/tile/*.py ./pysollib/tk/{[a-p],select,solv}*.py ./pysollib/ui/tktile/*.py') );
|
grep { not exists $skip{$_} } glob('./*.py ./scripts/*.py ./tests/board_gen/*.py ./pysollib/*.py ./pysollib/[cmgpuw]*/{*/*.py,*.py} ./pysollib/tile/*.py ./pysollib/tk/{[a-p],select,solv,sound}*.py ./pysollib/ui/tktile/*.py') );
|
||||||
|
|
||||||
# TEST
|
# TEST
|
||||||
eq_or_diff( scalar(`$cmd`), '', "flake8 is happy with the code." );
|
eq_or_diff( scalar(`$cmd`), '', "flake8 is happy with the code." );
|
||||||
|
|
Loading…
Add table
Reference in a new issue