Lines Matching refs:self

110     def __init__(self, parent, filename):
114 Gtk.Dialog.__init__(self, title, parent, flags, buttons)
115 self.connect('response', lambda w, id: self.destroy())
117 self.set_modal(True)
118 self.set_decorated(True)
119 self.set_border_width(6)
120 self.set_default_size(700,700)
121 self.set_resizable(True)
122 self.vbox.set_spacing(12)
124 self.scrolledwin = Gtk.ScrolledWindow()
125 self.scrolledwin.set_policy(Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC)
126 self.scrolledwin.set_shadow_type(Gtk.ShadowType.ETCHED_IN)
127 self.vbox.pack_start(self.scrolledwin, True, True, 0)
129 self.textview = Gtk.TextView()
130 self.textbuffer = self.textview.get_buffer()
131 self.textview.set_cursor_visible(False)
132 self.textview.set_editable(False)
136 self.iter = self.textbuffer.get_iter_at_offset(0);
139 self.textbuffer.insert(self.iter, string)
141 self.scrolledwin.add(self.textview)
142 self.show_all()
145 def __init__(self, parent=None):
146 Gtk.Dialog.__init__(self, self.__class__.__name__, parent, 0, None)
147 self.connect('destroy', lambda *w: Gtk.main_quit())
148 self.set_name('os_dialog')
153 self.set_title(_("Welcome to Oracle Solaris"))
154 self.set_border_width(5)
155 self.set_resizable(False)
156 self.vbox.set_border_width(2)
157 self.action_area.set_border_width(5)
161 self.vbox.pack_start(vbox, False, False, 0)
163 self.dialog = None
221 notices_button.connect('clicked', self.on_license_button_clicked)
222 self.action_area.pack_end (notices_button, False, True, 0)
224 close_button=self.add_button(Gtk.STOCK_CLOSE,Gtk.ResponseType.CANCEL)
225 self.set_default_response (Gtk.ResponseType.CANCEL)
231 help_button.connect('clicked', self.on_getting_started_button_clicked)
232 self.action_area.pack_end(help_button, False, True, 0)
233 self.action_area.set_child_secondary(help_button,True)
235 self.show_all()
237 def on_license_button_clicked (self, button):
238 dialog = NoticeDialog(self, "/etc/notices/NOTICES")
242 def on_getting_started_button_clicked(self, button):