Popular recipes tagged "round"http://code.activestate.com/recipes/tags/round/2012-04-26T20:15:48-07:00ActiveState Code RecipesRound number to specified number of significant digits (Python) 2012-04-26T20:15:48-07:00Ben Hoythttp://code.activestate.com/recipes/users/4170919/http://code.activestate.com/recipes/578114-round-number-to-specified-number-of-significant-di/ <p style="color: grey"> Python recipe 578114 by <a href="/recipes/users/4170919/">Ben Hoyt</a> (<a href="/recipes/tags/decimalplaces/">decimalplaces</a>, <a href="/recipes/tags/round/">round</a>, <a href="/recipes/tags/rounding/">rounding</a>, <a href="/recipes/tags/significantfigures/">significantfigures</a>). </p> <p>This function rounds num to the specified number of significant digits (rather than decimal places). See doctests for more examples.</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>