Changeset 878
- Timestamp:
- 06/27/07 08:47:11 (6 years ago)
- Location:
- branch/k0p/umitInterfaceEditor
- Files:
-
- 1 added
- 2 modified
- 1 moved
-
Editor.py (modified) (3 diffs)
-
Toolbar.py (added)
-
uie.py (modified) (2 diffs)
-
umitInterfaceEditor.py (moved) (moved from branch/k0p/umitInterfaceEditor/ProfileWizardEditor.py) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branch/k0p/umitInterfaceEditor/Editor.py
r875 r878 1 1 #!/usr/bin/env python 2 # Copyright (C) 2005 Insecure.Com LLC. 3 # 4 # Authors: Luis Antonio Bastiao Silva <luis.kop@gmail.com> 5 # 6 # This program is free software; you can redistribute it and/or modify 7 # it under the terms of the GNU General Public License as published by 8 # the Free Software Foundation; either version 2 of the License, or 9 # (at your option) any later version. 10 # 11 # This program is distributed in the hope that it will be useful, 12 # but WITHOUT ANY WARRANTY; without even the implied warranty of 13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 # GNU General Public License for more details. 15 # 16 # You should have received a copy of the GNU General Public License 17 # along with this program; if not, write to the Free Software 18 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 2 19 3 20 import gtk … … 14 31 15 32 self.frame = gtk.Frame() 16 17 18 """ 19 Add a option to draw area 20 """ 21 def add_option(self, widget): 33 34 self._pack_expand_fill(self.frame) 35 self.__create_draw_area() 36 37 def __create_draw_area(self): 38 #falta 39 #codigo 40 msg = "error" 41 42 def add_option(self, widget): 43 """ 44 Add a option to draw area 45 """ 22 46 assert widget != None 23 47 … … 28 52 29 53 30 """ Remove option from draw area """31 54 32 def remove_option(self, widget): 55 def remove_option(self, widget): 56 """ 57 Remove option from draw area 58 """ 33 59 assert widget != None 34 60 self.remove(widget) -
branch/k0p/umitInterfaceEditor/uie.py
r874 r878 1 1 #!/usr/bin/env python 2 # Copyright (C) 200 7 Adriano Monteiro Marques <py.adriano@gmail.com>3 # 4 # Author: LuisBastiao Silva <luis.kop@gmail.com>2 # Copyright (C) 2005 Insecure.Com LLC. 3 # Authors: 4 # Luis Antonio Bastiao Silva <luis.kop@gmail.com> 5 5 # 6 6 # This program is free software; you can redistribute it and/or modify … … 18 18 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 19 20 21 20 import sys 22 from ProfileWizardEditor import ProfileWizardEditor21 from umitInterfaceEditor import ProfileWizardEditor 23 22 import gtk 24 23 -
branch/k0p/umitInterfaceEditor/umitInterfaceEditor.py
r875 r878 191 191 Packing widgets of mainly windows 192 192 """ 193 193 194 194 self.add(self.main_vbox) 195 self.main_vbox.pack_start(self.toolbar, False, False, 0) 196 197 195 198 196 199 #Pack widgets to main_box … … 355 358 """ 356 359 357 self.toolbar = gtk.Toolbar() 360 self.toolbar = self.ui_manager.get_widget('/toolbar') 361 self.main_vbox._pack_noexpand_nofill(self.toolbar) 358 362 359 363 … … 384 388 </menu> 385 389 </menubar> 390 <toolbar> 391 <toolitem action='Option checkbox'/> 392 <toolitem action='Option checkbox icon'/> 393 <toolitem action='Option entry'/> 394 <toolitem action='Open Scan'/> 395 <separator/> 396 <toolitem action='Report a bug'/> 397 <toolitem action='Show Help'/> 398 </toolbar> 386 399 """ 387 400
