Latest recipes tagged "colors" Code RecipesMetro UI Tkinter (Python) 2017-04-13T23:48:27-07:00Miguel Martínez López <p style="color: grey"> Python recipe 580729 by <a href="/recipes/users/4189907/">Miguel Martínez López</a> (<a href="/recipes/tags/colors/">colors</a>, <a href="/recipes/tags/metro/">metro</a>, <a href="/recipes/tags/style/">style</a>, <a href="/recipes/tags/tkinter/">tkinter</a>). Revision 20. </p> <p>I provide here some widgets with windows metro style: QuoteFrame, Metro_LabelFrame. Metro_Button, Container, Label_Container, Pagination.</p> <p>It's possible to provide an ID to the widgets, and then find the widget using the function <em>get_widget_by_ID</em>. </p> <p>Many widgets inherits the background from its container if this value is not provided.</p> <p>To inherit the background makes easy to create colored areas, instead of setting the same background color to every widget of the area.</p> Puzzle: Four cubes with different colors on their sides (Python) 2013-02-11T10:32:26-08:00Thomas Lehmann <p style="color: grey"> Python recipe 578454 by <a href="/recipes/users/4174477/">Thomas Lehmann</a> (<a href="/recipes/tags/colors/">colors</a>, <a href="/recipes/tags/cube/">cube</a>, <a href="/recipes/tags/puzzle/">puzzle</a>). </p> <p>I have four cubes (in real) with different colors on their sides as a puzzle with the final goal to place each cube side by side that way that on each visible side (except the two ends) you can see four different colors.</p> <p>I have placed the cubes as they are (side by side) writing down the current colors (see function main). The CubesChecker class is searching for one solution. You don't see the operation on how to rotate but knowing the final state it's really easy to do it yourself then.</p>