![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Sep 2005
Posts: 3
Rep Power: 0
![]() |
Tired of strings/numbers etc..
I want GUI tutorials not how to multiply or divide etc..wtf? I get it. I know why most of you are into strings and numbers. I just donr have any use for them.
I want to make a GUI with a couple buttons in the middle like one to show a certain Directory on a hard drive and maybe the other window to edit the file.. Maybe edit a file within the GUI and save it with a save button in the GUI. Maybe Enable SSH into a window at the bottom of the GUI. Does this really involve strings and math? Maybe I just dont have it as a programmer? I Tried Perl and that was to fucking complicated. I got Python the the absolute beginner and that was cool until the 2nd chapter and here I am again fucking with strings and math but in the back of the book are all the cool GUI games and widgits and shit but they want you to read the beginning of the book first to get it..? Sorry to rant. |
|
|
|
|
|
#2 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
You're going to show directories and edit files without strings? What will your GUI do? If you want to recenter an object in the middle of a resized window, for instance, how will you do it without numbers? If you don't know how to program yet, and you want to do GUI stuff, skip ahead. No rules against it when you're studying on your own. You just may find that there's a wall, there, and all you have is a pretty widget.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#3 |
|
Programming Guru
![]() |
Strangler i think, and i mean this in the upmost sincerity, that you're most successful language might be Visual Basic.net with MonoDevelop (linux -- FREE), Microsoft Visual Studio.net (windows -- $600?), or another free .NET development tool on the web. I'm sure there are some free .NET development tools for windows somewhere, i'm sure somebody here can point you in the right direction.
__________________
|
|
|
|
|
|
#4 |
|
Professional Programmer
|
You may also want to (re)take some math classes. Unwillingness is no excuse, but if you're simply not good at basic to moderate maths, then a refresher course should work for you. What things are you getting stuck on? There's no complicated math involved in making GUIs that I can think of.
__________________
% rc4 hexkey < input > output
#define S ,t=s[i],s[i]=s[j],s[j]=t /* rc4 hexkey <file */
unsigned char k[256],s[256],i,j,t;main(c,v,e)char**v;{++v;while(++i)s[
i]=i;for(c=0;*(*v)++;k[c++]=e)sscanf((*v)++-1,"%2x",&e);while(j+=s[i]
+k[i%c]S,++i);for(j=0;c=~getchar();putchar(~c^s[t+=s[i]]))j+=s[++i]S;} |
|
|
|
|
|
#5 |
|
Newbie
Join Date: Sep 2005
Posts: 3
Rep Power: 0
![]() |
Let's just say I want a 640x480 window with 3 windows in the top with 3 buttons underneath.
# 1 button says show directory and it defaults to usr/home in the window. # 2 button says Edit and in the window you can Edit any of the files with VI or JOE Editor built in. # 3 The next is Save and it saves your changes. And maybe have a large main window at the bottom that will hold a SSH connection or fixed terminal window. I mean what do you guys do with it? I thought it would be cool to make my own interface GUI to this server program I got but Dreams and Reality are something completly different. Like how would one go about making a box to hold 3 windows, some buttons and a fixed Terminal at the bottom? |
|
|
|
|
|
#6 |
|
Expert Programmer
|
Well i'll assume you know the basics of python, classes, functions, variables, loops, conditional statements etc.
Go to wxpython.org and download wxpython and install it (by the looks of things, your using windows), then check out the documentation, its written for C++, but you shouldn't have any trouble converting it to python. Then you can go about programming your GUI.
__________________
Join us at #programmingforums @ irc.freenode.net! My software never has bugs. It just develops random features.
|
|
|
|
|
|
#7 | |
|
Professional Programmer
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4
![]() |
I can see you're angry, but i'm afraid to say you have no cause to be. If you don't have a firm grip of basic string manipulation and very basic maths then you won't be able to work on things further down the road. You say Button 3 "saves" your changes - what are you going to save? You're almost definitely going to be writing a string to a file, so you'll need to understand about strings and file i/o.
With that said, these tutorials use "fucking numbers and strings" as a vehicle to explore the language with. It's much easier to teach functions, object-orientation, etc, with samples like that. Quote:
|
|
|
|
|
|
|
#8 | |
|
Hobbyist Programmer
Join Date: Aug 2005
Location: Hiding from... them...
Posts: 110
Rep Power: 4
![]() |
Quote:
|
|
|
|
|
|
|
#9 |
|
Expert Programmer
|
Opps i didnt read his second post properly, thanks for pointing that out Silvanus.
Thanks Cerulean, that documentation is clearer, i was using the documentation that was on the wxpython homepage.
__________________
Join us at #programmingforums @ irc.freenode.net! My software never has bugs. It just develops random features.
|
|
|
|
|
|
#10 |
|
Programming Guru
![]() Join Date: Oct 2004
Location: namespace std
Posts: 1,246
Rep Power: 5
![]() |
well of course you do. everyone does. but if you want to know how to DO IT, then you need to learn what the fuck you're doing. like someone else suggested if all you want to do is dick around with some crappy 3-button gui you've made and have no understanding of it, then yeah some sort of VB (or anything with a forms designer, but i would suggest vb cuz if you saw the source from a c++ forms designer i think it would make your head explode) would probably do the trick and you can play with it as a fun toy and have no idea what the hell you're doing. if you want to actually program something, you need to start at the bottom. if you're clever, it shouldn't even be a couple of months before you start getting into gui mode, if that's what you really care about. however, the fact that "chapter 2" of any PYTHON tutorial stumped you probably doesn'y bode well for you. programming teaches you critical thinking and problem solving.
one "critical" look at your question and i'm tempted to write a "laugh" function that goes into an infinite loop. p.s. to everyone else..."maths" isn't a fucking word.
__________________
i put on my robe and wizard hat... Have you ever heard of Plato, Aristotle, Socrates?...Morons. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|