コード例 #1
0
    def drawInterface(self, canvas):
        #draws text/images
        canvas.create_rectangle(0, 0, self.width, self.height, fill="black")
        text0 = "Denoise your music!"
        font0 = "Arial 30"
        text1 = """
		Press space to begin highlighting the portion you want to denoise, 
		and space to end the highlighting.

		You can also click the trackbar to skip portions of the recording.
		"""
        canvas.create_text(self.width / 2,
                           self.height / 8,
                           text=text0,
                           font=font0,
                           fill="white")
        canvas.create_text(self.width / 2 - 80,
                           self.height / 4,
                           text=text1,
                           fill="white")
        imagesDemo1.run(canvas, "denoiseImage.gif", self.width / 2,
                        self.height * 3 / 4, 3)
        canvas.create_text(self.width / 2,
                           self.height * 3 / 4 + 75,
                           text="Denoise it!",
                           fill="white")
コード例 #2
0
ファイル: TITLEclass.py プロジェクト: anisridhar/AudioShop
	def draw(self,canvas):
		canvas.create_rectangle(0,0,self.width,self.height,fill="black")
		text = "AudioShop"
		font = "Arial 36"
		canvas.create_text(self.width/2,self.height/5,text=text,fill="white",font=font)
		imagesDemo1.run(canvas,"titleImage.gif",self.width/2,self.height/2,3)
		self.button.draw(canvas)
コード例 #3
0
ファイル: saveFileClass.py プロジェクト: anisridhar/AudioShop
	def draw(self,canvas):
		canvas.create_rectangle(0,0,self.width,self.height,fill="black")
		bigText = "Save your creation!"
		font = "Arial 36"
		text = "Type your file name here."
		fileDisplay = self.fileText + ".wav"
		canvas.create_text(self.width/2,self.height*3/4,text=text,fill="white")
		canvas.create_text(self.width/2,self.height*3/4+20,text=fileDisplay,fill="white")
		canvas.create_text(self.width/2,self.height/7,text=bigText,font=font,fill="white")
		imagesDemo1.run(canvas,"saveFileImage.gif",self.width/2,self.height/2,4)
コード例 #4
0
 def draw(self, canvas):
     canvas.create_rectangle(0, 0, self.width, self.height, fill="black")
     text = "AudioShop"
     font = "Arial 36"
     canvas.create_text(self.width / 2,
                        self.height / 5,
                        text=text,
                        fill="white",
                        font=font)
     imagesDemo1.run(canvas, "titleImage.gif", self.width / 2,
                     self.height / 2, 3)
     self.button.draw(canvas)
コード例 #5
0
	def drawInstructions(self,canvas):
		#draws interface before recording sequence starts
		canvas.create_rectangle(0,0,self.width,self.height,fill="black")
		#create button
		(cx,cy) = (self.width/2,self.height - 100)
		r = 20
		r1 = 15
		r2 = 10
		imagesDemo1.run(canvas,"recordImage.gif",cx,cy,3)
		text = "Click the record button to start capturing Video and Audio."
		text1 = "Record your music!"
		font1 = "Arial 30"
		canvas.create_text(self.width/2,self.height/2,text=text,fill="white")
		canvas.create_text(self.width/2,self.height/8,text=text1,fill="white",font=font1)
コード例 #6
0
	def drawInterface(self,canvas):
		#draws text/images
		canvas.create_rectangle(0,0,self.width,self.height,fill="black")
		text0 = "Denoise your music!"
		font0 = "Arial 30"
		text1 = """
		Press space to begin highlighting the portion you want to denoise, 
		and space to end the highlighting.

		You can also click the trackbar to skip portions of the recording.
		"""
		canvas.create_text(self.width/2,self.height/8,text=text0,font=font0,fill="white")
		canvas.create_text(self.width/2-80,self.height/4,text=text1,fill="white")
		imagesDemo1.run(canvas,"denoiseImage.gif",self.width/2,self.height*3/4,3)
		canvas.create_text(self.width/2,self.height*3/4+75,text="Denoise it!",fill="white")
コード例 #7
0
 def draw(self, canvas):
     canvas.create_rectangle(0, 0, self.width, self.height, fill="black")
     bigText = "Save your creation!"
     font = "Arial 36"
     text = "Type your file name here."
     fileDisplay = self.fileText + ".wav"
     canvas.create_text(self.width / 2,
                        self.height * 3 / 4,
                        text=text,
                        fill="white")
     canvas.create_text(self.width / 2,
                        self.height * 3 / 4 + 20,
                        text=fileDisplay,
                        fill="white")
     canvas.create_text(self.width / 2,
                        self.height / 7,
                        text=bigText,
                        font=font,
                        fill="white")
     imagesDemo1.run(canvas, "saveFileImage.gif", self.width / 2,
                     self.height / 2, 4)
コード例 #8
0
ファイル: endClass.py プロジェクト: anisridhar/AudioShop
	def draw(self,canvas):
		canvas.create_rectangle(0,0,self.width,self.height,fill="black")
		imagesDemo1.run(canvas,"enjoyImage.gif",self.width/2,self.height/2,2)
		font = "Arial 36"
		canvas.create_text(self.width/2,self.height/8,text="File Saved!",font=font,fill="white")