~photostory/photostory/cleanup

« back to all changes in this revision

Viewing changes to app.py

  • Committer: David Turner
  • Date: 2010-08-09 23:24:11 UTC
  • mfrom: (5.1.1 trunk)
  • Revision ID: finalfantasykid13@gmail.com-20100809232411-ujfwhr4b0wdyc838
Getting ready for merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
        xvimagesink = None
25
25
        movie = None
26
26
        self.pic=None
 
27
        pic=None
 
28
        self.movPath = None
27
29
        self.db = cPickle.load(open('data/db', 'rb'))
28
30
        self.ind = int(cPickle.load(open('data/num', 'rb')))
29
31
        todayPicName = "pictures/" + str(self.ind) + ".png"
54
56
                movPicker = gtk.FileChooserDialog(title="Choose a save location", parent=movDia, action=gtk.FILE_CHOOSER_ACTION_SAVE, buttons=(("Save Here", -6)), backend=None)
55
57
                movRes = movPicker.run()
56
58
                if movRes == -6:
57
 
                    movPath = movPicker.get_filename()
 
59
                    self.movPath = movPicker.get_filename()
58
60
                    movPicker.destroy()
59
61
 
60
62
            def movGen(movButton):
75
77
                filmTheora = gst.element_factory_make("xvidenc", "filmTheora")
76
78
                filmOggmux = gst.element_factory_make("ffmux_mp4", "filmOggmux")
77
79
                filmFilesink = gst.element_factory_make("filesink", "filmFilesink")
78
 
                filmFilesink.set_property("location", movPath)
 
80
                filmFilesink.set_property("location", self.movPath)
79
81
 
80
82
                filmPipe.add(filmSrc, filmFilt1, filmPngDec, filmff, filmFilt2, filmTheora, filmOggmux, filmFilesink)
81
83
                gst.element_link_many(filmSrc, filmFilt1, filmPngDec, filmff, filmFilt2, filmTheora, filmOggmux, filmFilesink)