Skip to content

Commit

Permalink
[testudo] remove backspaces and provid default open folder
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Hall <hsw@openmoko.com>


git-svn-id: https://wikipediardware.googlecode.com/svn/trunk@1798 974c56cd-8151-0410-98c4-7bb2f43fa8c1
  • Loading branch information
hsw@openmoko.com committed Jun 26, 2009
1 parent c2daa4b commit 6e7960a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion testudo/src/ui.py
Expand Up @@ -19,6 +19,8 @@

import sequencer

OpenFilesFolder = 'testudo/tests'

SaveFilesFolder = '/log/files/stage1'
FileExt = '.1.text'

Expand Down Expand Up @@ -176,12 +178,13 @@ def menuitem_response(self, event):
self.save_file()

def open_file(self):
global OpenFilesFolder
chooser = gtk.FileChooserDialog(title = 'Open...', action = gtk.FILE_CHOOSER_ACTION_OPEN,
buttons = (gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL,
gtk.STOCK_OPEN, gtk.RESPONSE_OK))
chooser.set_default_response(gtk.RESPONSE_OK)
chooser.set_select_multiple(select_multiple = False)
#chooser.set_current_folder('/')
chooser.set_current_folder(OpenFilesFolder)
#chooser.set_current_name('')

filter = gtk.FileFilter()
Expand Down
2 changes: 1 addition & 1 deletion testudo/tests/test_SAMO_01.py
Expand Up @@ -240,7 +240,7 @@ def callback(s):
global debug, psu, dvm, relay
i = psu.current
info('Supply current = %7.3f mA' % (1000 * i))
info(s)
info(s.replace('\10', '')) # remove backspaces
if 'Press Reset' == s.strip():
relay.on(RELAY_RESET)
time.sleep(0.2)
Expand Down

0 comments on commit 6e7960a

Please sign in to comment.