mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 13:11:28 +00:00
Fix some 'import *' messiness. #1834
This commit is contained in:
@@ -133,7 +133,7 @@ import radialnet.util.geometry as geometry
|
||||
|
||||
from radialnet.bestwidgets.boxes import *
|
||||
from radialnet.core.Coordinate import PolarCoordinate
|
||||
from radialnet.gui.RadialNet import *
|
||||
import radialnet.gui.RadialNet as RadialNet
|
||||
from radialnet.bestwidgets.expanders import BWExpander
|
||||
|
||||
|
||||
@@ -207,7 +207,7 @@ class ControlAction(BWExpander):
|
||||
try_set_tooltip_text(self.__jump_to, 'Change focus')
|
||||
self.__jump_to.connect('toggled',
|
||||
self.__change_pointer,
|
||||
POINTER_JUMP_TO)
|
||||
RadialNet.POINTER_JUMP_TO)
|
||||
|
||||
try:
|
||||
# gtk.STOCK_INFO is available only in PyGTK 2.8 and later.
|
||||
@@ -220,20 +220,20 @@ class ControlAction(BWExpander):
|
||||
try_set_tooltip_text(self.__info, 'Show information')
|
||||
self.__info.connect('toggled',
|
||||
self.__change_pointer,
|
||||
POINTER_INFO)
|
||||
RadialNet.POINTER_INFO)
|
||||
|
||||
self.__group = gtk.RadioToolButton(self.__jump_to, gtk.STOCK_ADD)
|
||||
try_set_tooltip_text(self.__group, 'Group children')
|
||||
self.__group.connect('toggled',
|
||||
self.__change_pointer,
|
||||
POINTER_GROUP)
|
||||
RadialNet.POINTER_GROUP)
|
||||
|
||||
self.__region = gtk.RadioToolButton(self.__jump_to,
|
||||
gtk.STOCK_SELECT_COLOR)
|
||||
try_set_tooltip_text(self.__region, 'Fill region')
|
||||
self.__region.connect('toggled',
|
||||
self.__change_pointer,
|
||||
POINTER_FILL)
|
||||
RadialNet.POINTER_FILL)
|
||||
|
||||
self.__region_color = gtk.combo_box_new_text()
|
||||
self.__region_color.append_text(_('Red'))
|
||||
@@ -262,7 +262,7 @@ class ControlAction(BWExpander):
|
||||
if pointer != self.radialnet.get_pointer_status():
|
||||
self.radialnet.set_pointer_status(pointer)
|
||||
|
||||
if pointer == POINTER_FILL:
|
||||
if pointer == RadialNet.POINTER_FILL:
|
||||
self.__region_color.show()
|
||||
else:
|
||||
self.__region_color.hide()
|
||||
@@ -685,10 +685,10 @@ class ControlInterpolation(BWExpander):
|
||||
self.__cartesian_radio, _('Polar'))
|
||||
self.__cartesian_radio.connect('toggled',
|
||||
self.__change_system,
|
||||
INTERPOLATION_CARTESIAN)
|
||||
RadialNet.INTERPOLATION_CARTESIAN)
|
||||
self.__polar_radio.connect('toggled',
|
||||
self.__change_system,
|
||||
INTERPOLATION_POLAR)
|
||||
RadialNet.INTERPOLATION_POLAR)
|
||||
|
||||
self.__system_box = BWHBox()
|
||||
self.__system_box.bw_pack_start_noexpand_nofill(self.__polar_radio)
|
||||
@@ -718,7 +718,7 @@ class ControlInterpolation(BWExpander):
|
||||
"""
|
||||
active = self.radialnet.get_interpolation()
|
||||
|
||||
if active == INTERPOLATION_CARTESIAN:
|
||||
if active == RadialNet.INTERPOLATION_CARTESIAN:
|
||||
self.__cartesian_radio.set_active(True)
|
||||
|
||||
else:
|
||||
@@ -733,7 +733,7 @@ class ControlInterpolation(BWExpander):
|
||||
|
||||
active = self.radialnet.get_interpolation()
|
||||
|
||||
if active == INTERPOLATION_CARTESIAN:
|
||||
if active == RadialNet.INTERPOLATION_CARTESIAN:
|
||||
self.__cartesian_radio.set_active(True)
|
||||
|
||||
else:
|
||||
@@ -781,7 +781,7 @@ class ControlLayout(BWExpander):
|
||||
def __check_layout(self):
|
||||
"""
|
||||
"""
|
||||
if self.__layout.get_active() == LAYOUT_WEIGHTED:
|
||||
if self.__layout.get_active() == RadialNet.LAYOUT_WEIGHTED:
|
||||
self.__force.set_sensitive(True)
|
||||
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user