Skip to content

Commit

Permalink
remove more unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
bluppfisk committed Jun 19, 2023
1 parent b773144 commit 021f58a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
1 change: 0 additions & 1 deletion src/coin/alarm.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Lets the user set an alert for a certain price point

import gi
import notify2
import pygame

Expand Down
12 changes: 4 additions & 8 deletions src/coin/plugin_selection.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
# Plugin selection window

import gi
from gi.repository import Gdk, Gtk

from .exchange import Exchange


class PluginSelectionWindow(Gtk.Window):
def __init__(self, parent):
Expand Down Expand Up @@ -35,7 +32,6 @@ def __init__(self, parent):

col_chk = Gtk.TreeViewColumn("", rend_checkbox, active=0)
col_plugin = Gtk.TreeViewColumn("Plugin", rend_plugin, text=1)
# col_plugin.set_sort_column_id(0)

self.view_plugins.append_column(col_chk)
self.view_plugins.append_column(col_plugin)
Expand Down Expand Up @@ -65,20 +61,20 @@ def __init__(self, parent):
self.show_all()
self.present()

def _toggle(self, renderer, path):
def _toggle(self, _renderer, path):
iter = self.plugin_store.get_iter(path)
self.plugin_store[iter][0] = not self.plugin_store[iter][0]

def _select_plugins(self, widget=None):
def _select_plugins(self, _widget=None):
for item in self.plugin_store:
item[2].active = item[0]

self.parent.plugins_updated()
self._close()

def _on_key_release(self, widget, ev, data=None):
def _on_key_release(self, _widget, ev, _data=None):
if ev.keyval == Gdk.KEY_Escape:
self._close()

def _close(self, widget=None):
def _close(self, _widget=None):
self.destroy()

0 comments on commit 021f58a

Please sign in to comment.