Qtile CheetSheet

This commit is contained in:
The-Repo-Club 2022-10-18 17:34:35 +01:00
parent bec6c17653
commit 8d4ec82673
No known key found for this signature in database
GPG Key ID: E30EC2FBFB05C44F

View File

@ -66,19 +66,22 @@ class WMCheatWindow(Gtk.ApplicationWindow):
Gtk.CellRendererText(), Gtk.CellRendererText(),
text=1) text=1)
description_column.set_min_width(300) description_column.set_min_width(300)
description_column.set_max_width(500)
tree.append_column(description_column) tree.append_column(description_column)
keybind_column = Gtk.TreeViewColumn("Keybind", keybind_column = Gtk.TreeViewColumn("Keybind",
Gtk.CellRendererText(), Gtk.CellRendererText(),
text=2) text=2)
keybind_column.set_min_width(300) keybind_column.set_min_width(300)
keybind_column.set_max_width(500)
tree.append_column(keybind_column) tree.append_column(keybind_column)
command_column = Gtk.TreeViewColumn("Command", # command_column = Gtk.TreeViewColumn("Command",
Gtk.CellRendererText(), # Gtk.CellRendererText(),
text=3) # text=3)
command_column.set_min_width(300) # command_column.set_min_width(300)
tree.append_column(command_column) # command_column.set_max_width(500)
# tree.append_column(command_column)
scrolled = Gtk.ScrolledWindow() scrolled = Gtk.ScrolledWindow()
scrolled.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC) scrolled.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC)