199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ChristianOncken

[CODE]# a very simple Tkinter editor to show file read/write dialog from tkinter import * from tkinter.filedialog import * class App(object): def __init__(self, master): frame = Frame(master) frame.pack() self.text = Text() self.text.pack() menu = Menu(master) root.config(menu=menu) # file menu filemenu = Menu(menu, tearoff=0) menu.add_cascade(label="File", menu=filemenu) filemenu.add_command(label="New") filemenu.add_command(label="Open", command=self.file_open) filemenu.add_command(label="Save", command=self.file_save) …

Member Avatar for Gribouillis
0
258
Member Avatar for VengefulToast

Sorry for the newbie question, but I was just wondering if it is possible to program in C++ or some language other than Objective-C on iOS devices? If so, what tools could I use? Visual Studio? Thanks!! :)

Member Avatar for VengefulToast
0
114
Member Avatar for aanders5

Okay, so I did this not too long ago but I forgot the exact the procedure. Now, I think I was doing it all right after I set it up for Web Start, but when I went to Clean and Build to generate the files needed for online, I got …

Member Avatar for aanders5
0
203
Member Avatar for Mopikope

I am trying to delete the array element that matches with the user input. So I am trying to shift all the cells after the deleted one to the left 1 spot. I know it's still in the loop of the if statement(line 11 and 31) but I can't figure …

Member Avatar for Mopikope
0
128
Member Avatar for n1_razz11

hey i am currently working with java to do assignment. i dont know how to call form from menubar to open new form,,, so anyone can help......

Member Avatar for JamesCherrill
0
270
Member Avatar for tunlinaung

Hi.... I am a beginner of Android programming.I am now writing the Android applications with Eclipse IDE.But I have a problem that is where the error list is shown in Eclipse when the errors or exceptions occur in my programs. For Example, when we write J2ME programs, we can see …

0
77
Member Avatar for prit005

Dear All, the below is my code it not works properly. I want to display the picture boxes dynamically ie run time it works fine but in my application have 1 Button ([B]btnGenPictBox[/B]) click on it adds the no. of picture box and also at the same time it display …

Member Avatar for nick.crane
0
738
Member Avatar for cummings15

I need some help my code repeats the add new employee and is not asking for index. What I was supposed to do. Write a function name hireOne whose parameters are the array of structs, and the size of the list; the function should prompt the user to input a …

0
51
Member Avatar for SethHall

Hey guys, I've been trying to do this since yesterday with no luck. I've tried stackoverflow, DIC and this is my last chance. I'm using drop down boxes to have a user select a ship date. I don't want them to be able to choose a date in the past …

Member Avatar for SethHall
0
1K
Member Avatar for TheComputerGuy

Just want to be clear, this is practice, not homework. I'm attempting to understand this a bit better...but I'm a bit lost as what to use for my test...and what exactly will help me get to the base case. Here is what I have so far [CODE] public class int …

Member Avatar for JamesCherrill
0
2K
Member Avatar for geekman89

Hello I need help with a program I want to make a method that takes a String and uses the text in that String to use a method from an object. Something like this: public void doThat(String text) { myObject.text();// Where text is the actual text stored in the String …

Member Avatar for JamesCherrill
0
188
Member Avatar for whitejava

Question is: [B]How can I send two strings using SendData in different packets?[/B] Because when I try to send two strings one after another, winsock joins them in a single packet thus making one string received from client/server. For example: [CODE]Winsock1.SendData "String1" Winsock1.SendData "String2"[/CODE] The final received data will be: …

Member Avatar for whitejava
0
2K
Member Avatar for intelgy

[B]Hello everyone, I'm new to PHP and creating an advertising website for massage therapists. On the profile page I'm creating a button so anyone can click on to send the advertiser an email. I created a page called profile_sendemail.php which contains the form to send the email and here is …

Member Avatar for the_traveller
0
291
Member Avatar for compulove

I have code for a browse button and I wanted to know how to write the code to output a sucess message if it saves correctly. Also how to output the file path to a textbox... here is the code I have so far... [CODE] protected void Browse_Click(object sender, EventArgs …

Member Avatar for bill_kearns
0
326
Member Avatar for nndung179

Hello Everybody !!! I have a problem about TreeView and ListView. I have a form to manage student. When I add, the data appear on ListView and TreeView at the same time and the same data. Everything works perfectly. But one proble about Delete button. I choose the line from …

Member Avatar for nndung179
0
1K
Member Avatar for onyx112

So I'm trying to create a program that will take values from one array and multiply them with the values in the second array and then allocate the answer into a third array, then returning that array as a result [code]import java.util.Arrays; public class ArrayCreator { public static void main( …

Member Avatar for JamesCherrill
0
123
Member Avatar for davy_yg

The following form if I press simpan (translate: save) suppose to save and insert all the data capture. but it does not. When I press save, it makes the form blank and none of the data being capture why is it? product_edit.php [CODE] $nama = isset($_POST['nama']) ? $_POST['nama'] : ''; …

Member Avatar for davy_yg
0
134
Member Avatar for apcxpc

'ellos So I'm making a Hangman game, and for the sake of completeness I want to have a HELP feature. When the Help button is clicked, a browser window should open up (not *within* the game frame... but just generally) and display the HTML Help file. How do I do …

Member Avatar for masijade
0
725
Member Avatar for mansimran88

The message is not showing. Please help me. Thanks [CODE]<?php /* logout.php */ require('obj.php'); session_destroy(); $_SESSION['msg']='You have successfully logged out. Thank you for the visit.'; header('Location: '.$kPathUrl->adminUrl.'/login.php'); exit; ?>[/CODE]

Member Avatar for jogesh_p
0
128
Member Avatar for dennysimon

hello all using ComboBox has it own backward,if the Item are too much ,then the combobox will become very tall (when it call) the other way is using textfield.Which will show selection ,only the items which have the same fist item's Letter with the one we type in. The question …

Member Avatar for dennysimon
0
87
Member Avatar for tut2tut

i want to make a button when click opening popup window with google adsense or any other..we need to click ads for continue download button..(this button has 10 second timer) here i have code please modify this if you can.. [CODE]<input id="submit" type=submit value='<?php echo _sbdown; ?>' onClick="window.open('http://www.mysite.com/ads.html','mywindow','width=400,height=200')"/>[/CODE] _sbdown = …

Member Avatar for stbuchok
0
108
Member Avatar for wgrogers58

Greetings I don't know javascript but have searched google for hours until I found daniweb, and so I thought I would ask experts. I want to be able to display a message for first time visitors to a website. Ideally it would check to see if they've been to the …

Member Avatar for stbuchok
0
302
Member Avatar for Zababa

Hello there guys! :) I've been given a sample code for my upcoming assignment in Computer Graphics and, according to the guide available in the course's site, I've set up Visual Studio 2008. What we've been given is a solution with some sample code which we must use as a …

Member Avatar for Zababa
0
216
Member Avatar for Stefan_Lam88

Hi guys, I m able to do pagination. But I face another challenge where I once click next,prev or page number,it will refresh the accordion. let say i got 3 headers of accordion.namely A,B,C. After clicking any function in either B or C. It will auto refresh to header A. …

Member Avatar for MartinRinehart
0
120
Member Avatar for mwenyenia07

hi i want to include images to pfd files that i create using cezpdf library. the following is my code: [CODE]$image=$this->cezpdf->ezImage(site_url("system/images/logo.jpg")); $this->cezpdf->ezImage( $image,0,0,320 );[/CODE] but it fails to load the image.can sobebody help me on this?

Member Avatar for cereal
0
1K
Member Avatar for imgregduh

i have 3 files one main.cpp, functions.cpp, and a header.h im using [CODE]#include<fstream>[/CODE] in the main.cpp and in the functions.cpp but im not sure where to define the ofstream datatype in, so that the main.cpp and the function.cpp share the same ofstream variable. where do i put this "ofstream outf;" …

Member Avatar for raptr_dflo
0
224
Member Avatar for ddanbe

Just start a new Windows Forms Application and change the Form1 constructor to this code(which was copied from MSDN) [CODE=csharp] public Form1() { InitializeComponent(); // Create the calendar. MonthCalendar monthCalendar2 = new System.Windows.Forms.MonthCalendar(); // Set the calendar location. monthCalendar2.Location = new System.Drawing.Point(50, 50); // Change the color. monthCalendar2.BackColor = System.Drawing.SystemColors.Info; …

Member Avatar for hscoder
0
516
Member Avatar for rockerjhr

Card shuffling and dealing create a program to shuffle and deal a deck of cards,the program should consist of a clas card a class deck of cards and a driver program To deal a card, the driver just prints it out. The dealCard function does not print anything. this is …

Member Avatar for raptr_dflo
0
172
Member Avatar for Chavis

Good day all, I'm trying to create a template class just for learning purposes. And i keep coming up with two errors... Here's the script: HEADER FILE "lottoclass.h" [CODE] #ifndef LOTTOCLASS_H_INCLUDED #define LOTTOCLASS_H_INCLUDED using namespace std; template<typename T> class Lottery { public: Lottery(); ~Lottery(); T Resize(T* array, int i); void …

Member Avatar for raptr_dflo
0
162
Member Avatar for newbieha

Program received signal SIGSEGV, Segmentation fault. 0x001c74a5 in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::string const&) () from /usr/lib/libstdc++.so.6 (gdb) where #0 0x001c74a5 in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::string const&) () from /usr/lib/libstdc++.so.6 #1 0x0804b444 in Time::getTOD (this=0x0) at Time.cpp:63 #2 0x0804a4f0 in main (argc=2, argv=0xbffff7a4) at printsongs.cpp:102 (gdb) frame 1 #1 0x0804b444 in …

Member Avatar for raptr_dflo
0
184
Member Avatar for beaute

I have a program written in C on LINUX environment. I have another wrapper application written in C++ on Windows. I have a DLL of my C code which I cannot change/modify (I also have access to the original source code) but without exports. I cannot modify the original source …

Member Avatar for vijayan121
0
628
Member Avatar for yorro

Hi, I am using the AjaxControlToolkit's AutoCompleteExtender without a Web Service(PageMethod). **It is working fine on my local machine, but AutoCompleteExtender won't work in the IIS but other AjaxControlToolkit does.** I've searched around but none applies to my problem. It is running in IIS-6, and Framework 4.0. **Heres my code:** …

0
100
Member Avatar for zolomon

Hello everyone, I have a question about the getline() function. I want to read from a text file and add each sentence to a string array, separating them by the full-stop. The getline() function format for input from a text file is different from the one that takes keyboard input. …

Member Avatar for WaltP
0
390
Member Avatar for king_koder

What does xrange do in python?? And how do I implement a similar function in Python3??

Member Avatar for Gribouillis
0
11K
Member Avatar for arindam31

Hi , I am trying to save the output of "help('tkinter')" in a text file. But i get error. I want to know if there is a Way to get the output of help file redirected to a file , or save in a variable. By the way , the …

Member Avatar for Gribouillis
0
408
Member Avatar for Gyani.gtst

i am getting output as XYZ... ABC... This is \t\t\033[40m\033[32mUP\033[0m instead of XYZ... ABC... This is UP i am trying to diplay "UP" in green colour. below is the code: #!/bin/bash var=` /export/home/GT/AM/bin/xacct test -i | grep OK | wc -l` if [[ var -eq 2 ]]; then echo "This …

Member Avatar for Gyani.gtst
0
222
Member Avatar for socksy

I need to create a nested map structure of a given depth, in order to keep track of the number of times that a given combination of words occurs in a file for example if the depth is 3, i should have [CODE]map<string, map<string, map<string, int> > > data;[/CODE] and …

Member Avatar for vijayan121
0
974
Member Avatar for ultimatebuster

How come unittest.TestCase doesn't exist for me? [CODE] Traceback (most recent call last): File "D:\My Projects\TAGEngine\TAGEngine\trunk\unittest.py", line 1, in <module> import unittest File "D:\My Projects\TAGEngine\TAGEngine\trunk\unittest.py", line 4, in <module> class CheckStructureAcceptance(unittest.TestCase): AttributeError: 'module' object has no attribute 'TestCase' [/CODE]

Member Avatar for Utopia_Tz
0
5K
Member Avatar for DmytriE

Hi all! I am having trouble accessing dynamic information. I have used the malloc command to allocate the necessary memory for my struct. However, when I leave that function and enter a display function it says there is a problem accessing the information in the struct. I just had a …

Member Avatar for D33wakar
0
115
Member Avatar for BubblesBrian

I am new to c++ and have a question about the while loop. If I have one key condition that is let's say a gamebreaker. Ie money = less than 0, does everything else then go in a big while loopn which may contain many more while loops and if …

Member Avatar for raptr_dflo
0
115
Member Avatar for maggoteer

Hey guys, I've looked around the forum and seen a few answers that looked like it should have solved the problem - but didn't. I'm trying to create a function that will check the database and compare it with the value of my label. (Basically a Version Checker) If it …

Member Avatar for Mitja Bonca
0
163
Member Avatar for rysin
Member Avatar for satti

Hi ya, Iam using firebird v 2.5 database with vb.net .i just want a help regarding how to create a new user in fb database programmatic ally in vb.net . thank you.

Member Avatar for satti
0
370
Member Avatar for C++newbie chick

Hello guys, just wondering why my program crashes when I try to delete a struct from my array. I'm trying to code so that the user searches for a student via a student ID, then opt to delete the searched student's record. I thought I got it right and the …

Member Avatar for chandara
0
859
Member Avatar for karmstrong

I am having a couple of problems. I think I got the formatting down for the most part. I am having issues in a few calculations and how to iterate through them. Basically I need to take the radius and calculate the circumference and the volume. Once I have the …

Member Avatar for raptr_dflo
0
328
Member Avatar for Ehtesham Siddiq

hi, I have a form and a button on that form.When the user clicks on the button an MS-Excel sheet is generated from MS-Sql Server 2005 and saved in a particular location.As this generation of excel tkes sometime to complete,what i want to do is i want to show a …

Member Avatar for Mitja Bonca
0
832
Member Avatar for saikumars

I want to perform calculation in gridview :NetAmount=(ServiceAmount*Quantity)*Discount I had written code in rowdatabound but it is not working,i amnew to programming help me solve this proble i would appreciate if some one share ther knowledge my Axpx code is: <asp:GridView ID="GridView1" runat="server" Height="156px" Width="618px" AutoGenerateColumns="False" BorderWidth="1px" HorizontalAlign="Justify" onrowdatabound="GridView1_RowDataBound" BackColor="LightGoldenrodYellow" …

0
107
Member Avatar for begprogram

i have to create a DigitsDisplay application that prompts the user for a non negative integer and then displays each digit on a separate line like such "Enter a positive integer: 789 7 8 9 this is what i have so far Can someone please help me fix this program …

Member Avatar for adarshcu
0
149
Member Avatar for imslala

Hello, i need help to do the insert inside repeater, but when i debug the stock_code inside sql command is not declared. what should i do? [CODE] Protected Sub repeaterAlert_ItemDataBound(ByVal sender As Object, ByVal e As RepeaterItemEventArgs) Handles repeaterAlert.ItemDataBound Try stockCodeheader.Text = " Stock Code " plcNameheader.Text = " PLC …

Member Avatar for Pgmer
0
179
Member Avatar for sackymatt

Hi all I have a situation, i have a form that has a datagridview, on form load, it selects the data from sql db, now what i want is when i right click on one row, i should be able to delete that row and it should also get deleted …

Member Avatar for Pgmer
0
2K

The End.