Skip to content
This repository has been archived by the owner on Feb 17, 2023. It is now read-only.

Commit

Permalink
Programa finalizado
Browse files Browse the repository at this point in the history
  • Loading branch information
srbrunoferreira authored May 3, 2021
1 parent ba7180a commit c471de3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions python-image-converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@ def configureTemplate(self):
selectContainer = Frame(self.bottom, bg=WINDOW_BG)
selectInputContainer = Frame(selectContainer, bg=SECUNDARY_BG)
selectInput = Button(selectInputContainer, command=self.setInputPath, text='Selecionar entrada...', bg=TERTIARY_BG, fg=FONT_FG, relief=FLAT, font=FONTF['small'])
selectInputLabel = Label(selectInputContainer, text='Atual: por favor, selecione um diretório.', bg=SECUNDARY_BG, fg=FONT_FG)
self.selectInputLabel = Label(selectInputContainer, width=30, text='Atual: por favor, selecione um diretório.', bg=SECUNDARY_BG, fg=FONT_FG)

selectOutputContainer = Frame(selectContainer, bg=SECUNDARY_BG)
selectOutput = Button(selectOutputContainer, command=self.setOutputPath, text='Selecionar saída...', bg=TERTIARY_BG, fg=FONT_FG, relief=FLAT, font=FONTF['small'])
selectOutPutLabel = Label(selectOutputContainer, text='Atual: Área de Trabalho/output', bg=SECUNDARY_BG, fg=FONT_FG)
self.selectOutPutLabel = Label(selectOutputContainer, width=30, text='Atual: Área de Trabalho/output', bg=SECUNDARY_BG, fg=FONT_FG)

# PACKING HEADER
self.title.pack(side=LEFT)
Expand All @@ -101,11 +101,11 @@ def configureTemplate(self):
selectContainer.pack(side=LEFT)
selectInputContainer.pack(side=TOP, anchor=NW, pady=5)
selectInput.pack(side=LEFT)
selectInputLabel.pack(side=RIGHT)
self.selectInputLabel.pack(side=RIGHT)

selectOutputContainer.pack(side=BOTTOM, anchor=SW, pady=5)
selectOutput.pack(side=LEFT)
selectOutPutLabel.pack(side=RIGHT)
self.selectOutPutLabel.pack(side=RIGHT)

def configureModeFrames(self):
# COMPRESS MODE
Expand Down Expand Up @@ -158,9 +158,11 @@ def start(self):

def setInputPath(self):
self.inputPath = askdirectory()
self.selectInputLabel.configure(text=self.inputPath)

def setOutputPath(self):
self.inputPath = askdirectory()
self.selectOutPutLabel.configure(text=self.outputPath)


Interface()

0 comments on commit c471de3

Please sign in to comment.