14,948 Topics

Member Avatar for
Member Avatar for mark103

Hi guys, I have added the list of buttons for the channels and programs in the xbmc skin. I have one yellow box on the channel and program box for both buttons. I want to know how I can move the yellow box to go to the next program when …

Member Avatar for Schol-R-LEA
0
178
Member Avatar for vegaseat

The idea of this thread is to help the beginning wxPython GUI programmer with hints and helpful code. Please feel free to contribute! If you have any questions start your own thread! For info on wxPython modules see: http://www.wxpython.org/docs/api/wx-module.html

Member Avatar for HiHe
2
21K
Member Avatar for shaziya

Hi I dont want the extra bracket inside the list thats been outputted so how would I fix that? This is the code: def my_code(list1, list2, index): index = ['a','b','c'] list2 = [2] list1 = [1,2,3] list1.insert(2,index) return list1 and it returns: [1, 2, ['a', 'b', 'c'], 3] I dont …

Member Avatar for snippsat
0
174
Member Avatar for Jack_9

Hello. I work for a company that does alot of stuff with python and I was wondering what methods are better then the one I use for finding a bug in millions of lines of code. What I like to do is find out what the bug does. Let's just …

Member Avatar for vegaseat
0
325
Member Avatar for Miyuki

I want to use Python to make something similar to the fc command found in MS-DOS and Windows. How would I handle opening 2+ files and reading them a byte at a time for comparing?

Member Avatar for Jack_9
0
499
Member Avatar for Lardmeister

Does anybody have some experience with the iPython notebook? How do you get started?

Member Avatar for bumsfeld
0
293
Member Avatar for mcroni

hi, pls i have written a set of codes for a program and i want to deselect the radiobutton and also clear the contents of the entry widgets,the entry widgets get cleared tho. thank you def adduser(): name = "Name: " + entry_box1.get() reference_number ="Reference_number: " + entry_box2.get() room_number = …

Member Avatar for vegaseat
0
2K
Member Avatar for valestrom

print ("The scope of this program is to multiply two matrices together\ and print the result") while True: matrix1_rows = input("How many rows does matrix one have? ") matrix1_columns = input("How many columns does matrix one have? ") print ("Matrix one is a", matrix1_rows, "x", matrix1_columns, "matrix") print() matrix2_rows = …

Member Avatar for David W
0
380
Member Avatar for Myronz

For class, I had to write a simple program that would calculate the surface area and volume of a torus. I did that, but my answers are long decimal numbers. How do I get the answer to round off? Thanks in Advance

Member Avatar for isla.rose.3
0
282
Member Avatar for bumsfeld
Member Avatar for bumsfeld
0
3K
Member Avatar for vegaseat
Member Avatar for Screwby

Hello, sorry for the rudeness for asking for help on the first post but I'm still a beginner in programming. I am trying to create a GUI for plotting function using Tkinter and Python. In the top a label will show the current position of the mouse in the canvas …

Member Avatar for Lardmeister
0
11K
Member Avatar for Stefano Mtangoo

I downloaded daily build and did python3 setup.py build and then python3 setup.py install So far so good! I tried import wx and no errors I tried to run the program [here](http://wiki.wxpython.org/Getting%20Started#Getting_started_with_wxPython) and all I got was the error below. Have anyone got wxPython working with Py3 especially on Linux …

Member Avatar for Werner F.
0
1K
Member Avatar for psichoman5

Hi!, i need to convert the string of a function in binary. In this case, i need to convert the return of the function swap() into binary to compare it in Mensaje_codificado() but it doesn't work. This is my script: - Thanks! Binary function: def numero_binario(x): i = 0 b …

Member Avatar for Gribouillis
0
2K
Member Avatar for kuchi

We have date "30-DEC-99" in oracle database but when our code reads that date is reading like "datetime.datetime(1899, 12, 30, 0, 0)", why the year 99 is reading like 1899 rather 1999? how do I fix this issue? please suggest.

Member Avatar for Lardmeister
0
178
Member Avatar for DragonMastur
Member Avatar for RichardGalaviz
0
136
Member Avatar for davidbr

Hi, I have this def update_labelain0_val(self): val=get_ain0() self.labelain0_val.set(val) self.labelain0.config(bg="#32CD32") #0-12.9v -> 0-6000N valain0=float(val) valain0_calc=valain0*6000/12.9 valain0_calc=int(valain0_calc) self.labelain0_calc.set(valain0_calc) self.labelain0calc.config(bg="#FF8C00") threading.Timer(0.1, self.update_labelain0_val).start() return This is part of a class which update a label in a window. It is working fine. My problem is : how can i give a variable name o this …

Member Avatar for Gribouillis
0
217
Member Avatar for rose_2

well .. i found out that python is easy language prog. for beginner like me .. but at 1rst am looking for some advices from proff. programers and i found some videos by Dr.Andrew N.Harrington from chicago on http://anh.cs.luc.edu/python/hands-on/ ..

Member Avatar for Schol-R-LEA
0
371
Member Avatar for Fo.katia

Hello guys, I really need help with this one. Can you please help me create a program in Python that displays information about a rectangle of any size. Input: two mouse clicks for the opposite corners of a rectangle Output: Draw the rectangle. Print the perimeter and area of the …

Member Avatar for vegaseat
0
2K
Member Avatar for OnEaglesWingsjf

What's wrong with: def project_to_distance(point_x, point_y, distance): dist_to_origin = math.square_root(point_x ** 2 + point_y ** 2) scale = distance / dist_to_origin temp1= point_x * scale temp2= point_y * scale print temp1, temp2 print project_to_distance(2, 7, 4)

Member Avatar for vegaseat
0
325
Member Avatar for shammi.khan.73

Right now I'm trying to create an oppish translator. That is, after a consonant or several consonants in a row, you add 'op' to those letters. As an example, cow would become copowop or street which would become stropeetop. This is what I have so far: def oppish(phrase): #with this …

Member Avatar for Gribouillis
0
364
Member Avatar for lewashby

I'm trying to add /home/garrett/bin/libpy/ to my python path so I can import my own libraries, I would also prefer not to overwrite the default python path but rather append my own path to the default. When I try to `echo $PYTHONPATH` or `$PYTHONHOME` I get nothing and even if …

Member Avatar for Gribouillis
0
645
Member Avatar for psichoman5

I have a problem with concatenate strings in pyhton. I need to concatenate the string clave and cadena_aleatoria(x) while cadena_inicio is minor than 256. This is my script: Any help? .Thanks! import sys import random x = random.randint(0,9) def cadena_aleatoria(x): cadena = [] cadena.append(x) while len(cadena)<10: x = random.randint(0,9) cadena.append(x) …

Member Avatar for Gribouillis
0
177
Member Avatar for sritechprasad

Hi, What is the meaning of the code lines in python. How a single variable like "argv" can be assigned to multiple variables "script and filename". Python Code: **from sys import argv script, filename = argv**

Member Avatar for Gribouillis
0
174
Member Avatar for davidbr

Hi, I wrote a small app which have some different pages but now i have a problem with update dynamically a label text from one of the pages. I would highly appreciate if anyone can have a look and maybe help me... I want to update self.label1 from pag01 class …

Member Avatar for davidbr
0
8K
Member Avatar for NITHIN171
Member Avatar for fatalaccidents

Hello all, My question is hopefully particular enough to not relate to any of the other ones that I've read. I'm wanting to use subprocess and multiprocessing to spawn a bunch of jobs serially and return the return code to me. The problem is that I don't want to wait() …

Member Avatar for ~s.o.s~
0
4K
Member Avatar for saimasiddiqui

I am taking my very first programming class ad kind of stump on the problem mention in this post.. In coding I only got so far as what shows here.... 2. Write Python statements corresponding to the following: a. Assign to variable flowers a list containing strings 'rose', 'bougainvillea', 'yucca', …

Member Avatar for Gribouillis
0
1K
Member Avatar for Gribouillis

This snippet defines a function `printat()` which adds line and file information to the normal `print()` function output. The intended use is a quick and dirty debugging information for everyday's use. A more complete solution is to use a logging/debugging/tracing framework.

Member Avatar for Gribouillis
5
876
Member Avatar for tubs1

Hi All, Is GitHub the "gold standard" for finding open source scripts online for people to use in their own development? Where else do people look? Thanks, Tubs

Member Avatar for chriswelborn
0
197

The End.