Popular recipes tagged "background"http://code.activestate.com/recipes/tags/background/2017-04-12T19:37:06-07:00ActiveState Code RecipesImage background for tkinter (Python) 2017-04-12T19:37:06-07:00Miguel Martínez Lópezhttp://code.activestate.com/recipes/users/4189907/http://code.activestate.com/recipes/580782-image-background-for-tkinter/ <p style="color: grey"> Python recipe 580782 by <a href="/recipes/users/4189907/">Miguel Martínez López</a> (<a href="/recipes/tags/background/">background</a>, <a href="/recipes/tags/tkinter/">tkinter</a>). Revision 3. </p> <p>This is only a proof of concept.</p> <p>In my first example, PIL is required. I use PIL also to draw the text over the background. I use the place geometry manager to position the entry.</p> <p>In my second example, I use a canvas widget to draw text over image. I also use the canvas to create other widgets over the background.</p> Generator with lookahead (Python) 2013-09-24T10:44:56-07:00Rutger Saalminkhttp://code.activestate.com/recipes/users/4187940/http://code.activestate.com/recipes/578671-generator-with-lookahead/ <p style="color: grey"> Python recipe 578671 by <a href="/recipes/users/4187940/">Rutger Saalmink</a> (<a href="/recipes/tags/background/">background</a>, <a href="/recipes/tags/generator/">generator</a>, <a href="/recipes/tags/generators/">generators</a>, <a href="/recipes/tags/lookahead/">lookahead</a>, <a href="/recipes/tags/performance/">performance</a>, <a href="/recipes/tags/python/">python</a>). </p> <p>Python generators are a great way of reducing memory usage due to the lazy (on demand) generation of values. However, when the process-time of generating such a value is relatively high, we can improve performance even more by obtaining the next n values of the generator in a separate thread in the background. Hence, the BackgroundGenerator.</p> PHP - Background Colour Changer (PHP) 2009-03-05T05:22:31-08:00Jonathan Fenechhttp://code.activestate.com/recipes/users/4169413/http://code.activestate.com/recipes/576679-php-background-colour-changer/ <p style="color: grey"> PHP recipe 576679 by <a href="/recipes/users/4169413/">Jonathan Fenech</a> (<a href="/recipes/tags/background/">background</a>, <a href="/recipes/tags/changer/">changer</a>, <a href="/recipes/tags/colour/">colour</a>). Revision 2. </p> <p>this is a script that changes the colour of the background to the day of the week, the code uses if and elseif...</p>