132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for HoneyBadger

Guys, I am trying to change the background color of my window in WxPython. Here is what I got: Why doesn't it work? [CODE]import wx class my_window(wx.Frame): def __int__(self, parent, id): wx.Frame.__int__(self,parent,id,'My Window', size=(300,200)) self.Colours() def Colours(self): self.pnl1.SetBackgroundColour(wx.BLACK) if __name__ == "__main__": app=wx.PySimpleApp() frame=my_window(parent=None,id=-1) frame.Show() app.MainLoop()[/CODE]

Software Development python
Member Avatar for Rufus_1
0
11K
Member Avatar for Viking_2

So I have to write a program that takes the amount and weight of pumpkins entered by a person and then outputs them back with their corrisponding weight class that i specify. I keep getting a syntax error on the elif statement and I was wondering if i could have …

Software Development python
Member Avatar for hericles
0
365
Member Avatar for Alex_69

Basically title. Part of a larger program, but I can't figure out how to remove just the first letter (it's always not a number; A, B, C, X, etc.), and is always followed by numbers. So essentially, I'm trying to get "x234" to "234". I figured I could use lb …

Software Development assembly
Member Avatar for Alex_69
0
4K
Member Avatar for Sinisa_1

Good man James helped me learn die roll board game programming in Java, and I applied it on Ladders and Snakes. Made one in Java. Now I'm learning to do it in Android. Here's the question: Making simple Ladders and Snakes game. Can't use those in Google Play, they don't …

Member Avatar for Sinisa_1
0
3K
Member Avatar for Khalid_12

Hi, I have been given a project to finish in school in 3 phases, the thing is I am not that good when it comes to programing. The project was to develope a tic tac toe game as following: **Phase 1: Write a program that will first ask the user …

Software Development c++ visual-basic
Member Avatar for Sinisa_1
0
514
Member Avatar for omojolinho

Using Python, tokenize using space as a parameter. Count the total number of words in the document and the frequency of each word. Also, identify the word with least frequency appearance and most frequency appearance

Software Development python
Member Avatar for rproffitt
0
224
Member Avatar for JHus00

I need to convert hours into weeks, days, and hours. My professor was hinting that there might be a way to do this using the modulus operator but I can't seem to think of a way that its possible. Can anyone help? thanks!

Software Development c++
Member Avatar for cereal
0
4K
Member Avatar for Howard_2

Hey been practicing coding using Python 3 tutorial,my question is how to put what learn into a project,or should I say how or what information is their to get this mindset

Software Development python
Member Avatar for pty
0
228
Member Avatar for divinity02

hi james cherril I am doing a voting system application of which I have to hand up today. I am getting a runtime error when I entered a record and try to save it. as I entered one record and when the save button is pressed it give me a …

Software Development gui java java-swing oracle
Member Avatar for divinity02
0
323
Member Avatar for Dietrich_1

So when I run my code I get a bug where it doesn't display the name for the person when displaying the scores: ![Screen_Shot_2017-10- ![Screen_Shot_2017-10-22_at_8_55_08_AM.png](/attachments/large/4/db8f249841da73d8654d7c6ea699aa03.png "align-center") Here is my code, I have been stumped for several hours: import java.util.Scanner ; public class StudentApp { public static void main(String []args) { …

Software Development java
Member Avatar for JamesCherrill
0
2K
Member Avatar for Dietrich_1

So I get an error that says "no suitable constructor found for Student(no arguments constructor)" /** * Write a description of class Student here. * * @author (your name) * @version (a version number or a date) */ public class Student { private String name ; private int test1 ; …

Software Development java
Member Avatar for tinstaafl
0
423
Member Avatar for veiLrn

Hi, I'm new on this forum, but a friend directed me here to seek further assistance with a program I am trying to create. I have to create a program that can manage 10 bank accounts, one of which uses appropriate type definition to store the name, account number, balance …

Software Development c++
Member Avatar for ASIF_21
0
32K
Member Avatar for Dietrich_1

import java.util.Scanner; public class LuckySevens { private int diceLength; private int rolls; private int sides; private int numRolls = 0; public static void main (String [] args) { Scanner reader = new Scanner(System.in); int diel, die2, dollars, count, maxDollars, countAtMax; System.out.print("How many dollars do you have? "); dollars = reader.nextInt(); …

Software Development java
Member Avatar for rproffitt
0
655
Member Avatar for Daron_1

I am working creating a fully encapsulated, homogeneous singly linked data structure. The Listing class and SinglyLinkedList class that are part of the whole application compile fine, but the problem that I am having is performing different operations such as insert, fetch, update, and delete inside of a do-while loop …

Software Development data-structure java linked-list
Member Avatar for rproffitt
0
305
Member Avatar for Daron_1

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="XEx14ProductReceipt.Default" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Ch14: Product Receipt</title> <meta name="viewport" content="width=device-width, initial-scale=1" /> <link href="Content/bootstrap.min.css" rel="stylesheet" /> <link href="Content/site.css" rel="stylesheet" /> <script src="Scripts/jquery-1.9.1.min.js"></script> <script src="Scripts/bootstrap.min.js"></script> </head> <body> <div class="container"> <header class="jumbotron"><%-- image set in site.css --%></header> <main> <form id="form1" runat="server" class="form-horizontal"> <div …

Software Development css-bootstrap display
0
171
Member Avatar for Lennac

So, I'm relatively new to programming and I'm working on a program that allows for input of grades, course hours, and then calculates GPA based on that. But, I'm going step by step, the first thing I'm trying to do is ensure that I can input the data so that …

Software Development c
Member Avatar for Lennac
0
345
Member Avatar for Jim_21

I have this block of code where l run through a table and display matched results in a listbox. It works fine, but my question is how do l enable the user to select an item in the listbox once it is displayed? Suggestions are welcomed as always. Thanks Try …

Software Development gui vb.net
Member Avatar for rproffitt
0
492
Member Avatar for a_10

Hello Everyone, I have developed a DBMS and I want to store the credentials for server, and user name securely so that the users don't have to enter the password to the database EVERY time they start the software. My question is, how would I go about doing this? I …

Software Development storage vb.net
Member Avatar for rproffitt
0
235
Member Avatar for COKEDUDE

Are there any good tutorials c programming with mysql? I only found one promising link, unfortunately they neglect to to show what is in their header files which doesn't help very much. http://zetcode.com/db/mysqlc/

Software Development c c# c++ mysql
Member Avatar for rproffitt
0
407
Member Avatar for sgw

Why doesn't the code (2) below produce the same output as the code (1)? Let's say you entered "4" as input: (1) int x; cout << "enter integer: "; cin >> x; cout << x++; cout << ++x; cout << x; The output of the above is "**466**" (as expected). …

Software Development c++
Member Avatar for sgw
0
592
Member Avatar for phphp

Dear Sir, I am using following codes on EVERY textbox. private void textBox1_KeyPress(object sender, KeyPressEventArgs e) { char ch = e.KeyChar; decimal x; if (ch == (char)Keys.Back) { e.Handled = false; } else if (!char.IsDigit(ch) && ch != '.' || !Decimal.TryParse(textBox1.Text + ch, out x)) { e.Handled = true; } …

Software Development
Member Avatar for Reverend Jim
0
214
Member Avatar for Jim_21

This is a fingerprint verification application. When verifying,it loops through the table. if the current fingerprint template is the first one on the table row it verifies it correctly. But if the current fingerprint template is located on the 2nd or later rows, it loops through the table and at …

Software Development dataset gui
Member Avatar for demon916
0
293
Member Avatar for monem_1

I want to edit the following code where I want 1. Convert the print from left to right 2 - Modify the contents of the print down the data grid so that the contents of the lily "We are happy to use your software" appears below the last row of …

Software Development printer vb.net
Member Avatar for rubberman
0
516
Member Avatar for farzane_1

hello freinds i have put an image (self.image) on my window background now, i need to put another image(mi_but1) on this window.. my problem: image mi_but1 is put on window with a gray square behind it(a gray square between image mi_but1 and window's background) .the final gui doesnt look nice.i …

Software Development gui python tkinter
0
140
Member Avatar for Jim_21

Here is a sample of my code where I retrieve a fingerprint template stored in mysql database. I have stored the fingerprint template as BLOB type. I have a table with two fields or columns, CaseFileNumber and FingerP. I have stored the fingerprint template in the FingerP column and also …

Software Development gui mysql vb.net
Member Avatar for cereal
0
2K
Member Avatar for Siberian

I need some help why can't I create an instance of the child class without an error ? class tv(): def _init__(self,color,screen,frame): self.color=color self.screen = screen self.frame = frame def DesOfTV(self): info = "The TV has a"+self.color+"and a"+self.screen+"screen" return info class retroTV(tv): def __init__(self,color,screen,frame): super().__init__(color,screen,frame) oldertV = retroTV("black","tuber","wood")

Software Development python
Member Avatar for AndrisP
0
248
Member Avatar for nadiam

Hello. I have a project to develop a tool that reads Windows 7 raw memory dump. My lecturer says that he'd rather we use python or c coz that's his specialy but we can choose whatever. We chose python (bcoz i feel like its an opportunity to further learn about …

Software Development gui python windows-vista-7-8
Member Avatar for rproffitt
0
473
Member Avatar for Sinisa_1

Good day to everyone. I need help. Have to make more of these and need someone to show me how. My code doesn't work the way it should. It would have to * wait for you to click jbutton and then: - disable jbutton - roll die, then start timer …

Software Development ide java java-swing
Member Avatar for Sinisa_1
0
1K
Member Avatar for Hawkeye249

The following works to calculated the date for Easter any given year. I don't understand why it works ... =FLOOR.XCL("5/"&DAY(MINUTE(YEAR("1/1/2017")/38)/2+56)&"/"&YEAR("1/1/2017"),7)-34 I'm a novice - in the above, "1/1/2017" is used to provide a year. That could be done a number of ways, and is not the same way I have …

Software Development microsoft-office
Member Avatar for rproffitt
0
388
Member Avatar for Sarah_23

A children's game of 'count out' is played as followed. '40' children are arranged in a circle, a sentence containing of 'm' words is used to eliminate '1' child at a time until '1' child is left. Starting at child '1' the children are counted from '1' to 'm' and …

Software Development c++ ide pascal
Member Avatar for rubberman
0
320
Member Avatar for Prathamesh_1

THIS SOURCE HAS printf STATEMENT WHICH IS TO BE REPLACED WITH cout STATEMENT. PLEASE HELP ME....... :) #include<stdio.h> #include<stdlib.h> #include<conio.h> #include<time.h> int a[9][9],b[9][9],r[60][2]; int row, col, icount, mode; char solh; void main() { void readvalues(void), display(void),generate(void); int solve(),checkmat(), checkrow(), checkcolumn(),check(),isfixed(); int i,j,error; char c; clrscr(); prinf("\n\t\t\t SUDOKU GAME by:\n\n\t\t\t \n\t\t\t …

Software Development c++ puzzle
Member Avatar for rubberman
0
498
Member Avatar for Saanvi

Is there a function in c# that returns x times of given char or string. Or I must code it? Thank you Saanvi sharma

Software Development c# c++ vb.net
Member Avatar for xrjf
0
521
Member Avatar for Sajjad_4

import java.io.IOException; import java.nio.file.Files; import java.nio.file.Paths; import java.util.ArrayList; import java.util.List; public class MatrixPath { static List<String[]> obstacles = new ArrayList<String[]>(); static String[] size = new String[2]; static String[] startingPoint = new String[2]; static String[] endPoint = new String[2]; static int sizeOfRow = 0,sizeOfCol = 0; char one = ' '; …

Software Development c++ java
Member Avatar for JamesCherrill
0
456
Member Avatar for Stat_1

I tried to popup partial view, but its not working ,this is my link <a id="id1" href="@Url.Action("index", "versus", new { matchid = c.MatchID })" target="_blank" data-toggle="tooltip" data-placement="top" title="@homeMLName - @awayMLName"> @homeMLName - @awayMLName </a> And this is my script: <script> $('a#id1').click(function (event) { event.preventDefault(); window.open($(this).attr('href'), '_blank'); }); </script> It opens …

Software Development
Member Avatar for Stat_1
0
764
Member Avatar for Shulc
Member Avatar for RainaAnja

I am developing a website that gives statistics for soccer games,and i want to convert the schedule of the match depending on the time zone. I created this function but it seems not to be working. public static DateTime UtcToLocalTimeZone(DateTime argDateTime,TimeZoneInfo argTimeZoneInfo) { try { return TimeZoneInfo.ConvertTimeFromUtc(argDateTime, argTimeZoneInfo); } catch …

Software Development session software-architecture
Member Avatar for JamesCherrill
0
1K
Member Avatar for Jason_24

Hi everyone, I am having some problems with this problem. I know I am almost there but I think I am not quite getting it. I get this error when I run it. Exception in thread "main" java.lang.NullPointerException at Newspapers.Subscribers.main(Subscribers.java:14) Can you guide me to the right direction. Thank you. …

Software Development java java-swing
Member Avatar for stultuske
0
4K
Member Avatar for RainaAnja

The model item passed into the dictionary is of type 'System.String', but this dictionary requires a model item of type 'BetGuns.Web.Models.Home.VM_HotGames'. How to fix this error @foreach (var c in Model.Mathes) { decimal res1 = 0; decimal resx = 0; decimal res2 = 0; string proposal = string.Empty; string proposal2 …

Software Development
Member Avatar for hericles
0
456
Member Avatar for Matth963

Hi, I'm doing a simple study planner in java. Obviously I need to do a timetable generator. The program works like this: 1. The user enters the start time of school and the length of each breaks (Done) 2. The user enters the lessons(Done) 3. When the user presses next …

Software Development java
Member Avatar for Jhonathan_1
0
5K
Member Avatar for luke_8

G'day everyone! I'm fairly new to C++, so bear with me if this is painfully obvious. I'm trying to get a user to guess a string, which is just a vector containing random capital letters. That random letters part works great, however I can't figure out how to get my …

Software Development c++
Member Avatar for David W
0
1K
Member Avatar for stefy14

I want to my program to prompt user to input a number with three or more integers I need the program to output a space between each numebr example: cin>>3334; i want the output to show 3 3 3 4 each with a space and then i also need to …

Software Development c++
Member Avatar for amisha_1
0
58K
Member Avatar for heo

how can i make toupper global so that all variable in char will be all upper?

Software Development c++
Member Avatar for DavidB
0
155
Member Avatar for Mooyeon

I made first board, but when I use function next_generation, it prints wrong result. For example, since first board is 01000 00100 11100 00000 00000, next one should be 00000 10100 01100 01000 00000 . But my program prints 00000 00100 01100 00000 00000. Here is my code. #include <stdio.h> …

Software Development c
Member Avatar for JamesCherrill
0
377
Member Avatar for zebnoon1

Dear Friends, i Developed a C# Project with SQL Server Database (Database is not LocalDB) and i want to create a setup file to install on client system havin windows xp 32bit. Please suggest me how to do it ?

Software Development sql
Member Avatar for rproffitt
0
557
Member Avatar for Niloofar24

Hello! Can you give me an example of Button widget in Kivy language? I can creat the button but don't know how to use it's callback. I mean how can i set a command for the Button in Kivy?

Software Development gui python
Member Avatar for M_12
0
5K
Member Avatar for tor-arne

Yes i do know this have been posted atleast two times before, but i can hardly get anyhelp out of it. So back to my post, trying to figure out what i am doing wrong, and why my class wont compile. So i am not really sure what to do, …

Member Avatar for JamesCherrill
0
2K
Member Avatar for Steve_37

gerard4143 explained 6 years ago how to store binary code in memory and then execute it. See https://www.daniweb.com/programming/software-development/threads/353077/store-binary-code-in-memory-then-execute-it#post1500738. In the example, we create an array of unsigned char containing these values: 0x50,0x57,0x56,0x52,0xe8, 0x00,0x00,0x00,0x00,0x5e, 0x48,0x81,0xc6,0x24,0x00, 0x00,0x00,0x48,0xc7,0xc0, 0x01,0x00,0x00,0x00,0x48, 0xc7,0xc7,0x01,0x00,0x00, 0x00,0x48,0xc7,0xc2,0x0e, 0x00,0x00,0x00,0x0f,0x05, 0x5a,0x5e,0x5f,0x5a,0xc3, 0x48,0x65,0x6c,0x6c,0x6f, 0x2c,0x20,0x57,0x6f,0x72, 0x6c,0x64,0x21,0x0a,0x00 This works fine when I use the …

Software Development c
Member Avatar for rproffitt
0
354
Member Avatar for kay_1

Hi, I am not able to destroy a hash table. I have put the destroy function below: void desTable(ListNode* v[10]) { ListNode* temp; ListNode* tempNext; for (int i = 0; i < 10; i++) { if (NULL != v[10]) { temp = v[10]; while (NULL != temp) { tempNext = …

Software Development c++
Member Avatar for jkon
0
450
Member Avatar for nadiam

Hello, so I have this program which should be creating a file called output and appending some content from another file,data.txt, accordingly. Creating file called output works but then the output file is empty. what am i doing wrong? Oh and Im suppose to use method print() but that gives …

Software Development file-system java
Member Avatar for JamesCherrill
0
522
Member Avatar for Ade Ihsan

long waitingTime(vector<int> tickets, int p) { // bool flag indicates whether it's Jesse or not queue<pair<int, bool> > aQueue; for(int i = 0; i < tickets.size(); i++) { aQueue.push(make_pair(tickets[i], i == p)); } long long nTime = 1; while(!aQueue.empty()) { pair<int, bool> aItem = aQueue.front(); aQueue.pop(); nTime++; if(aItem.first == 1 …

Software Development c++ python queue
Member Avatar for rproffitt
0
1K

The End.