GUIs – wxPython and wxGlade

I think I’m going to have to stop putting this off: it’s time to start learning about GUIs. I’ve decided to begin with wxGlade, which means that I am going to have to learn about wxPython first. I’m starting with this little tutorial for making a simple text editor.  Then there’s a wxGlade tutorial that I’d like to go through. I think if I got through these two things, I’d at least have something to build on, because at this point I don’t really know how to do anything. Well, except for maybe two TKinter commands. And no one seems to think TKinter is even worth learning…

Next on my list: Databases

Wow, talk about getting sidetracked… I decided today that I want to learn about databases. I want to create a GUI (see previous two posts) and use it to write to and read from a database. I want to be able to search for keywords and numbers from various fields, etc. Somehow, it didn’t seem like it should be that hard. It’s sort of like a spreadsheet, right? I wanted to be able to make a work and survey log, with specific fields that I could fill in each day. Right now, I have something that sort of works, but it’s just an excel spreadsheet where I can filter the contents of the columns. But it’s getting really big and awkward, and not that pretty. I thought I could do better if I could just make a GUI specifically for that task. I did some Google searching, and, quite frankly, it scared me. Everything I found seemed to be aimed at people who already have a bit of a clue (um, definitely not me). So I contacted Kurt, who does all kinds of amazing stuff with databases. He suggested that I start with SQLite, and the Python SQLite module. These two links are various degrees of overwhelming, so I’m looking forward to some more guidance from Kurt! 🙂

Which Python GUI builder/designer?

Well, now I’m not sure which I should use… after my last post, Ian Witham pointed out to me that I do not *have* to use TKinter just because it’s the default. I can use other GUI designer software, for example, those built on wxPython. He suggested a couple, and said that he uses wxGlade himself. So now I don’t know which I should try first… is wxPython the way to go? Boa Constructor? PythonCard, Spe? Is there one that’s easier to learn than another (Ian says wxGlade is relatively easy to learn)…

Sometimes I get annoyed when I don’t know the basics like this, but I guess that’s just part of the process. Ah, my never-ending project to learn EVERYTHING (which at best will result in me knowing SOME things).

Tkinter and GUI building

I’m back to ray tracing again. And since I’m trying to re-create and expand on the Matlab version of this code, I am finding myself having to learn lots of little details – and big details. One of these things is GUI building. The standard GUI builder that comes with Python is TKinter. I’ve used this a bit before, but now I’m having to think about doing more complicated things with it. The Matlab version of my code used an interactive GUI. In Matlab, there’s a utility called GUIDE that gives you a GUI to build a GUI 🙂 You can put buttons, sliders, graphs, etc, into your GUI window, and then it will automatically generate a skeleton script that you can fill with commands telling Matlab what to do with it. So now I’m wondering if there’s something I can use with TKinter that does a similar thing. I’m sure there is, and I just need to find it…