def __init__(self, refresh=1, stop=1): self.nmap_highlight = NmapOutputHighlight() gtk.VBox.__init__(self) # Creating widgets self.__create_widgets() # Setting scrolled window self.__set_scrolled_window() # Setting text view self.__set_text_view() buffer = self.text_view.get_buffer() # The end mark is used to scroll to the bottom of the display. self.end_mark = buffer.create_mark(None, buffer.get_end_iter(), False) self.refreshing = True # Adding widgets to the VBox self.pack_start(self.scrolled, expand=True, fill=True) # The NmapCommand instance, if any, whose output is shown in this # display. self.command_execution = None # The position of the last read from the output stream. self.output_file_pointer = None
def __init__(self, nmap_output_view): HIGDialog.__init__(self, _("Nmap Output Properties"), buttons=(gtk.STOCK_CLOSE, gtk.RESPONSE_CLOSE)) self.nmap_highlight = NmapOutputHighlight() self.__create_widgets() self.__pack_widgets() self.highlight_tab() self.vbox.show_all()