Popular recipes tagged "button"http://code.activestate.com/recipes/tags/button/2017-04-07T11:51:26-07:00ActiveState Code RecipesTkinter Link or Hyperlink Button (Python) 2017-04-07T11:51:26-07:00Miguel Martínez Lópezhttp://code.activestate.com/recipes/users/4189907/http://code.activestate.com/recipes/580774-tkinter-link-or-hyperlink-button/ <p style="color: grey"> Python recipe 580774 by <a href="/recipes/users/4189907/">Miguel Martínez López</a> (<a href="/recipes/tags/button/">button</a>, <a href="/recipes/tags/hyperlink/">hyperlink</a>, <a href="/recipes/tags/link/">link</a>, <a href="/recipes/tags/tkinter/">tkinter</a>, <a href="/recipes/tags/webbrowser/">webbrowser</a>). Revision 6. </p> <p>If a background is not provided, the widget gets the background color from its container. The link button has two states: normal and visited. When the link is clicked, the state change to visited. When the link is clicked the action command is called. By default the text of the link has an underline. There is several options for customization.</p> <p>I also added this megawidget to my "Metro UI Tkinter" recipe:</p> <p><a href="https://code.activestate.com/recipes/580729-metro-ui-tkinter" rel="nofollow">https://code.activestate.com/recipes/580729-metro-ui-tkinter</a></p> Movable button (Text) 2013-02-18T09:24:24-08:00greg zakharovhttp://code.activestate.com/recipes/users/4184115/http://code.activestate.com/recipes/578463-movable-button/ <p style="color: grey"> Text recipe 578463 by <a href="/recipes/users/4184115/">greg zakharov</a> (<a href="/recipes/tags/button/">button</a>, <a href="/recipes/tags/ironpython/">ironpython</a>). </p> <p>Just for fun. This IronPython script shows how you can create a form with movable button.</p> wxPython: Dramatic, shaded 3-D buttons that look like round glass in a metal ring. (Python) 2011-11-19T17:37:07-08:00Edward Sitarskihttp://code.activestate.com/recipes/users/4180006/http://code.activestate.com/recipes/577951-wxpython-dramatic-shaded-3-d-buttons-that-look-lik/ <p style="color: grey"> Python recipe 577951 by <a href="/recipes/users/4180006/">Edward Sitarski</a> (<a href="/recipes/tags/3d/">3d</a>, <a href="/recipes/tags/button/">button</a>, <a href="/recipes/tags/round/">round</a>, <a href="/recipes/tags/wxpython/">wxpython</a>). </p> <p>These buttons work like regular wx buttons and can be used the same way.</p> <p>They are very dramatic and add a strong visual and artistic flair to your interface. Use when there is something really significant and a regular button just doesn't cut it.</p> <p>The buttons are drawn with gradient shading (no bitmaps). They can be any size and support any font.</p> <p>This source has a self-test. Just run "python roundbutton.py".</p>