|
|
|
|
@ -594,9 +594,9 @@ class TTkCanvas:
|
|
|
|
|
|
|
|
|
|
def drawMenuBarBg(self, pos, size, color=TTkColor.RST ): |
|
|
|
|
mb = TTkCfg.theme.menuBar |
|
|
|
|
self.drawText(pos, text=f"{mb[3]}{mb[1]*(size-2)}{mb[4]}", color=color) |
|
|
|
|
self.drawText(pos=pos, text=f"{mb[3]}{mb[1]*(size-2)}{mb[4]}", color=color) |
|
|
|
|
|
|
|
|
|
def drawMenuBarButton(self, pos, width, text, border=True, submenu=False, shortcuts=[], color=TTkColor.RST, borderColor=TTkColor.RST, shortcutColor=TTkColor.UNDERLINE ): |
|
|
|
|
def drawMenuBarButton(self, width, text, pos=(0,0), border=True, submenu=False, shortcuts=[], color=TTkColor.RST, borderColor=TTkColor.RST, shortcutColor=TTkColor.UNDERLINE ): |
|
|
|
|
mb = TTkCfg.theme.menuBar |
|
|
|
|
x,y = pos |
|
|
|
|
if border: |
|
|
|
|
|