43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Acolyte

Hello, I have a simple script with 2 buttons positioned vertically within a sizer on a panel. A button-click event attached to the top button changes the height of the top button. However, even though the height of the top button changes, the height of the bottom button does not …

Software Development python
Member Avatar for Acolyte
0
89
Member Avatar for vinod_javas

Hey buddies.., I m developing some project using java swing... in that I got a problem like......if i use timer thread in label means i couldnt perform any other action in that panel like button click event and all.... it becomes too slow in action....

Software Development java java-swing
Member Avatar for vinod_javas
0
150
Member Avatar for Bomber686

Hi all, I have this code [CODE]Option Explicit Private Declare Function RegOpenKey Lib "advapi32.dll" Alias "RegOpenKeyA" (ByVal hkey As Long, ByVal lpSubKey As String, phkResult As Long) As Long Private Declare Function RegCloseKey Lib "advapi32.dll" (ByVal hkey As Long) As Long Private Declare Function RegSetValueEx Lib "advapi32.dll" Alias "RegSetValueExA" (ByVal …

Software Development visual-basic
Member Avatar for Bomber686
0
885
Member Avatar for amt_muk

Hello friends, I'm trying to write a program to check the status of a process (specified by its process-id), ie, the process is presently running or not. Can you pls give me some idea to solve it? Thanks in advance. Amit

Software Development c
Member Avatar for amt_muk
0
124
Member Avatar for aot

Hi, I'm a noob Python/Tkinter user, and I'm finding that gathering information on the two is not as easy as I'd like... hopefully you guys will be able to help. My first question: I was just wondering if there's a way to tell Python, "take all the files in X …

Software Development python tkinter
Member Avatar for mawe
0
100
Member Avatar for WolfPack

Does any of you know how to get the pathname of the perl script that is being executed? Say it is located in [inlinecode]/home/wolfpack/perl/[/inlinecode] I run it from [inlinecode]/home/wolfpack[/inlinecode] by giving the absolute path name like, [inlinecode]/home/wolfpack/perl/scriptname [arguments][/inlinecode] I want to get the path [inlinecode]/home/wolfpack/perl[/inlinecode] so that I can use …

Software Development perl
Member Avatar for WolfPack
0
174
Member Avatar for scru

Hi. SInce you guys were so helpful the last time around, I decided to ask a less pressing, but more casual questions. My friends and I want to build a private p2p client (connects to our computers through this client to share files and do messaging), just for the heck …

Software Development client-server multimedia python
Member Avatar for scru
0
113
Member Avatar for kimbokasteniv

A friend of mine and I are taking an external computer science test. While studying the review it has become apparent that some of the syntax presented is quite unfamiliar. Here are a few examples: [INLINECODE]Stack<Integer> s = new Stack<Integer>();[/INLINECODE] For this line of code what exactly is the purpose …

Software Development java
Member Avatar for jwenting
0
132
Member Avatar for bhavna_816

I want to validate a text area using required field validator but when i select control to validate from properties then the textarea id of this text area is not getting displayed. What's wrong with it ? Can anybody know this?

Software Development vb.net
Member Avatar for kapil.goyal
0
103
Member Avatar for Rickenbacker360

Hello, I have an exam on wednesday and was given a practice exam but I'm having a little a bit of trouble. 8.What will be displayed on the screen after the following statements are executed in a C++ program? [code] [COLOR=#000000] int a=5, b=2, c=1, d=3;[/COLOR] [COLOR=#000000] int t;[/COLOR] [COLOR=#000000] …

Software Development c c# c++
Member Avatar for Rickenbacker360
0
120
Member Avatar for n.aggel

hello to everyone, i have the followign problem: i need to get the system date-time and then i need a way to add minutes(!!) to this variable.... in particular i want to make a program{part of a another program} that will print on a file dates&times. The problem is that …

Software Development c++
Member Avatar for n.aggel
0
155
Member Avatar for blackjack

I'm not that used to C++ and hoping that someone can help me out with the [b]const[/b] keyword. If I make a parameter to a function 'const' ,and then try to reference it, like: [code=c++] int some_func(const char* param){ char* ptr = param; ... } [/code] to do something with …

Software Development c c# c++
Member Avatar for John A
0
115
Member Avatar for danizzil14

Ok, all I want ot know is how to close a script on command, lie type 3 to exit, what modules do i need to import and what is the command, I have everything else sorted out... EDIT: The close command will go in a if statement, which is in …

Software Development python
Member Avatar for ghostdog74
0
166
Member Avatar for Matt Tacular

I would like to make my program grab an integer from the user (binary) and convert it to a normal number, I plan to do this manually but I need to know how to do something first: If the user enters, for example, 10110101 I need to be able to …

Software Development c++
Member Avatar for Matt Tacular
0
82
Member Avatar for mattyd

I am at the end of a build and am putting some minor touches on and testing; one area I suppose I took for granted (and have honestly not seen a need yet to fully deal with) is the Tkinter buttons. The buttons perform fine overall as to their function; …

Software Development python tkinter
Member Avatar for mattyd
0
18K
Member Avatar for xtrasponge

this the my first assignment given by my lecturer. i've tried to do it and manage to compile..but the problem is i got confused on how this program execute? is it line by line like c++? can someone show me the sequence on how my program being executed and maybe …

Software Development java java-swing
Member Avatar for jwenting
0
118
Member Avatar for ajaytee

hey guys, need some help with this project i have made. Static temp(7) As Integer Dim total As Integer Dim I As Integer Dim average As Single 'Initialize Randomize() 'Temperature Generator For I = 1 To 7 temp(I) = Int(Rnd(1) * 38 + 1) Next I For I = 1 …

Software Development vb.net
Member Avatar for Ancient Dragon
0
94
Member Avatar for bad_robot

Hi i'm new to VB6 and i just wanted to ask how to save the columns in a ListView to an Access DB... The format i use to save individual textbox to an Access DB is.... [code=visual basic 6] With adorecordset .Fields!Name = Text1.Text .Fields!Address = Text2.Text .Fields!Phone = Text3.Text …

Software Development listview visual-basic
Member Avatar for bad_robot
0
105
Member Avatar for WhYuLoOkIn

Can any one please explain the for statement in this code, I understand the initialization of i=2 and the increment of i=i+1, but I dont understand the conditional test of i<(num/2)+1. The program displays all the factors of a number entered by the user. I don't understand why you need …

Software Development c
Member Avatar for WhYuLoOkIn
0
94
Member Avatar for sneekula

Is there a way to preselect/highlight a listbox item with the Tkinter GUI toolkit at the startup of the program without clicking the mouse on it?

Software Development gui python tkinter
Member Avatar for sneekula
0
1K
Member Avatar for scru

Hi. I've just registered, but I'm not exactly new to here (i've been lurking as a guest). I'm trying to make a countdown timer based on a class that I created, which accepts hours, minutes, and seconds as parameters and counts them down to zero, will displaying them in a …

Software Development python tkinter
Member Avatar for scru
0
828
Member Avatar for rwagnes

Hey, I am trying to open a file with a relative pathname: e.g. file=fopen("/files/index.html"); where the files directory is in the same location as the executable. For some reason the executable cannot locate the file. Why? Thanks, Elise [Edit] OK it works without the initial slash in the path name …

Software Development c
Member Avatar for Ravalon
0
92
Member Avatar for mattyd

I am searching for the syntax that will allow me to arrange widget buttons in a Tkinter GUI in a specific manner; currently I have three (3) buttons that are stacked[I] vertically[/I] on top of one another. I wish to arrange the buttons so that they form a row of …

Software Development gui python tkinter
Member Avatar for mattyd
0
3K
Member Avatar for rwagnes

Quick Question: Is there a way in c to read an entire file into a string or char buffer? Thanks, Elise

Software Development c c# c++ file-stream
Member Avatar for rwagnes
0
340
Member Avatar for mattyd

[U][B]I have two questions regarding Tkinter GUIs[/B][/U]:[LIST=1] [*]I have three buttons in a GUI; at times it seems that the buttons "stick". By this I mean when the mouse is clicked on one it may activate or it [I]may not[/I]. They all work correctly in regards to there function(s) but …

Software Development gui python tkinter
Member Avatar for mattyd
0
189
Member Avatar for Rickenbacker360

Hey again I need a little help with this assignment. What I'm supposed to do is have a user enter a positive integer and then the program should tell the user all the prime numbers before the number the user entered. However, with my program when I enter 22 for …

Software Development c c# c++
Member Avatar for vegaseat
0
230
Member Avatar for exotic_ang

[COLOR=black][COLOR=black][B]hey im lost, so was wondering if anyone would help me. Im doing a program for a DVD rental system. When it comes to searching the rentals by ID, I cant seem to make it show all the DVD's that the customer has rented not only one. I dont know …

Software Development pascal
Member Avatar for exotic_ang
0
130
Member Avatar for rwagnes

hi, I am using the header file cnaiapi.h. The c files which include it do not compile because await_contact_mutex, cname_mutex, and appname_mutex are undefined. These are defined in the header file as extern HANDLEs. Any ideas? Thanks[COLOR=#808080] [/COLOR]

Software Development c
Member Avatar for rwagnes
0
312
Member Avatar for rwagnes

Hi, I have visual studio 2005 C++ Express Edition Installed. The instructions I have to create a library file are as follows: 1. Create a project 2. Add Header Files to the project 3. Change the Configuration Type on the Properties Menu to Static Library (lib) 4. Still in the …

Software Development c++ visual-studio
Member Avatar for rwagnes
0
176
Member Avatar for keithh

So here's the question that I've been thinking over for a few hours: MIPS to C. Assume $s3 = i, $s4 = j, $s5 = @A. Below is the MIPS code: Loop: addi $s4,$s4,1 # j = j + 1? add $t1,$s3,$s3 # $t1 = 2 * i add $t1,$t1,$t1 …

Software Development assembly
Member Avatar for keithh
0
198
Member Avatar for hanifa

Hi this is my first paste... [URL="http://paste.plone.org/12700"]http://paste.plone.org/12700 [/URL][Contains my input.xml and transform.xslt and output file it generated. [URL]http://paste.plone.org/12706[/URL] .. this contains my new input.xml file.. And in here, all the Activitiy's tag attributes are being rewritten as children. And here is the xslt which i tried to write and failed... …

Software Development xml
Member Avatar for hanifa
0
89
Member Avatar for itdisc

Hi all, I Just have to retrieve the data from the oracle database n just write the retrieved data to text file.Please Can anybody send me the code? Its very urgent. [IMG]http://forums.devx.com/images/smilies/frown.gif[/IMG] Thanks in advance.

Software Development java oracle
Member Avatar for ajay_tabbu
0
110
Member Avatar for AussieCannon

Hello, I am very new to python (a few days) and am wondering how i should go about generating random gridpoints and comparing them to ones inputted by the user. I am completely lost on how i can get the input of the x and y coordinates from the user …

Software Development python
Member Avatar for vegaseat
0
444
Member Avatar for defience

I'm still new to python and need some help writing a program. I need to write one that runs a *.exe and then checks some timings in it. There are 3 numbers ranging from 0<1000 that are hidden in the *.exe(app.exe). If the script runs the app.exe and then runs …

Software Development first-post python
Member Avatar for vegaseat
0
158
Member Avatar for defience

I'm new to Python and this was written and posted by someone else on another site as a tutorial for a word unscrambler. I thought it was well written and liked the explanations but I tried to use it but keep getting an error message: line 27, in <module> letters …

Software Development python
Member Avatar for defience
0
127
Member Avatar for Shark7

I need to calcualte the scalar product given two lists of numbers... [code]v1=input("Insert the first vector: ") v2=input("Insert the second vector: ") for i in range(len(v1)): v3=v1[i]*v2[i] print v3 [/code] this code will multiplie all the numbers in list v1 and the numbers in list v2 but the result doesn't …

Software Development python
Member Avatar for Shark7
0
355
Member Avatar for kimbokasteniv

I was going through the questions in my study guide for computer science, and I noticed a few blocks of code that contained syntax that I had never used before. My first question is on the ^ operator. What exactly does this do? My second questions is on the use …

Software Development java
Member Avatar for kimbokasteniv
0
137
Member Avatar for Laughs Galore

NVM. I finally got it after hours of reading lol.

Software Development c
0
51
Member Avatar for MattEvans

Relevant header definitions are as: [code] class XMLChain { private: Segment root; std::vector<XMLOpen*> chain; Segment * immediate; std::vector<XMLOpen> openers; [/code] The function in question is: [code] void XMLChain::open(std::string tag) { Segment * last_immediate = immediate; openers.push_back( XMLOpen ( tag ) ); XMLOpen * cast_immediate = &(openers.back()); (*last_immediate).setNext( cast_immediate ); immediate …

Software Development c linked-list
Member Avatar for MattEvans
0
105
Member Avatar for amishosh

Hi! Even when I use windows versions of C++ compilers (Visual studio or Borland) when I compile my program it opens up in a DOS window. Is VB the only way the program will open up in a windows like window? Thanks, Ami

Software Development c++ visual-studio
Member Avatar for fesago90
0
124
Member Avatar for Cudmore

My question today is regarding multidimensional arrays, and synchronization.. I'm working on a client/server project and I'm not sure about the theory of an idea I came up with: I have an array: [INLINECODE]Object[][] myArray = new Object[256][];[/INLINECODE] It is an array of arrays. The length of myArray is 256 …

Software Development client-server java
Member Avatar for Cudmore
0
767
Member Avatar for chris99

What am I doing wrong, I've done it before! [CODE]class Main: def __init__(self, master): self.master = master self.master.title('Role Playing Form V1.0') self.master.geometry('300x250+350+450') self.master.mainloop() self.cmdCreate = Button(self.master, text='Create Character', command=self.create) self.cmdCreate.grid(row=0) def create(self): pass root = Tk() main=Main(root)[/CODE] the button doesn't appear!

Software Development python
Member Avatar for bumsfeld
0
140
Member Avatar for ryy705

Hi, I just installed MySQL on my computer and went though a decent MySQL tutorial. Now I need you guys help me out so I can get my java programs to connect to MySQL. I am using the following code from a book to connect. [code] import java.sql.*; public class …

Software Development java mysql
Member Avatar for ryy705
0
469
Member Avatar for ajaytee

Hello all, im a beginner to VB.Net and kinda annoyed at the "not able to print to the screen and clear the screen facilities". Anyways i need to make a program to display the numbers 1-10 (a counter) on the form, my code so far is Private Sub cmdStart_Click(ByVal sender …

Software Development first-post vb.net
Member Avatar for jbennet
0
83
Member Avatar for cusado

im writing a calculator program in c and having some trouble.. basically it needs to have + - / * ^ functions as well as an integer only mode the code so far [code=c] #include <stdio.h> #include <ctype.h> #include <math.h> int main(int argc, char *argv[]) { float acc, num; char …

Software Development c
Member Avatar for Ravalon
0
189
Member Avatar for fonzali

hi everybody , I am new to python and interested in graphics . I like somebody to walk me thru monthly calendar using tkinter . I have already printed 07 calendar using python but I am stuck when it comes to use it with tkinter . it is no homework …

Software Development python tkinter
Member Avatar for vegaseat
0
4K
Member Avatar for raydogg57

Hi all. Eventually my program needs to prompt you to enter a year between 1800-2007 and then it will print off the calendar for that year. In order to do this I must create functions that determine what day of the week Jan 1 was that year, and a function …

Software Development c++
Member Avatar for John A
0
252
Member Avatar for pointers

Hi, I am a basic learner in C language.Could u please provide me a good link or tutorial or explanation regarding "order of precedence". I have the table of "order of precedence"........but needed some examples. I am always confusing with them. like, *ptr++=something; *++ptr=something i=i++................etc. Thanks & Regards.

Software Development c
Member Avatar for WaltP
0
200
Member Avatar for cassyjack

OK I had C/C++ programming classes a few years ago and now I'm taking a ASP.net class and programming in C#. I need a little help with an assingment. We have to create an if state to display text depending on if the day of the week is a weekday …

Software Development asp asp.net display web-server
Member Avatar for Maidomax
0
221
Member Avatar for fesago90

:o EDIT: Forget my question :eek:, thanks for looking :mad:

Software Development c
0
95

The End.