1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-07 06:59:03 +00:00

Spellcheck on all Python files

This commit is contained in:
dmiller
2014-02-20 21:22:30 +00:00
parent 1575c63d7d
commit a72faf3906
21 changed files with 75 additions and 75 deletions

View File

@@ -307,7 +307,7 @@ class TargetEntry(gtk.Entry):
def update(self):
self.set_text(u" ".join(self.ops.target_specs))
def changed_cb(self, eidget):
def changed_cb(self, widget):
self.ops.target_specs = self.get_targets()
def get_targets(self):

View File

@@ -783,7 +783,7 @@ class ScanInterface(HIGVBox):
def host_selection_changed(self, widget):
self.refresh_port_output()
# Switch nmap output to show first host occourrence
# Switch nmap output to show first host occurrence
model, selection = self.host_view_selection.get_selected_rows()
for path in selection:
self.go_to_host(model[path][2])

View File

@@ -228,7 +228,7 @@ class ScanNmapOutputPage(HIGVBox):
self._update()
def set_active_iter(self, i):
"""Set the active entry to an interator into the ScansListStore
"""Set the active entry to an iterator into the ScansListStore
referred to by this object."""
self.scans_list.set_active_iter(i)

View File

@@ -238,7 +238,7 @@ class ScriptInterface:
self.current_arguments = []
self.set_help_texts()
self.prev_script_spec = None
self.focussedentry = None
self.focusedentry = None
self.liststore = gtk.ListStore(str, "gboolean", object)
@@ -677,7 +677,7 @@ clicking in the value field beside the argument name.""")
self.set_description(entry)
self.populate_arg_list(entry)
# Remember the currently pointing script entry
self.focussedentry = entry
self.focusedentry = entry
def update_help_ls_cb(self, widget, extra): # list of scripts
"""Callback method to display the help for the list of scripts."""
@@ -696,7 +696,7 @@ clicking in the value field beside the argument name.""")
# convert_widget_to_bin_window_coords was introduced in PyGTK 2.12.
return
path = treeview.get_path_at_pos(x, y)
if not path or not self.focussedentry:
if not path or not self.focusedentry:
self.help_buf.set_text("")
return
path = path[0]

View File

@@ -127,7 +127,7 @@ This module implements GTK Widgets that try their best to adhere to the
GNOME Human Interface Guidelines (aka HIG).
This is mostly implemented by subclassing from the GTK classes, and
providing defaults that better match the HIG specifications/recomendations.
providing defaults that better match the HIG specifications/recommendations.
"""
from gtkutils import *

View File

@@ -148,7 +148,7 @@ class HIGAlertDialog(gtk.MessageDialog):
"""
HIGfied Alert Dialog.
Implements the sugestions documented on:
Implements the suggestions documented in:
http://developer.gnome.org/projects/gup/hig/2.0/windows-alert.html
"""

View File

@@ -146,7 +146,7 @@ class HIGClosableTabLabel(HIGHBox):
self.label_text = label_text
self.__create_widgets()
#self.propery_map = {"label_text" : self.label.get_label}
#self.property_map = {"label_text" : self.label.get_label}
def __create_widgets(self):
self.label = gtk.Label(self.label_text)

View File

@@ -191,7 +191,7 @@ class HIGSpinnerImages:
self.rest_pixbuf = self.static_pixbufs[name]
def set_size(self, width, height):
"""Sets the size of eache pixbuf (static and animated)"""
"""Sets the size of each pixbuf (static and animated)"""
new_animated = []
for p in self.animated_pixbufs:
new_animated.append(p.scale_simple(width, height,
@@ -349,11 +349,11 @@ class HIGSpinner(gtk.EventBox):
self.images_width = 32
self.images_height = 32
# Timeout set to 100 miliseconds per frame, just as the
# Timeout set to 100 milliseconds per frame, just as the
# Nautilus/Epiphany implementation
self.timeout = 120
# Initialize a cache for ouselves
# Initialize a cache for ourselves
self.cache = HIGSpinnerCache()
self.cache.load_static_from_lookup()
self.cache.load_animated_from_lookup()

View File

@@ -141,7 +141,7 @@ class HIGTable(gtk.Table):
# TODO:
# - Automatic position packing,
# - Gereric attach function that detects the widget type
# - Generic attach function that detects the widget type
def __init__(self, rows=1, columns=1, homogeneous=False):
gtk.Table.__init__(self, rows, columns, homogeneous)