titlebar

Change Title Bar on a Tk window

元气小坏坏 提交于 2021-02-10 20:35:37
问题 Im trying to make the top bar of my Tk window say calculator instaed of Tk is there anyway to do that also can i change the little icon beside it to a differnt image if not the title would just be fine Thank you Here is the code: import math def calculate(): try: num1 = float(enter1.get()) num2 = float(enter2.get()) result = num1 * num2 label3.config(text=str(result)) except ValueError: label3.config(text='Enter numeric values!') def calculate2(): try: num1 = float(enter1.get()) num2 = float

Change Title Bar on a Tk window

[亡魂溺海] 提交于 2021-02-10 20:31:11
问题 Im trying to make the top bar of my Tk window say calculator instaed of Tk is there anyway to do that also can i change the little icon beside it to a differnt image if not the title would just be fine Thank you Here is the code: import math def calculate(): try: num1 = float(enter1.get()) num2 = float(enter2.get()) result = num1 * num2 label3.config(text=str(result)) except ValueError: label3.config(text='Enter numeric values!') def calculate2(): try: num1 = float(enter1.get()) num2 = float

Change color title bar

孤人 提交于 2021-01-29 18:18:44
问题 I want to change the color of the title bar. I tried this: <style name="AppTheme" parent="AppBaseTheme"> <!-- All customizations that are NOT specific to a particular API-level can go here. --> <item name="android:actionBarStyle">@style/ColorBar</item> </style> <style name="ColorBar" parent="@android:style/Widget.Holo.Light.ActionBar"> <item name="android:background">@color/white</item> <item name="android:textColor">@color/orange</item> </style> But it doesn't work. What is wrong in my code

Is there a way to hide the title bar, but keep the buttons in JFrame

蓝咒 提交于 2021-01-29 16:27:13
问题 I was wondering if I could hide the title bar in Java Swing, but keep the maximize, minimize, and close buttons. I've tried adding frame.setUndecorated(true); but it removes the maximize, minimize, and close buttons completely. Here is my code: public Display(String title, int width, int height) { Display.width = width; Display.height = height; Display.absWidth = width; Display.absHeight = height; Display.d = new Dimension(width, height); setProperties(); image = new BufferedImage(width,

Xamarin Forms - Hide Burger Menu

半城伤御伤魂 提交于 2021-01-07 03:13:07
问题 Since the release of XF 3.2, it provided the ability to create your own custom TitleBar. This feature works well but I have a couple of problems that I am hoping someone can help me with. I am trying to hide the Burger Menu icon, but so far I have not been able to. I can hide the Back Button by doing the following: NavigationPage.HasBackButton="False" This does however still leave a slight vertical bar on the left side of the TitleBar, so if someone knows how to also remove that then great. I

Xamarin Forms - Hide Burger Menu

旧城冷巷雨未停 提交于 2021-01-07 03:12:56
问题 Since the release of XF 3.2, it provided the ability to create your own custom TitleBar. This feature works well but I have a couple of problems that I am hoping someone can help me with. I am trying to hide the Burger Menu icon, but so far I have not been able to. I can hide the Back Button by doing the following: NavigationPage.HasBackButton="False" This does however still leave a slight vertical bar on the left side of the TitleBar, so if someone knows how to also remove that then great. I

Xamarin Forms - Hide Burger Menu

自古美人都是妖i 提交于 2021-01-07 03:12:07
问题 Since the release of XF 3.2, it provided the ability to create your own custom TitleBar. This feature works well but I have a couple of problems that I am hoping someone can help me with. I am trying to hide the Burger Menu icon, but so far I have not been able to. I can hide the Back Button by doing the following: NavigationPage.HasBackButton="False" This does however still leave a slight vertical bar on the left side of the TitleBar, so if someone knows how to also remove that then great. I