button

How to do an outer glow via xml on button?

自闭症网瘾萝莉.ら 提交于 2021-01-28 04:56:35
问题 I have a customized button with rounded corners, I put some shadow for when it's pressed but I want to do an outer shadow just to the bottom part of the button, I am making the drawable via xml, so if the glow could be that way would be great. These are the relevant parts of the code: button_pressed_shadows.xml <?xml version="1.0" encoding="UTF-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android" > <item> <shape android:shape="rectangle" > <gradient android:startColor="

wxpython refresh window on button press

≯℡__Kan透↙ 提交于 2021-01-28 02:03:17
问题 I have been having some trouble with my Python program. Basically, it is a very very simple file manager. I have been trying to get it to move between folders (user clicks a folder, program refreshes display and shows contents of folder). The problem I am having is that I cant seem to get the button to refresh the display and then fill it with the new folders and files when clicked. Here is the code I am using and it is on Linux. import wx import fileBrowser class interface(wx.Frame): def _

Button to show/hide div has to be pressed twice

末鹿安然 提交于 2021-01-27 21:09:41
问题 My Goal: to have my div hidden on page load and show/hide the div with a button using only HTML/CSS/JavaScript. I have set up a button in HTML and JavaScript to show/hide my div which works great when the div is visible on page load and not hidden using CSS. When I hide the div using CSS display: none; the div is hidden on page load but the button has to be clicked twice before the div becomes visible. HTML: <button class="btn btn-link" id="btnLink" onclick="hideLink()">Hide Content</button>

Different background for a button's states in Kotlin

蓝咒 提交于 2021-01-27 19:40:54
问题 I have a button in my project that works like this: The button has 3 different designs for each state - disabled ( state_enabled="false" ), enabled, pressed. This button remains disabled if no file is selected, and has a particular design for it. Although, when file is selected, this button becomes enabled and switches to a different design. And the button's highlight color is possible to see every time when the button is enabled and pressed. What I have tried so far: <?xml version="1.0"

Different background for a button's states in Kotlin

浪子不回头ぞ 提交于 2021-01-27 19:19:00
问题 I have a button in my project that works like this: The button has 3 different designs for each state - disabled ( state_enabled="false" ), enabled, pressed. This button remains disabled if no file is selected, and has a particular design for it. Although, when file is selected, this button becomes enabled and switches to a different design. And the button's highlight color is possible to see every time when the button is enabled and pressed. What I have tried so far: <?xml version="1.0"

Click and hold button in R shiny?

南笙酒味 提交于 2021-01-27 19:17:44
问题 I would like to be able to change the value of a parameter by clicking on a R shiny button. So I need to buttons, one for increasing and one for decreasing the value. I would like to keep the de-/increase of the value with a certain speed while holding the button. By releasing the click of the button the action should stop. So far I have not found this option for the actionButtons in R shiny. Is there another type of button which gives this opportunity? 来源: https://stackoverflow.com/questions

How to increase Checkbutton size - Tkinter

你离开我真会死。 提交于 2021-01-27 18:46:37
问题 Is it possible to enlarge the tiny check box of the Checkbutton object? The size is out of proportion when increasing the text size. I searched through the following link (Checkbutton) and can't find anything about the actual size of the box. Thank you for your help. 回答1: It is not possible to change the size of the checkbutton, but you can supply your own images. So, one solution is to create your own images at various sizes. 来源: https://stackoverflow.com/questions/46265567/how-to-increase

How can I change the colour of a button when clicked at runtime? [duplicate]

眉间皱痕 提交于 2021-01-27 18:43:29
问题 This question already has answers here : List of All Tkinter Events (2 answers) Closed 4 months ago . button1=Button(root,text="A1",width=8).grid(row=0,column=0) button2=Button(root,text="A2",width=8).grid(row=0,column=1) label1=Label(root,text=" ",padx=20).grid(row=0,column=2) button22=Button(root,text="A3",width=8).grid(row=0,column=3,sticky='E') button23=Button(root,text="A4",width=8).grid(row=0,column=4,sticky='E') I'm trying to make seat arrangement system for a school project. I have an

setSize() not working?

筅森魡賤 提交于 2021-01-27 18:29:10
问题 I have a program which takes two buttons, one that is regular and one that has a picture that changes depending on mouse roll over. Currently, since the picture is large, JButton custom is very large as well, can I change the size of custom and keep the image (and roll over image) proportionate? I have tried setSize, and it does't do anything. Any feedback would be appreciated! custom.setSize(50, 50); Here is all of my code: Main class: package Buttons; import javax.swing.JFrame; public class

PyQt5: Can't see close buttons in QTabBar

痞子三分冷 提交于 2021-01-27 12:04:37
问题 I can't see the close button on individual tabs when using PyQt5. I can close the individual tabs when I click where I know the close button should be, but can't see the button outright: #!/bin/python3 import sys from PyQt5.QtWidgets import (QApplication, QVBoxLayout, QTabBar, QFrame) class App(QFrame): def __init__(self): super().__init__() self.setWindowTitle("Web Browser") self.setBaseSize(683, 384) self.CreateApp() def CreateApp(self): self.layout = QVBoxLayout() self.tab_Bar = QTabBar