<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>create &amp;mdash; Paul Sutton</title>
    <link>https://personaljournal.ca/paulsutton/tag:create</link>
    <description>Personal Blog</description>
    <pubDate>Tue, 05 May 2026 16:30:37 +0000</pubDate>
    <item>
      <title>More tkinter : Combine buttons and labels.</title>
      <link>https://personaljournal.ca/paulsutton/more-tkinter-combine-buttons-and-labels</link>
      <description>&lt;![CDATA[More tkinter : Combine buttons and labels.&#xA;&#xA;Now that we can add a label and a button, it is time to combine the two.  The following code does this. &#xA;&#xA;define functions for button(s)&#xA;def btn1():&#xA;&#x9;print (&#34;button pressed&#34;)&#xA;&#x9;&#xA;&#x9;&#xA;create button object&#x9;&#xA;btntog2 = Button( window, text =&#39;button1&#39;, command=btn1)&#xA;btnexit = Button( window, text =&#39;exit&#39;,command=exit)&#x9;&#xA;&#xA;place button object&#xA;btntog2.grid(row = 1, column = 2, padx = 5, pady = 5)&#xA;btnexit.grid(row = 2, column = 2, padx = 5, pady = 5)&#xA;&#xA;define labeles&#xA;button1 = Label(window, text=&#34;press button&#34;)&#xA;button2 = Label(window, text=&#34;exit program&#34;)&#xA;&#xA;place labels&#xA;button1.grid(row = 1, column = 1, padx = 5, pady = 5)&#xA;button2.grid(row = 2, column = 1, padx = 5, pady = 5)&#xA;&#xA;We get:&#xA;&#xA;tk label&#xA;&#xA;#tkinter,#python,#gui,#programming. &#xA;&#xA;hr&#xD;&#xA;&#xD;&#xA;table&#xD;&#xA;thead&#xD;&#xA;trtda rel=&#34;me&#34; href=&#34;https://qoto.org/@zleap&#34;Mastodon/a/td&#xD;&#xA;tda href=&#34;https://wiki.ircnow.org/?n=Shelllabs.Intro&#34;ShellLabs/td&#xD;&#xA;tda href=&#34;https://joinmastodon.org/&#34;Join Mastodon/a/td/tr/thead/table&#xD;&#xA;center&#xD;&#xA;AI statement : b Consent is NOT granted to use the content of this blog for the purposes of AI training or similar activity.  Consent CANNOT be assumed, it has to be granted. /b&#xD;&#xA;/center&#xD;&#xA;&#xD;&#xA;a href=&#34;https://liberapay.com/PaulSutton/donate&#34;img alt=&#34;Donate using Liberapay&#34; src=&#34;https://liberapay.com/assets/widgets/donate.svg&#34;/a&#xD;&#xA;]]&gt;</description>
      <content:encoded><![CDATA[<p>More tkinter : Combine buttons and labels.</p>

<p>Now that we can add a label and a button, it is time to combine the two.  The following code does this.</p>

<pre><code>#define functions for button(s)
def btn1():
	print (&#34;button pressed&#34;)
	
	
#create button object	
btn_tog2 = Button( window, text =&#39;button1&#39;, command=btn1)
btn_exit = Button( window, text =&#39;exit&#39;,command=exit)	

#place button object
btn_tog2.grid(row = 1, column = 2, padx = 5, pady = 5)
btn_exit.grid(row = 2, column = 2, padx = 5, pady = 5)

#define labeles
button1 = Label(window, text=&#34;press button&#34;)
button2 = Label(window, text=&#34;exit program&#34;)

#place labels
button1.grid(row = 1, column = 1, padx = 5, pady = 5)
button2.grid(row = 2, column = 1, padx = 5, pady = 5)
</code></pre>

<p>We get:</p>

<p><img src="https://raw.githubusercontent.com/zleap/blogmedia/master/tkinter/tk4.png" alt="tk label"></p>

<p><a href="/paulsutton/tag:tkinter" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">tkinter</span></a>,<a href="/paulsutton/tag:python" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">python</span></a>,<a href="/paulsutton/tag:gui" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">gui</span></a>,<a href="/paulsutton/tag:programming" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">programming</span></a>.</p>

<hr>

<p><table>
<thead>
<tr><td><a href="https://qoto.org/@zleap" rel="nofollow">Mastodon</a></td>
<td><a href="https://wiki.ircnow.org/?n=Shelllabs.Intro" rel="nofollow">ShellLabs</td>
<td><a href="https://joinmastodon.org/" rel="nofollow">Join Mastodon</a></td></tr></thead></table>

AI statement : <b> Consent is NOT granted to use the content of this blog for the purposes of AI training or similar activity.  Consent CANNOT be assumed, it has to be granted. </b>
</p>

<p><a href="https://liberapay.com/PaulSutton/donate" rel="nofollow"><img alt="Donate using Liberapay" src="https://liberapay.com/assets/widgets/donate.svg"></a></p>
]]></content:encoded>
      <guid>https://personaljournal.ca/paulsutton/more-tkinter-combine-buttons-and-labels</guid>
      <pubDate>Sat, 16 May 2020 06:30:00 +0000</pubDate>
    </item>
    <item>
      <title>Creating a write freely blog</title>
      <link>https://personaljournal.ca/paulsutton/creating-a-write-freely-blog</link>
      <description>&lt;![CDATA[Creating a write freely blog&#xA;&#xA;Creating a blog post on a writefreely instance is a case of:&#xA;&#xA;Logging in to your account, after which you are simply presented with your page where you can start typing. &#xA;&#xA;Add a title, then the main body of your post. &#xA;&#xA;I sometimes add a list of links, which relate to any items mentioned in my post.  I then add a list of tags. Under that I usually have a sort of footer, which has copyleft information both in text and a graphic. &#xA;&#xA;To add a picture you need to add some markdown which points to the location of the image.&#xA;&#xA;cc-by logo&#xA;&#xA;For the purpose of this, I am creating a draft, however once the post is finished, clicking on draft at the top, will allow me to &#39;publish to&#39; a blog hosted by my account.  Write freely allows for multiple blogs from the same login.  Which is helpful for different subjects or topics for example.&#xA;&#xA;resources&#xA;&#xA;#writefreely, #create, #blog, #post&#xA;&#xA;cc-by logo&#xA;&#xA;Licenced under Attribution 4.0 International (CC BY 4.0)&#xA;&#xA;hr&#xD;&#xA;&#xD;&#xA;table&#xD;&#xA;thead&#xD;&#xA;trtda rel=&#34;me&#34; href=&#34;https://qoto.org/@zleap&#34;Mastodon/a/td&#xD;&#xA;tda href=&#34;https://wiki.ircnow.org/?n=Shelllabs.Intro&#34;ShellLabs/td&#xD;&#xA;tda href=&#34;https://joinmastodon.org/&#34;Join Mastodon/a/td/tr/thead/table&#xD;&#xA;center&#xD;&#xA;AI statement : b Consent is NOT granted to use the content of this blog for the purposes of AI training or similar activity.  Consent CANNOT be assumed, it has to be granted. /b&#xD;&#xA;/center&#xD;&#xA;&#xD;&#xA;a href=&#34;https://liberapay.com/PaulSutton/donate&#34;img alt=&#34;Donate using Liberapay&#34; src=&#34;https://liberapay.com/assets/widgets/donate.svg&#34;/a&#xD;&#xA;]]&gt;</description>
      <content:encoded><![CDATA[<p>Creating a write freely blog</p>

<p>Creating a blog post on a writefreely instance is a case of:</p>

<p>Logging in to your account, after which you are simply presented with your page where you can start typing.</p>

<p>Add a title, then the main body of your post.</p>

<p>I sometimes add a list of links, which relate to any items mentioned in my post.  I then add a list of tags. Under that I usually have a sort of footer, which has copyleft information both in text and a graphic.</p>

<p>To add a picture you need to add some markdown which points to the location of the image.</p>

<pre><code>![cc-by logo](https://raw.githubusercontent.com/zleap/blogmedia/master/88x31.png)
</code></pre>

<p>For the purpose of this, I am creating a draft, however once the post is finished, clicking on draft at the top, will allow me to &#39;publish to&#39; a blog hosted by my account.  Write freely allows for multiple blogs from the same login.  Which is helpful for different subjects or topics for example.</p>

<p>resources</p>

<p><a href="/paulsutton/tag:writefreely" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">writefreely</span></a>, <a href="/paulsutton/tag:create" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">create</span></a>, <a href="/paulsutton/tag:blog" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">blog</span></a>, <a href="/paulsutton/tag:post" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">post</span></a></p>

<p><img src="https://raw.githubusercontent.com/zleap/blogmedia/master/88x31.png" alt="cc-by logo"></p>

<p><a href="https://creativecommons.org/licenses/by/4.0/" rel="nofollow">Licenced under Attribution 4.0 International (CC BY 4.0)</a></p>

<hr>

<p><table>
<thead>
<tr><td><a href="https://qoto.org/@zleap" rel="nofollow">Mastodon</a></td>
<td><a href="https://wiki.ircnow.org/?n=Shelllabs.Intro" rel="nofollow">ShellLabs</td>
<td><a href="https://joinmastodon.org/" rel="nofollow">Join Mastodon</a></td></tr></thead></table>

AI statement : <b> Consent is NOT granted to use the content of this blog for the purposes of AI training or similar activity.  Consent CANNOT be assumed, it has to be granted. </b>
</p>

<p><a href="https://liberapay.com/PaulSutton/donate" rel="nofollow"><img alt="Donate using Liberapay" src="https://liberapay.com/assets/widgets/donate.svg"></a></p>
]]></content:encoded>
      <guid>https://personaljournal.ca/paulsutton/creating-a-write-freely-blog</guid>
      <pubDate>Thu, 07 May 2020 06:30:00 +0000</pubDate>
    </item>
  </channel>
</rss>