branch : pmacs2
This commit is contained in:
moculus 2009-03-09 16:24:00 +00:00
parent 2726b9edef
commit 676c2374a3
1 changed files with 9 additions and 0 deletions

View File

@ -5,6 +5,7 @@ from lex import Grammar, PatternRule, RegionRule, PatternGroupRule
from point import Point from point import Point
from buffer import Buffer from buffer import Buffer
from method import Method, Argument, arg from method import Method, Argument, arg
from method.shell import Interact
try: try:
import eyeD3 import eyeD3
@ -101,6 +102,14 @@ class Mp3Grammar(Grammar):
class Mp3Refresh(Method): class Mp3Refresh(Method):
def _execute(self, w, **vargs): def _execute(self, w, **vargs):
w.buffer.reload() w.buffer.reload()
class Mp3Play(Method):
def _execute(self, w, **vargs):
pass
class Mpg123Play(Interact):
args = []
def _execute(self, w, **vargs):
path = os.path.realpath(w.buffer.path)
Interact._execute(self, w, bname='*Mpg123*', cmd='mpg123 %r' % path)
class Mp3OpenPath(Method): class Mp3OpenPath(Method):
args = [arg('mp3', dt="path", p="Open MP3: ", dv=default.path_dirname, args = [arg('mp3', dt="path", p="Open MP3: ", dv=default.path_dirname,