Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Sep 23rd, 2005, 8:39 PM   #1
strangler
Newbie
 
Join Date: Sep 2005
Posts: 3
Rep Power: 0 strangler is on a distinguished road
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.
strangler is offline   Reply With Quote
Old Sep 23rd, 2005, 8:44 PM   #2
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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
DaWei is offline   Reply With Quote
Old Sep 23rd, 2005, 9:03 PM   #3
tempest
Programming Guru
 
tempest's Avatar
 
Join Date: Oct 2004
Posts: 1,041
Rep Power: 5 tempest is on a distinguished road
Send a message via ICQ to tempest Send a message via AIM to tempest Send a message via Yahoo to tempest
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.
__________________

tempest is offline   Reply With Quote
Old Sep 23rd, 2005, 9:09 PM   #4
iignotus
Professional Programmer
 
iignotus's Avatar
 
Join Date: Apr 2005
Location: Nowhere Special
Posts: 466
Rep Power: 4 iignotus is on a distinguished road
Send a message via AIM to iignotus
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;}
iignotus is offline   Reply With Quote
Old Sep 23rd, 2005, 9:46 PM   #5
strangler
Newbie
 
Join Date: Sep 2005
Posts: 3
Rep Power: 0 strangler is on a distinguished road
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?
strangler is offline   Reply With Quote
Old Sep 24th, 2005, 2:09 AM   #6
coldDeath
Expert Programmer
 
coldDeath's Avatar
 
Join Date: Aug 2005
Location: UK
Posts: 862
Rep Power: 4 coldDeath is on a distinguished road
Send a message via AIM to coldDeath Send a message via Yahoo to coldDeath
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.
coldDeath is offline   Reply With Quote
Old Sep 24th, 2005, 7:26 AM   #7
Cerulean
Professional Programmer
 
Cerulean's Avatar
 
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4 Cerulean is on a distinguished road
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:
Originally Posted by coldDeath
hen check out the documentation, its written for C++, but you shouldn't have any trouble converting it to python....
The new-style docs (not reaally new, been around for months) are written specifically for Python.
Cerulean is offline   Reply With Quote
Old Sep 24th, 2005, 7:37 AM   #8
Silvanus
Hobbyist Programmer
 
Silvanus's Avatar
 
Join Date: Aug 2005
Location: Hiding from... them...
Posts: 110
Rep Power: 4 Silvanus is on a distinguished road
Quote:
Originally Posted by coldDeath
by the looks of things, your using windows
usr/home, VI and JOE Editor? I'd guess Linux.
Silvanus is offline   Reply With Quote
Old Sep 24th, 2005, 8:32 AM   #9
coldDeath
Expert Programmer
 
coldDeath's Avatar
 
Join Date: Aug 2005
Location: UK
Posts: 862
Rep Power: 4 coldDeath is on a distinguished road
Send a message via AIM to coldDeath Send a message via Yahoo to coldDeath
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.
coldDeath is offline   Reply With Quote
Old Sep 24th, 2005, 1:48 PM   #10
bl00dninja
Programming Guru
 
bl00dninja's Avatar
 
Join Date: Oct 2004
Location: namespace std
Posts: 1,246
Rep Power: 5 bl00dninja is on a distinguished road
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.
bl00dninja is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 4:30 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC