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?

Member Avatar
Member Avatar
+0 forum 10

I am making a text adventure and would like the command line window to be a specific size when you run the .py file in the command line window. eg. 300 wide by 250 height. I found a thread on here that shows how to specify the text colour which I also wanted to know. [url]http://www.daniweb.com/forums/post1150939.html#post1150939[/url] Can anybody help? Thanks.

Member Avatar
Member Avatar
+0 forum 11

I am using centos Please help what is SSH commands to do this: run a command 20 times, break 2 seconds, and repeated again so like this // run 20 times wget http://test.com wget http://test.com wget http://test.com wget http://test.com wget http://test.com wget http://test.com wget http://test.com wget http://test.com wget http://test.com wget http://test.com wget http://test.com wget http://test.com wget http://test.com wget http://test.com wget http://test.com wget http://test.com wget http://test.com wget http://test.com wget http://test.com wget http://test.com //break 2 seconds // run 20 times wget http://test.com wget http://test.com wget http://test.com wget http://test.com wget http://test.com wget http://test.com wget http://test.com wget http://test.com wget http://test.com wget http://test.com wget http://test.com …

Member Avatar
Member Avatar
+0 forum 5

Hey, I recently found out how to shutdown another's computer using yours at school with command prompt and when I tried it, it didn't work. Here's the code: shutdown -i and when I click on browse, it says that the server is unavailable. And here at my school, we login to the network using an assigned 5 digit lunch number and a random password. We technically don't have an actual username to login with. I also learned how to send messages to another computer using command prompt and that doesn't work either: msg [/ persons lunch number] [/message time] [/message] …

Member Avatar
Member Avatar
+0 forum 13

Hello. When i open a file in my linux localhost with the command "gedit file.php" and then put a part of code in it, then i can't save the file. the save icon above the gedit is deactivated. What can i do?

Member Avatar
Member Avatar
+0 forum 4

Hello all Im trying to make java robot hold down the command key. I have used the following code. robot.keyPress(KeyEvent.VK_META); robot.Delay(5000); robot.keyRelease(KeyEvent.VK_META); This doesant seem to do the trick. Yes I have searched on how to do this but cannot find a working answer. Am I using the wrong keycode? Ive also tried robot.keyPress(KeyEvent.META_MASK); and robot.keyPress(KeyEvent.META_DOWN_MASK); Ive also tried keycodes, 91 and 93.

Member Avatar
Member Avatar
+0 forum 2

Hello. I have a Class in my python file. That Class contains some functions. How can i set the command of a Tkinter butten so that call a function of that class? I tried this but it didn't work: class calculating(object): def __inint__(self): self.current = 0 def addition(self, amount): self.current += amount def result(self): return self.current print (self.current) def show(self): lbl["text"] = result() btn1 = Button(root, text = "add", command = calculating.addition) btn1.pack() btn2 = Button(root, text = "result", command = calculating.show) btn2.pack() lbl = Label(root) lbl.pack

Member Avatar
Member Avatar
+0 forum 2

Hi everybody. I'm using python to create sql database. I created a test.db file and then made a table on it with the name "fims" and inserted some data on it.... title text, year text and director text. And then set values for them. Now when i type "sqlite3 test.db" on the shell, and the "secelt * from films;" nothing apears. I did exactly what i saw on the tutorial video but the result was different. (Of course the tutorial is using windows, but i use Linux, so i know i should change some commands a little a bit, but …

Member Avatar
Member Avatar
+0 forum 12

Hello everybody. I need a quick help. I have a problem with running my python file code. I use Linux. I had a file with the name "app3.py" file on the Desktop; then i removed ".py" from the end of the name of the file; so now i have "app3" file. The first line of the file is this: #!/usr/bin/env python3 I have checked the "Execute: Allow executing file as program" checkbox too. I have typed this command on Linux terminal: sudo chmod +x app3 Now when i type "./app3" on the terminal; it should works but it doesn't. I …

Member Avatar
Member Avatar
+0 forum 4

Could someone please tell me how I can run my C++ code using Command prompt? How should I open it, and what I need to write? And if there are more than one text files in my code including input data, how I can choose one of them to run that one?

Member Avatar
Member Avatar
+0 forum 3

I have two python script the first once contains my def callers and my command line arguments. The second one contains my defs that i want to use the command line arguments in. I was wondering if there was a way to call the command line arguments into the second script cause they do call some of the items that are needed in the second one from the comman line.

Member Avatar
Member Avatar
+0 forum 8

Hello guys, I am working on something at work. We actually have a server whereby all the profiles of users working on citrix are stored. there is a routine work that we do to take ownership on a profile, rename the profile and copy the files of the old profile to the new one. WHen i say profile it is basically a folder with sub folders and files. I wrote a little automation script on notepad ++ to do that but the thing is that there is no inheritance on the profiles so it is taking ownership only on the …

Member Avatar
+0 forum 0

Hello everybody i have a little problem with making a java command for program i have some code but i do not know how to continue i stuck in one place BTW the command i want to make is > /sendcash [username] [money] // how it looks like I have this code if (cmd.equals(AdminCommands[1])) { String player = scanner.next(); String money = scanner.next(); File folder = new File(player); File pFile = new File(folder, player + ".txt"); File bFile = new File(folder, money + ".txt"); if (pFile.exists() && bFile.exists()) { try { Account playerAccount = new Account(player, money); // Sending money …

Member Avatar
Member Avatar
+0 forum 3

in my i.t lesson we were intoduced to 'raspberry pi' within 'Python' and for my homework i have to explain what we did in the lesson. It says i have to include what 'input' is when coding a programme. Please help and reply as soon as possible and keep in mind i dont really understand computer or technology language/words! Plus, i remember watching my teacher show us on the board something along the lines of "end/run command/programme when enter is clicked" can anyone help me with that? Thanks!!

Member Avatar
Member Avatar
+0 forum 1

well i tried to execute the following code.. #include<process.h> #include<conio.h> #include<dos.h> #include<stdlib.h> #include<stdio.h> void main() { system("dir"); getch(); } but it did not execute the system command... what went wrong?? plz mail me at [email]prajwaludupardx_369@yahoo.co.in[/email]

Member Avatar
Member Avatar
+0 forum 6

Hi Team, Please hekp me with the OCILogon error. Im using WampServer Version 2.2. I have a script which connects to 10g and 11g database and it works perfect from the browser. Now i want to automate the php script via batch file which will be windows 7 schedule task. I have set the classpath to C:\wamp\bin\php\php5.4.3 for php. While executing script it gives "Call to undefined function OCILogon() in c:\wamp\www\cps_auto\testauto.php on line 6. PHP Stack trace: php 1.(main) c:\c:\wamp\www\cps_auto\testauto.php:0 Please help need it urgently.

Member Avatar
Member Avatar
+0 forum 2

A program which has the main process as Director process, which reads a file containing marks of all quizzes of all sections and creates x number of Manager processes. Each Manager process will take care of solving for a section. Each manager process will create y number of worker process and pass one quiz to each of them and they calculate and print the average. HINTS There are x number of sections in a course. In each section y numbers of quizzes are conducted. The average for each quiz in all the sections needs to be found out. Read x …

Member Avatar
Member Avatar
+0 forum 2

Hello everyone. I just have a simple question with command prompt in Windows 7. Is there any command that copies the text from a file onto the clipboard so I can paste it somewhere? All I want to do is start the batch file and press Control-V. Solutions?

Member Avatar
Member Avatar
+0 forum 5

@echo off REM This batch file will play with shift command :loop echo %1 shift if %2 == GOTO end goto loop :end exit 0 When I inputted C:\Users\~\Desktop> Shift.bat 1 2 3 I got this 1 2 end was unexpected at this time. Why do I keep getting "end was unexpected at this time.

Member Avatar
Member Avatar
+0 forum 4

For some reason this is only returning the description of a single item in the HashSet even when there are several items. I am not sure if the (Item)iter.next() is only getting the description of the first item in the list and that is why. /** * */ public String getMyItemsDescription() { String returnString = "The items in your inventory are:"; for(Iterator iter = myItems.iterator(); iter.hasNext();){ returnString = " " + ((Item)iter.next()).getDescription(); } return returnString; }

Member Avatar
Member Avatar
+0 forum 1

I am having trouble adding an item that will increase a player's energy in my BlueJ game. At the bottom of the createRooms() method in my game class I have added several items to rooms. At that point I tried setting boolean newEnergy equal to true. If the player types "use", they will receive 10 energy if boolean newEnergy is equal to true. I am not sure how I would set boolean newEnergy to true only when the energy item is still in the room. /** * Create all the rooms and link their exits together. */ private void createRooms() …

Member Avatar
Member Avatar
+0 forum 2

I am creating a game project in BlueJ but the "drop" and "items" commands do not work. When I call either one of them in the game I get a "nullpointerexception" error message. This is the drop method in the game class, which compiles but does not work: /** * Drops an item */ private void drop(Command command) { String theItem = command.getSecondWord(); Item theItems = currentPlayer.getItem(theItem); if (!command.hasSecondWord()) { System.out.println("Drop what?"); return; } currentPlayer.removeItem(theItems); System.out.println("The " + theItem + " has been removed from your inventory"); currentRoom.addItem(theItems); } The "nullpointerexception" error highlights the "if(anItem.getName().equals(theItem))" line of the following method …

Member Avatar
Member Avatar
+0 forum 5

Hi i need windows command line to find all files that end with .jpg.pdf and remove the .jpg part so it will be pure .pdf at the end, i have following line for /R %DIR% %%i in (*.jpg.pdf) do set without=%i:~0,-8% & rename %%i "%%without.pdf" It should remove last 8 characters and then rename file with .pdf extension for some reason it creates without variable with this content '~0,-8without' any idea how to execute these two commands in one for loop? the '&' doesnt do the trick for some reason... Thanks

Member Avatar
Member Avatar
+0 forum 3

I am trying to run a shell script at a fixed time with the help of "at" command. But it doesn't seem to work. For example, I created a shell script named as "task" having content: vlc and schedule it to run at 21:52 with the command: $at -f task 21:52 it shows message: warning: commands will be executed using /bin/sh job 16 at Thu Apr 26 21:52:00 2012 but it doesn't work. I tried giving the vlc command directly to at command, but it also doesn't work. It seems like "at" command doesn't work for all the commands or …

Member Avatar
Member Avatar
+0 forum 7

Hi I am trying to resolve an issue with Word 2007 not opening a document. I get this message: "There was a problem sending the command to the program". The OS is Windows 7 Pro running on a Dell 490. I have tried running in safe mode and deleting the Data entry in the registry. I have also checked for problems with Office and also did a Detect and Repair which completed successfully but the program still didn't start. Geoff

Member Avatar
Member Avatar
+0 forum 2

Hi Everyone, I have a technical question regarding how Perl scripts are run by Servers. In traditional programming a source file (containing human readable programming instructions) is first compiled (into binary data) before it can be run by a computer. Do Perl commands get compiled before being run, or does the "scripting engine" interpret the human readable commands directly? Any help here will be greatly appreciated. Kind Regards, Davo

Member Avatar
Member Avatar
+0 forum 2

Having another brain fart on what I believe is a no brainer. I'm trying to read the contents of a DBF and write it to an ACCDB table; this is a daily event and the DBF has between 500-1200 records each day. I have successfully read the contents of a DBF table and filled my da.Fill(ds, "Data") with it along with a DataGridView. Now I want to write the entire table with NO parameters to my ACCDB Table 'BlahBlah'; both structures are the same. I see a ton of samples & examples WITH parameters, but no cmd.command INSERT examples to …

Member Avatar
Member Avatar
+0 forum 11

Hi friends, # Heading Here # Could anyone help me,how to send email in qt using command prompt commands..

Member Avatar
+0 forum 0

I installed zsh instead of bash and quite like it. However today I was changing the php path and I messed it up. I know what I did wrong, and I would just edit the file and fix it but my mistake has stopped any commands working. I could access it through finder, but the file I messed up on begins with a . so I need to run a terminal command so it shows up. Any ideas on what I could do?

Member Avatar
Member Avatar
+0 forum 1

So I wrote a cool little python script for terminal commands that I get sick of entering. Most of the script is explained in docstrings and comments. Looking for useful terminal commands or things I missed or could have done better. I'm actually quite proud of it. :) #!/usr/bin/env python '''Local refers to the host computer[127.0.0.1], System refers to the system, [run] runs the command in a host network enviroment.''' __default__ = "/" __pythondefault__ = "/Users/self/Desktop/Python3" __vers__ = 1.0 __auth__ = "SirPrinceKai" import os from fabric.api import * def Erase(): print "Removes the bits and pieces from your trash can." …

Member Avatar
Member Avatar
+1 forum 4

The End.