mirror of
https://github.com/morgan9e/warehouse
synced 2026-04-14 00:04:08 +09:00
Prepare for seperation of Orphans window
Preperations for having the orphans window code not be in the same file as everything else
This commit is contained in:
@@ -41,6 +41,7 @@ flattool_gui_sources = [
|
||||
'main.py',
|
||||
'window.py',
|
||||
'show_properties_window.py',
|
||||
'orphans_window.py',
|
||||
]
|
||||
|
||||
install_data(flattool_gui_sources, install_dir: moduledir)
|
||||
|
||||
6
src/orphans_window.py
Normal file
6
src/orphans_window.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from gi.repository import Gtk, Adw, GLib, Gdk, Gio
|
||||
import subprocess
|
||||
import os
|
||||
|
||||
def show_orphans_window():
|
||||
print("hi")
|
||||
@@ -1,6 +1,5 @@
|
||||
from gi.repository import Gtk, Adw, GLib, Gdk, Gio
|
||||
import subprocess
|
||||
#import pathlib
|
||||
import os
|
||||
|
||||
def show_properties_window(widget, index, window):
|
||||
|
||||
@@ -21,9 +21,8 @@ import pathlib
|
||||
import subprocess
|
||||
|
||||
from gi.repository import Adw, Gdk, Gio, GLib, Gtk
|
||||
|
||||
from .show_properties_window import show_properties_window
|
||||
|
||||
from .orphans_window import show_orphans_window
|
||||
|
||||
@Gtk.Template(resource_path="/io/github/heliguy4599/FlattoolGUI/window.ui")
|
||||
class FlattoolGuiWindow(Adw.ApplicationWindow):
|
||||
@@ -196,6 +195,7 @@ class FlattoolGuiWindow(Adw.ApplicationWindow):
|
||||
total_selected = 0
|
||||
global selected_rows
|
||||
selected_rows = []
|
||||
show_orphans_window()
|
||||
|
||||
def toggle_button_handler(button):
|
||||
if button.get_active():
|
||||
|
||||
Reference in New Issue
Block a user