E5Gui/E5SideBar.py

changeset 2953
703452a2876f
parent 2824
858412c29c34
child 2990
583beaf0b4b8
equal deleted inserted replaced
2952:94fc661a54a2 2953:703452a2876f
420 return self.__orientation 420 return self.__orientation
421 421
422 def setOrientation(self, orient): 422 def setOrientation(self, orient):
423 """ 423 """
424 Public method to set the orientation of the sidebar. 424 Public method to set the orientation of the sidebar.
425
425 @param orient orientation of the sidebar (North, East, South, West) 426 @param orient orientation of the sidebar (North, East, South, West)
426 """ 427 """
427 if orient == E5SideBar.North: 428 if orient == E5SideBar.North:
428 self.__tabBar.setShape(QTabBar.RoundedNorth) 429 self.__tabBar.setShape(QTabBar.RoundedNorth)
429 self.__tabBar.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Preferred) 430 self.__tabBar.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Preferred)
498 def setTabToolTip(self, index, tip): 499 def setTabToolTip(self, index, tip):
499 """ 500 """
500 Public method to set the tooltip text of a tab. 501 Public method to set the tooltip text of a tab.
501 502
502 @param index index of the tab (integer) 503 @param index index of the tab (integer)
503 @param tooltip text text to set (string) 504 @param tip tooltip text to set (string)
504 """ 505 """
505 self.__tabBar.setTabToolTip(index, tip) 506 self.__tabBar.setTabToolTip(index, tip)
506 507
507 def tabWhatsThis(self, index): 508 def tabWhatsThis(self, index):
508 """ 509 """
516 def setTabWhatsThis(self, index, text): 517 def setTabWhatsThis(self, index, text):
517 """ 518 """
518 Public method to set the WhatsThis text of a tab. 519 Public method to set the WhatsThis text of a tab.
519 520
520 @param index index of the tab (integer) 521 @param index index of the tab (integer)
521 @param WhatsThis text text to set (string) 522 @param text WhatsThis text to set (string)
522 """ 523 """
523 self.__tabBar.setTabWhatsThis(index, text) 524 self.__tabBar.setTabWhatsThis(index, text)
524 525
525 def widget(self, index): 526 def widget(self, index):
526 """ 527 """

eric ide

mercurial