53
53
def movify(filmBut):
55
def movPick(movFileButton):
56
movPicker = gtk.FileChooserDialog(title="Choose a save location", parent=movDia, action=gtk.FILE_CHOOSER_ACTION_SAVE, buttons=(("Save Here", -6)), backend=None)
57
movRes = movPicker.run()
59
movPath = movPicker.get_filename()
55
62
def movGen(movButton):
57
movPath = movEntry.get_text()
60
66
filmPipe = gst.Pipeline("filmPipe")
80
86
filmBut.set_sensitive(True)
82
88
movDia = gtk.Window(gtk.WINDOW_TOPLEVEL)
89
movDia.set_title("Create Film")
90
movDia.set_resizable(False)
83
91
filmBut.set_sensitive(False)
84
92
movVbox = gtk.VBox(homogeneous=False, spacing=2)
85
movLabel = gtk.Label("Here you can create a video made up of all your pictures.\nRemember, the path MUST end in '.mp4'.")
87
movLabel_2 = gtk.Label("Path:")
88
movEntry = gtk.Entry()
89
movHbox_1 = gtk.HBox(homogeneous=True)
93
movLabel = gtk.Label("Here you can create a video made up of all your pictures. \n\nJust choose a save location and hit 'create'.\n\nRemember, the path must end in '.mp4'.\n")
94
movFileButton = gtk.Button(label="Choose a location")
90
95
movButton = gtk.Button(label="Create")
91
96
movDia.add(movVbox)
92
97
movVbox.pack_start(movLabel, expand=False)
93
movVbox.pack_start(movHbox_1, expand=False)
98
movVbox.pack_start(movFileButton, expand=False)
94
99
movVbox.pack_start(movButton, expand=False)
95
movHbox_1.pack_start(movLabel_2, expand=False)
96
movHbox_1.pack_start(movEntry, expand=False)
97
100
movButton.connect("clicked", movGen)
101
movFileButton.connect("clicked", movPick)
100
104
def capture(takeBut):
140
144
filmBut.connect("clicked", movify)
141
145
shareBut = gtk.Button(label="Share Video")
142
146
hbox2 = gtk.HBox(homogeneous=True)
143
leftBut = gtk.Button(label="Previous")
144
rightBut = gtk.Button(label="Next")
145
147
aboutBut = gtk.Button(label="About")
146
148
aboutBut.connect("clicked", about)
147
149
pic = gtk.Image()
157
159
vbox1.pack_start(hbox2)
158
160
hbox2.pack_start(filmBut, expand=False)
159
161
#hbox2.pack_start(shareBut)
160
#hbox2.pack_start(leftBut)
161
#hbox2.pack_start(rightBut)
162
162
hbox2.pack_start(aboutBut)
163
163
hbox.pack_start(vbox2)
164
164
vbox2.pack_start(movie)