1,730 Posted Topics

Member Avatar for dunwitch

Not tested but I have problem with your OnData Methods Please try this and see what it gives. [CODE=python] def onData(self, event): DataWindow(self) db = Database() sql = "SELECT rowid, address, subnet, gateway FROM pod1" records = db.select(sql) count = 0 for v in records: index = DataList.InsertStringItem(sys.maxint, str(count + …

Member Avatar for Stefano Mtangoo
0
832
Member Avatar for rockstar8577

[QUOTE=rockstar8577;1169608]wxWidgets doesn't look to bad, im looking at gtk+ right now.[/QUOTE] I use wxWidgets and it is rich not only in handling GUI issues, but also in other stuffs like Direcories/Files streams sockets et al. There are extensions if you need functionality that isn't in core and can write yours …

Member Avatar for rockstar8577
0
193
Member Avatar for somaja

Smells like linker error! Are you messing with libraries? Does your program need one? Also seems English is not native for you. ;)

Member Avatar for somaja
0
212
Member Avatar for juuuh333

Taste of [URL="http://wxforum.shadonet.com/viewforum.php?f=1"]wxWidgets[/URL] [CODE=C++]wxTextCtrl* texfromuser = new wxTextCtrl(this, wxID_ANY); wxString testText = textfromuser->GetValue(); wxMessageBox(testText, wxT("User Text"));[/CODE]

Member Avatar for juuuh333
0
611
Member Avatar for Jeff_5_7

not sure if that is what you want. If all you want is growing array, you might need to check vector(STL) [CODE=C++]#include <vector> int main(){ vector <int> myVector; for(int i=0; i<100; i++){ myVector.push_back(i); //then you can add anything later myvector.push_back(100); } }[/CODE]

Member Avatar for Luckychap
0
97
Member Avatar for DrueY
Member Avatar for Stefano Mtangoo

What books or tutorial (online/downloadable) shall i learn to be able to make secure page? I need to know different technique and algorithms

Member Avatar for phyrtech
0
121
Member Avatar for Tech B

Good experience :) Would you consider GUI-lizing it so that lazy people will use it! add logging, try to repair and so forth.

Member Avatar for Tech B
0
623
Member Avatar for fugnut

[QUOTE=fugnut;1168394]Thanks that took care of that, but any clues why it reads square 4 or five times?[/QUOTE] It depends on what you feed. Remember that computer isn't intelligent at all. Yes, it is fast but never intelligent. garbage in-garbage out. So post the content of the file PJ657_output.txt and we'll …

Member Avatar for fugnut
0
99
Member Avatar for tonyrockcakes

will you do yourself a favor and check [URL="http://beej.us/guide/bgnet/output/html/singlepage/bgnet.html"]this[/URL] I'm not maverick at sockets but what I know is you have to 1.Create a socket 2.Bind it to an address 3.connect to server 4.create buffer and fill data 5.send data 6. close sockets

Member Avatar for tonyrockcakes
0
231
Member Avatar for Mensa180

Play a little bit with [URL="http://docs.python.org/library/datetime.html"]Datetime [/URL]module. There lies an answer. Long time haven't played with Python. So sorry I'm lagging somehow behind Pythonners

Member Avatar for Mensa180
0
169
Member Avatar for ice616

if you make two for loops nested like above, for each value of x, it will iterate to all values of y and go to next iteration which will do the same until all values of x are finished

Member Avatar for Stefano Mtangoo
0
137
Member Avatar for Stefano Mtangoo

Hi, I know this is compiler thing but I just wanted to know if anyone here have ever been succesful in compiling libvorbis/libogg with MINGW. It's weeks now I cant do it! I have tried with MSYS but nope i cant get far. I wonder why these developer consider only …

Member Avatar for Stefano Mtangoo
0
469
Member Avatar for Stefano Mtangoo

I want to write C++ Class that is exported by a DLL/SO. I need my app to be x-platform so I will avoid non portables. I read somewhere I have to wrap methods in extern "C" to prevent name mangling. Is there a tutorial to make me accomplish this? I …

0
57
Member Avatar for hurricane123
Member Avatar for Christoph928
Member Avatar for barabass

where is the problem? You can pass [URL="http://zetcode.com"]here [/URL]and brush yourself on wxthings and where you hit a wall, come back and post specific problem Check wxPython tutorial

Member Avatar for barabass
0
385
Member Avatar for Kruptein

are you using integers as the key? raw input returns strings which might be a problem. Convert it to integer and see. BTW I haven't used that module and so I don't know :)

Member Avatar for Kruptein
0
112
Member Avatar for jeffery12109
Member Avatar for pythonNerd159

No, you need [URL="http://www.pythonware.com/library/tkinter/introduction/"]this one[/URL]

Member Avatar for pythonNerd159
0
134
Member Avatar for rollon

Here is what i have found on my journey: 1. Choose language of your choice (Some are easy ad others are not for faint hearted) 2. Check the basics (Tutorials are best to start you up) 3.Practice the baiscs to get the taste 4. Go for advanced theories 5. practice …

Member Avatar for wasimmalik
0
128
Member Avatar for thedonflo

[QUOTE=thedonflo;1163676]I really need help with this project. 1) Write a program that uses a switch program structure 2) Upon user input your switch structure shall calculate and display one of the three loops for loop, while loop, and do-while loop calculations.[/QUOTE] smells like an assignment? If so show efforts before …

Member Avatar for Stefano Mtangoo
0
113
Member Avatar for punter999

the only nightmare of wxPython is complexity in printing framework. Many geeks haven't got past there. Thanks to [URL="http://www.reportlab.com/software/opensource/rl-toolkit/"]reportLab [/URL]for their PDF toolkit. you can maneuver it to print on fly

Member Avatar for Stefano Mtangoo
0
97
Member Avatar for antball06

Having tried VB as my first language and being Python friend I suggest you go [URL="http://python.org"]Python[/URL]. It have a lot of [URL="http://tinyurl.com/ylnyatm"]Free Books[/URL], wonderful [URL="http://zetcode.com/"]tutorials [/URL]and Many GUI toolkits. In a month or few weeks you will be good to go!

Member Avatar for LevyDee
0
185
Member Avatar for cp123

IDLE have been reported to be troublesome, especially in GUI apps Just check for modified version that can be downloaded at [url]www.vpython.org[/url]

Member Avatar for sofiH
0
3K
Member Avatar for tajendra

Another debate between hen and egg :) who was the first to be there? ;) If it is a matter of style, is it worth of debate? anyway it is like [CODE=C++] int main(){ //............. } [/CODE] and [CODE=C++] int main() { //............. } [/CODE] which is good?

Member Avatar for tajendra
0
470
Member Avatar for SoulMazer

I guess your audio toolkit of choice have state for checking status of playing stream. If true, then simple if will do the job on the timer event [CODE] if MY_AUDIO_STREAM_RUNNING== mytoolkit.FINISHED_PLAYING: print "Finished!" #here you print [/CODE] so it will skip it each time until it finds stream have …

Member Avatar for Stefano Mtangoo
0
113
Member Avatar for cwarn23

[QUOTE=cwarn23;1129374]I thought I would let you's php gurus know that I am starting to come close to cracking the Sha1 algorithm. And surprisingly it is an easy one to crack. So I would recommend switching to something like the whirlpool algorithm.[/QUOTE] Man you are commited to crack that algorithm! Do …

Member Avatar for cwarn23
0
654
Member Avatar for BlackMamba24

Hello, please use code tags to make your codes more readable. Also use suggestion above and print the output of POST SGA.

Member Avatar for BlackMamba24
0
96
Member Avatar for larrywjr

is IE your browser? Old IE version used to corrup/almost download file. Use Download manager like the decent FDM

Member Avatar for jcao219
0
244
Member Avatar for garyinspringhil

why do you mix single and double quotes here? what do you want to accomplish with this line (taking it as troublous line) [CODE=python]print_cmd = 'echo "IN;PU2100,11300;" | lpr -P %s %s'[/CODE]

Member Avatar for garyinspringhil
0
130
Member Avatar for Stefano Mtangoo

I'm reading casting functions(I wonder if this is proper name). I get difficult grasping dynamic_cast, static_cast, constant_cast and reinterpret_cast. Can anyone help me in "layman" terms differences and where we may use them? [URL="http://www.cppreference.com/wiki/start"]reference[/URL] and [URL="http://google.com"]google[/URL]

Member Avatar for Stefano Mtangoo
0
66
Member Avatar for shivam saxena

wxWidgets have several classes for dealing with Images. I haven't used, but freeimage brags to have image manipulation capabilities

Member Avatar for Stefano Mtangoo
0
86
Member Avatar for empror9

you should have read [URL="http://www.daniweb.com/forums/announcement8-2.html"]this[/URL] with that said, there is a hint for you [URL="http://docs.python.org/library/random.html"]here [/URL] and [URL="http://effbot.org/pyfaq/how-do-i-generate-random-numbers-in-python.htm"]here[/URL]

Member Avatar for Stefano Mtangoo
0
128
Member Avatar for Clueless86

wingware 101 [url]www.wingware.com[/url] netbeans python early access [url]www.netbeans.org[/url] DrPython [url]www.drpython.sourceforge.net[/url] more [url]http://www.google.co.tz/search?hl=sw&safe=active&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&hs=QzF&q=Python+IDE&btnG=Tafuta&meta=[/url]

Member Avatar for Stefano Mtangoo
0
323
Member Avatar for xav.vijay

[QUOTE=hondros;1157217] [code] class _(): _, __, ___ = {'admin':'123456'}, False, False def ____(_, __, ___): _.__ = False _.___ = False try: if _._[__] == ___: _.__ = True else: _.__ = False except: _.__, _.___ = False, True def __init__(_): while _.__ == False: __, ___ = raw_input('Username: '), …

Member Avatar for Stefano Mtangoo
0
1K
Member Avatar for mebob

[CODE=C++]typedef int IntegerByMe;[/CODE] it defines alias for integer. Is that what you ask or I have misunderstood you?

Member Avatar for Stefano Mtangoo
0
98
Member Avatar for pythonNerd159

[QUOTE=woooee;1153891]No one is going to help you without knowing GUI toolkit you are using [/QUOTE] Didi you saw this?

Member Avatar for bvdet
0
121
Member Avatar for Andy_Ballard

And don't forget, you can use Foreign library interface; The so called ctypes It comes with Python (>=2.5) and It is in Docs

Member Avatar for Andy_Ballard
0
3K
Member Avatar for aianne

It is C example but it is not hard to translate to C++ From [URL="http://www.java2s.com/Code/C/Language-Basics/Consolemenuswitchwithcharcase.htm"]here[/URL], Show your efforts as you have starting point

Member Avatar for Tigran
0
103
Member Avatar for Arkapravo

what procedures did you follow. The normal I know are ./configure make Become super user aka root make install I'm used to Mandriva, though I had some Ubuntu and may be will be back soon ;)

Member Avatar for Arkapravo
0
204
Member Avatar for shyami
Member Avatar for vijaysoft1
Member Avatar for ravenrider

[QUOTE=ravenrider;1155245] Why can’t we just run the same executable file (compiled in Linux) both on Windows 7 and Ubuntu? [/QUOTE] Have you ever heard of wine? That should do trick to run windows exe in linux :)

Member Avatar for ravenrider
0
56
Member Avatar for Feenix45

[CODE= python]Start with this! import wx class TextEditor(wx.Frame): def __init__(self, parent, id, title): wx.Frame.__init__(self, parent, id, title, size=(350, 600)) # self/Text editor is now a Window with all attribute of a frame # create status bar self.CreateStatusBar() # set default status bar string self.SetStatusText("For help press F1") # define sizers …

Member Avatar for Bart_uam
0
2K
Member Avatar for prem2

[QUOTE=ardav;1149992] Of all the php I've ever written, I've never found the need to use a GOTO. Anybody know why it was introduced in 5.3?[/QUOTE] Mhh! as I was reading the post the same question came to my mind. Why would it be needed not only in PHP but also …

Member Avatar for Zagga
0
975
Member Avatar for ehsun7b
Member Avatar for Stefano Mtangoo

Hi all, how can I disable internet in windows/Linux machine. I want to disable completely and enable it at will using C++ Thanks

Member Avatar for Stefano Mtangoo
0
94
Member Avatar for alexRivera

[URL="http://www.mindview.net/Books/TICPP/ThinkingInCPP2e.html"]Thinking in C++[/URL]

Member Avatar for alexRivera
0
99
Member Avatar for Stefano Mtangoo

Hi, I need to make application that will act as server and have clients. computers with client will get permission to go to internet or not via server. Only permission to go but they will connect directly on net (not a firewall). Its some sort of internet cafe management depending …

Member Avatar for Stefano Mtangoo
0
105

The End.