So I’ve started using different modules for my squares project here and what I’ve ran into is namespace problems again. In my name == main I’ve got just the init() function, but that creates all the game objects under that function’s namespace, rather than global, like it used to be when I had everything in my name == main instead of in a nice function.
Perhaps instead of a all-encompassing int() function I create functions that return objects and use those. I’m not sure.
Like I said on my twitter and reddit post, I’ve got a tricky question. How do you get a widget in a frame to fill another frame, without black magic?
This tool is going to be for my story book application.
What it’s going to do is ask for a project file or make a new one, and all that file is is a preset set of tags.
Then once you open the very simple editor, you’re going to be able to write text in premade tags, dictated by the project file, which will be saved in a format which could be parsed by a program.
I’m not sure but I’m pretty sure this is exactly what xml is but I really have no idea, so I’m just forging through!
If you know of a kind of program I’m looking for though, lemme know.
Also, I’ve started using my Twitter (@tankorsmash) more so hopefully that will help me with things. I’m pretty new to it, so I’ll probably just use hashtags for everything. I’m using Plume for android. It’s pretty neat.
Started working on a school project, which is going to be a choose your own ending story, but the catch is I’m making it in python+tkinter instead of on paper.
This is special for a few reasons, one, it’s something I HAVE to finish, but also, one that I am especially trying to make look good, and planned out. In fact, this is the first time I drew up some design docs just for the layout, and so far it’s matching really well.
What I’ve learned so far has been fairly basic, but I’m still sorta new to tkinter. I’ve learned how to use radiobuttons, different frames and hiding them, and tkVars so far. On top of that, this is the first time I’m doing anything with my own code, rather than following a tutorial and branching off into my own, so that’s really nice.
It’s gonna be something like a title screen with an image and label, onto a ‘page’ with the text and choices below, with a history bar to the right, allowing quick page changes, to any section of the story. That history bar is actually what I’m going to start on now, since I’ve got no idea what the proper name for that even is…
Turns out it was a list box. I need a listbox.
Here’s where I’m at now, check it out top left to right:
So it looks like I’mna have to make a GUI class instead of trying to work without one, my understanding of locals vs globals is certainly not nearly complete enough, and it just seems easier.
Unfortunately I’m going to use threading instead of multi threading or whatever module is builtin on top of it, just because it it simple enough for now, and I really just need to get a good grip on what it means to have threads.