Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Edit
diff options
context:
space:
mode:
authorNat <Nat@localhost.localdomain>2007-02-27 03:23:38 (GMT)
committer Nat <Nat@localhost.localdomain>2007-02-27 03:23:38 (GMT)
commit3aa8c533fe0b3105120bdb08643919254ef366d1 (patch)
treec37db2e895f9e321b0eb8ef96093e4c0673f8cb0 /Edit
parentc06b91741b4da17cbfbde831fa6ba581ba0928bf (diff)
Close button in edit
Diffstat (limited to 'Edit')
-rw-r--r--Edit/MainWindow.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/Edit/MainWindow.py b/Edit/MainWindow.py
index 0137bd6..64b4851 100644
--- a/Edit/MainWindow.py
+++ b/Edit/MainWindow.py
@@ -375,8 +375,10 @@ class MainWindow( SubActivity ):
self.GUI["2pauseButton"].connect( "clicked", self.handleStop, False )
self.GUI["2pauseBox"].pack_start( self.GUI["2pauseButton"] )
self.GUI["2pauseBox"].show_all()
- self.GUI["2loopButton"] = ImageToggleButton( Config.IMAGE_ROOT+"loop.png", Config.IMAGE_ROOT+"loop.png", Config.IMAGE_ROOT+"loop.png", backgroundFill = Config.BG_COLOR )
- self.GUI["2loopButton"].connect( "toggled", self.handleLoopButton )
+ #self.GUI["2loopButton"] = ImageToggleButton( Config.IMAGE_ROOT+"loop.png", Config.IMAGE_ROOT+"loop.png", Config.IMAGE_ROOT+"loop.png", backgroundFill = Config.BG_COLOR )
+ #self.GUI["2loopButton"].connect( "toggled", self.handleLoopButton )
+ self.GUI["2loopButton"] = ImageButton( Config.IMAGE_ROOT+"close.png" )
+ self.GUI["2loopButton"].connect( "pressed", self.handleClose)
self.GUI["2transportBox"].pack_start( self.GUI["2loopButton"] )
self.GUI["2toolPanel"].pack_start( self.GUI["2transportBox"] )
# + tune box
@@ -593,6 +595,9 @@ class MainWindow( SubActivity ):
else: id = self.tuneInterface.getFirstSelected()
self.trackInterface.setPlayhead( 0 )
self.displayPage( id )
+
+ def handleClose(self,widget):
+ self.set_mode("welcome")
def onTimeout(self):
self.updateFPS()