PEPing imports
This commit is contained in:
parent
0b54243be6
commit
9eea74f841
|
@ -2,7 +2,9 @@
|
|||
|
||||
|
||||
# Python imports
|
||||
import argparse, faulthandler, traceback
|
||||
import argparse
|
||||
import faulthandler
|
||||
import traceback
|
||||
from setproctitle import setproctitle
|
||||
|
||||
import tracemalloc
|
||||
|
@ -18,6 +20,7 @@ from gi.repository import Gtk
|
|||
from app import Application
|
||||
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
""" Set process title, get arguments, and create GTK main thread. """
|
||||
|
||||
|
|
|
@ -6,7 +6,16 @@ gi.require_version('Gtk', '3.0')
|
|||
from gi.repository import Gtk
|
||||
|
||||
# Application imports
|
||||
from ..widgets.defined_keys import Tab_Key, Del_Key, Ctrl_Key, Shift_Key, Alt_Key, PrtSc_Key, Up_Key, Down_Key, Left_Key, Right_Key
|
||||
from ..widgets.defined_keys import Tab_Key
|
||||
from ..widgets.defined_keys import Del_Key
|
||||
from ..widgets.defined_keys import Ctrl_Key
|
||||
from ..widgets.defined_keys import Shift_Key
|
||||
from ..widgets.defined_keys import Alt_Key
|
||||
from ..widgets.defined_keys import PrtSc_Key
|
||||
from ..widgets.defined_keys import Up_Key
|
||||
from ..widgets.defined_keys import Down_Key
|
||||
from ..widgets.defined_keys import Left_Key
|
||||
from ..widgets.defined_keys import Right_Key
|
||||
|
||||
|
||||
|
||||
|
@ -20,6 +29,7 @@ class Button_Box(Gtk.ButtonBox):
|
|||
for key in [Tab_Key(), Del_Key(), Ctrl_Key(), Shift_Key(), Alt_Key(), PrtSc_Key()]:
|
||||
self.add(key)
|
||||
|
||||
|
||||
class List_Box(Gtk.ScrolledWindow):
|
||||
"""docstring for List_Box."""
|
||||
|
||||
|
@ -57,6 +67,7 @@ class List_Box(Gtk.ScrolledWindow):
|
|||
tree.columns_autosize()
|
||||
return tree, store
|
||||
|
||||
|
||||
class Grid_Box(Gtk.Grid):
|
||||
"""docstring for Grid_Box."""
|
||||
|
||||
|
|
|
@ -6,7 +6,9 @@ gi.require_version('Gtk', '3.0')
|
|||
from gi.repository import Gtk
|
||||
|
||||
# Application imports
|
||||
from ..widgets.defined_keys import Esc_Key, Symbols_Key, CAPS_Key
|
||||
from ..widgets.defined_keys import Esc_Key
|
||||
from ..widgets.defined_keys import Symbols_Key
|
||||
from ..widgets.defined_keys import CAPS_Key
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -6,8 +6,9 @@ gi.require_version('Gtk', '3.0')
|
|||
from gi.repository import Gtk
|
||||
|
||||
# Application imports
|
||||
from ..widgets.defined_keys import Emoji_Keys, Backspace_Key, Enter_Key
|
||||
|
||||
from ..widgets.defined_keys import Emoji_Keys
|
||||
from ..widgets.defined_keys import Backspace_Key
|
||||
from ..widgets.defined_keys import Enter_Key
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -6,7 +6,10 @@ gi.require_version('Gtk', '3.0')
|
|||
from gi.repository import Gtk
|
||||
|
||||
# Application imports
|
||||
from .columns import Left_Column, Keys_Column, Right_Column, Controls_Column
|
||||
from .columns import Left_Column
|
||||
from .columns import Keys_Column
|
||||
from .columns import Right_Column
|
||||
from .columns import Controls_Column
|
||||
|
||||
|
||||
|
||||
|
@ -23,7 +26,6 @@ class Auto_Type(Gtk.Box):
|
|||
self._type_btn = Gtk.Button(label="Type")
|
||||
|
||||
self._auto_typer.set_placeholder_text("Autotype Field...")
|
||||
# self._auto_typer.set_icon_from_icon_name(0, "gtk-go-forward") # PRIMARY = 0, SECONDARY = 1
|
||||
self._auto_typer.set_icon_from_stock(0, "gtk-go-forward") # PRIMARY = 0, SECONDARY = 1
|
||||
self._auto_typer.set_can_focus(True)
|
||||
self._auto_typer.set_hexpand(True)
|
||||
|
@ -51,6 +53,7 @@ class Auto_Type(Gtk.Box):
|
|||
text = self._auto_typer.get_text()
|
||||
typwriter.type_string(text)
|
||||
|
||||
|
||||
class Main_Container(Gtk.Box):
|
||||
"""docstring for Main_Container."""
|
||||
|
||||
|
@ -73,6 +76,7 @@ class Main_Container(Gtk.Box):
|
|||
self.add(Right_Column())
|
||||
self.add(Controls_Column())
|
||||
|
||||
|
||||
class Container(Gtk.Box):
|
||||
"""docstring for Container."""
|
||||
|
||||
|
|
|
@ -2,7 +2,8 @@
|
|||
import os
|
||||
|
||||
# Lib imports
|
||||
import gi, cairo
|
||||
import gi
|
||||
import cairo
|
||||
gi.require_version('Gtk', '3.0')
|
||||
gi.require_version('Gdk', '3.0')
|
||||
|
||||
|
|
Loading…
Reference in New Issue