redesigned UI, but not yet done (Text sizing not correct yet)
This commit is contained in:
8
.idea/FSRImageVideoUpscalerFrontendNew.iml
generated
Normal file
8
.idea/FSRImageVideoUpscalerFrontendNew.iml
generated
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="PYTHON_MODULE" version="4">
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$" />
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
||||
2
.idea/modules.xml
generated
2
.idea/modules.xml
generated
@@ -2,7 +2,7 @@
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/FSRImageVideoUpscalerFrontend.iml" filepath="$PROJECT_DIR$/.idea/FSRImageVideoUpscalerFrontend.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/FSRImageVideoUpscalerFrontendNew.iml" filepath="$PROJECT_DIR$/.idea/FSRImageVideoUpscalerFrontendNew.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
||||
@@ -25,23 +25,39 @@ class HomeWindow(Gtk.Window):
|
||||
self.open_file = ""
|
||||
|
||||
# Spawn box
|
||||
self.box = Gtk.Box(spacing=6)
|
||||
self.add(self.box)
|
||||
self.main_box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
|
||||
self.sub_box = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL)
|
||||
self.box = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL)
|
||||
|
||||
# Headerbar
|
||||
self.hb = Gtk.HeaderBar()
|
||||
self.hb.set_show_close_button(True)
|
||||
self.hb.props.title = "FSR Image & Video Upscaler"
|
||||
self.set_titlebar(self.hb)
|
||||
|
||||
# Create filechooser button
|
||||
self.filechoosebutton = Gtk.Button(label="Choose Input File")
|
||||
self.filechoosebutton.connect("clicked", self.filechooser_clicked)
|
||||
self.box.pack_start(self.filechoosebutton, True, True, 10)
|
||||
self.box.pack_start(self.filechoosebutton, True, True, 0)
|
||||
|
||||
# Create output filechooser button
|
||||
self.opfchooserbutton = Gtk.Button(label="Choose Output File")
|
||||
self.opfchooserbutton.connect("clicked", self.opfilechooser_clicked)
|
||||
self.box.pack_start(self.opfchooserbutton, True, True, 10)
|
||||
self.box.pack_start(self.opfchooserbutton, True, True, 0)
|
||||
|
||||
# Create start button
|
||||
self.start_button = Gtk.Button(label="Start upscaling")
|
||||
self.start_button.connect("clicked", self.start_clicked)
|
||||
self.box.pack_start(self.start_button, True, True, 10)
|
||||
self.box.pack_start(self.start_button, True, True, 0)
|
||||
|
||||
# Title
|
||||
self.title = Gtk.Label(label="Test")
|
||||
self.title.set_markup("<big>FSR Image & Video Upscaler</big>")
|
||||
|
||||
self.sub_box.pack_start(self.box, True, True, 30)
|
||||
self.main_box.pack_start(self.title, True, True, 0)
|
||||
self.main_box.pack_end(self.sub_box, True, True, 20)
|
||||
self.add(self.main_box)
|
||||
|
||||
def filechooser_clicked(self, widget):
|
||||
self.filechooserdialog = Gtk.FileChooserDialog(title="Choose input file", action=Gtk.FileChooserAction.OPEN)
|
||||
|
||||
Reference in New Issue
Block a user