diff browser_side/panels.py @ 89:8d2c7be09eef

browser side: CSS: removed useless z-indexes, and replaced tabs by spaces
author Goffi <goffi@goffi.org>
date Mon, 27 Jun 2011 20:10:29 +0200
parents 50b480fd0605
children 9729ed7171a6
line wrap: on
line diff
--- a/browser_side/panels.py	Mon Jun 27 16:46:31 2011 +0200
+++ b/browser_side/panels.py	Mon Jun 27 20:10:29 2011 +0200
@@ -146,17 +146,16 @@
         self.__title = Label(title)
         self.__title.setStyleName('widgetHeader_title')
         header.add(self.__title)
-        #header.setCellVerticalAlignment(self.title, HasAlignment.ALIGN_MIDDLE)
-        #header.setCellWidth(self.title, '100%')
         button_group_wrapper = SimplePanel()
         button_group_wrapper.setStyleName('widgetHeader_buttonsWrapper')
         button_group = HorizontalPanel()
         button_group.setStyleName('widgetHeader_buttonGroup')
         setting_button = Image("media/icons/misc/settings.png")
         setting_button.setStyleName('widgetHeader_settingButton')
+        setting_button.addClickListener(self.onSetting)
         close_button = Image("media/icons/misc/close.png")
         close_button.setStyleName('widgetHeader_closeButton')
-        close_button.addClickListener(getattr(self,"onClose"))
+        close_button.addClickListener(self.onClose)
         button_group.add(setting_button)
         button_group.add(close_button)
         button_group_wrapper.setWidget(button_group)
@@ -177,6 +176,9 @@
         _widgetspanel = self.getParent().getParent().getParent()
         _widgetspanel.removeWidget(self)
 
+    def onSetting(self, sender):
+        Window.alert('settings')
+
     def setTitle(self, text):
         """change the title in the header of the widget
         @param text: text of the new title"""