<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Python on Lockwood Family Having Fun Writing Code</title><link>https://lockwood.fun/tags/python/</link><description>Recent content in Python on Lockwood Family Having Fun Writing Code</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Tue, 22 Oct 2019 15:46:10 -0600</lastBuildDate><atom:link href="https://lockwood.fun/tags/python/index.xml" rel="self" type="application/rss+xml"/><item><title>Zero to Hero Python 3 Certificate Ammon</title><link>https://lockwood.fun/post/python/zero-to-hero-python-3-certificate-ammon/</link><pubDate>Tue, 22 Oct 2019 15:46:10 -0600</pubDate><guid>https://lockwood.fun/post/python/zero-to-hero-python-3-certificate-ammon/</guid><description>&lt;h2 id="congratulations"&gt;Congratulations!&lt;/h2&gt;
&lt;figure&gt;&lt;img src="https://lockwood.fun/images/certificates/zero-to-hero-ammon.png"&gt;&lt;figcaption&gt;
 &lt;h4&gt;Certificate of Completion. Zero to hero python 3 for Ammon Lockwood&lt;/h4&gt;
 &lt;/figcaption&gt;
&lt;/figure&gt;

&lt;p&gt;&amp;#x1f389; &amp;#x1f44f; &amp;#x1f44d; Way to go Ammon! Congratulations on completing the Zero to Hero Python 3 course on Udemy!&lt;/p&gt;</description></item><item><title>Penpal Finishing Touches</title><link>https://lockwood.fun/post/python/penpal-finishing-touches/</link><pubDate>Wed, 16 Oct 2019 23:45:28 -0600</pubDate><guid>https://lockwood.fun/post/python/penpal-finishing-touches/</guid><description>&lt;h2 id="let-the-labels-be-selectable"&gt;Let the labels be selectable&lt;/h2&gt;
&lt;p&gt;So as we stated in the previous episode, there are a couple of features that we still need to add. We really wanted the user to be able to copy+paste the decoded or encoded message so that they can send it to their penpal. Turns out that this is a very easy thing to do. &lt;code&gt;Gtk.Label&lt;/code&gt; has a method &lt;code&gt;set_selectable()&lt;/code&gt; and we just needed to pass true to that method.&lt;/p&gt;</description></item><item><title>Penpal Connecting Modules to UI</title><link>https://lockwood.fun/post/python/penpal-connecting-modules-to-ui/</link><pubDate>Wed, 09 Oct 2019 23:45:11 -0600</pubDate><guid>https://lockwood.fun/post/python/penpal-connecting-modules-to-ui/</guid><description>&lt;h2 id="give-it-a-gui"&gt;Give it a GUI&lt;/h2&gt;
&lt;p&gt;If you&amp;rsquo;ve been following along, you know that we are using GTK for our GUI. It took us a bit of time to get comfortable with it. I come from a web background and so I wanted to be able to create a &lt;code&gt;&amp;lt;textarea&amp;gt;&lt;/code&gt; for the user to enter the message that they wanted to encode or decode. All that I could find was the the &lt;code&gt;Gtk.Entry&lt;/code&gt;. It was an input, and it would work, but I wanted a larger space for text. I didn&amp;rsquo;t like that lots of text would get cut off in the &lt;code&gt;Gtk.Entry&lt;/code&gt; widget. I found &lt;code&gt;Gtk.TextView&lt;/code&gt; and I thought, &amp;ldquo;This is it! I think this will do what I want.&amp;rdquo;. However, it was not as easy to do what I wanted. I thought I would be able to just add the TextView to the flowbox and be done. I did this and it did work, however it was small and didn&amp;rsquo;t really look like the &lt;code&gt;&amp;lt;textarea&amp;gt;&lt;/code&gt; that I&amp;rsquo;m familiar with. I spent a lot of time on Google trying to find an example of how to change the size. I must have been really off my game because I wasn&amp;rsquo;t having any luck finding an example. Sadly, I don&amp;rsquo;t recall where I finally found the answer. I feel like it was on the official documentation that I found &lt;code&gt;set_size_request&lt;/code&gt; on the &lt;code&gt;Gtk.TextView&lt;/code&gt;. I tried it out and was happy that it worked nicely for me.&lt;/p&gt;</description></item><item><title>Penpal Decode &amp; Encode Modules</title><link>https://lockwood.fun/post/python/penpal-decode-encode-classes/</link><pubDate>Mon, 07 Oct 2019 23:41:35 -0600</pubDate><guid>https://lockwood.fun/post/python/penpal-decode-encode-classes/</guid><description>&lt;h1 id="creating-the-decode--encode-modules"&gt;Creating the Decode &amp;amp; Encode Modules&lt;/h1&gt;
&lt;p&gt;Life got really busy for a bit and so it took some time for us to get things rolling again. Thankfully April was able to get some work done on the decoder module and I, Ammon, was able to get a little work on the UI done.&lt;/p&gt;
&lt;h2 id="decoder-module"&gt;Decoder Module&lt;/h2&gt;
&lt;p&gt;April selected the task of creating the decoder class. Her and Kaleb were able to create a file that would shift an alphabet and then find the correct letter by shifting the index of the encoded letter to output the correct letter. It works well in jupyter, but it&amp;rsquo;s not yet able to receive any user input, nor is it part of the UI.&lt;/p&gt;</description></item><item><title>Penpal Cipher Project - GUIs</title><link>https://lockwood.fun/post/python/penpal-cipher-project-guis/</link><pubDate>Wed, 11 Sep 2019 23:41:35 -0600</pubDate><guid>https://lockwood.fun/post/python/penpal-cipher-project-guis/</guid><description>&lt;h1 id="project-guis-with-gtk3"&gt;Project GUIs with GTK3+&lt;/h1&gt;
&lt;p&gt;We are working on the final project to complete our &lt;a href="https://www.udemy.com/share/100058A0cdcVZbR34=/"&gt;Complete Python Bootcamp: Go from zero to hero in Python 3 at Udemy&lt;/a&gt;. We have decided that we will build a simple Caesar Cipher application that we are calling &lt;a href="https://github.com/sumnercreations/penpal"&gt;Penpal&lt;/a&gt;. During our conversation we decided that we would really like to try to make a GUI. We&amp;rsquo;ve taken inspiration from this online &lt;a href="https://cryptii.com/pipes/caesar-cipher"&gt;cipher tool&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id="research"&gt;Research&lt;/h2&gt;
&lt;p&gt;We started with Google, you know, like you do, and found a lot of options for GUIs with python. 2 of them stood out.&lt;/p&gt;</description></item></channel></rss>