Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
86% Quality Score
Upvotes Received
6
Posts with Upvotes
6
Upvoting Members
4
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
~40.7K People Reached
About Me

--It is the mark of an educated mind to be able to entertain a thought without accepting it.(Aristotle)--

Interests
[CODE][/CODE]
Favorite Tags
Member Avatar for -ordi-

[CODE]# -*- coding: utf-8 -*- from PyQt4 import QtGui from PyQt4.QtCore import * import sys import os class VideosToMp3(QtGui.QWidget): def __init__(self, parent = None): super(VideosToMp3, self).__init__(parent) ''' Labels and GUI ''' extension = QtGui.QWidget() download_label = QtGui.QLabel("Enter YouTube video URL:") self.download_line_edit = QtGui.QLineEdit() file_label = QtGui.QLabel("Enter file name (optional):") self.file_line_edit …

Member Avatar for Ha
0
632
Member Avatar for linuxoidoz

Hi, I have a window and open another window with a button. Then, when the other window is closed I need to update some fields in the first one. Here's what I currently do: MainWindow: [code=python] ... self.connect(self.actionCustomFactors, SIGNAL("triggered()"), self.OnCustomFactorsTriggered) ... def OnCustomFactorsTriggered(self): self.customWin = CustomWindow(self.factorsFile) self.customWin.show() self.connect(self.customWin, SIGNAL("destroyed()"), self.OnCustomWinClosed) …

Member Avatar for linuxoidoz
0
12K
Member Avatar for ITgirl2010

[code=php] class Item(object): def __init__(self, ID, name, price, stock ): self.ID = ID self.name = name self.price = price self.stock = stock def getID(self): return self.ID def getName(self): return self.name def getPrice(self): return self._price def setPrice(self,value): self.price = value def buyStock(self, howMany): self.stock += howMany def sellStock(self, howMany): if howMany …

Member Avatar for TrustyTony
0
117
Member Avatar for G_S

Hi, I've been working a lot with text widgets lately, and I have posted several questions here. Again, thanks for all your help. This time I'd like to post something I found out, so you can help me improve it. My program consists of two textboxes. The texts inserted in …

Member Avatar for G_S
0
134
Member Avatar for zentropy

Does anybody know how to get data from the ethernet port? Is there a library for it? I don't really know how networking works Basically there is going to be a microcontroller sending data over ethernet, and I want to get the data it sends and write it to a …

Member Avatar for tzushky
0
273
Member Avatar for tzushky

Hi everybody, New adventure question: if you know how macros act in C, is there such a behavior in C? Basically the most important feature I'm looking for is similar to this: [CODE] #define MY_C_MACRO(x) {if (x>0) x++; else return} [/CODE] Such a macro would cause the function where it …

Member Avatar for tzushky
0
261
Member Avatar for tzushky

hi everyone, I have a tiny problem with a simple implementation: - i have a main window with a table in my central widget - i want to add stuff in the table gradually, and I allow only the 1st cell (index 0) of each row to be selectable. - …

Member Avatar for woooee
0
796
Member Avatar for web_test

I was wondering if anyone helps me in the following case..? There're two prgs A.py and B.py A.py has two classes class x class y and class y has some print statements. I want to import 'class x' to B.py and using the following statement in B.py from A.py import …

Member Avatar for tzushky
0
109
Member Avatar for tzushky

Hi all, This is not a post about simply recvering user input with raw_input() and then using eval(), nor for input() use . I remember having used this once, but can't get a hold of the old code so I turn to you for fresh ideas. I am planning to …

Member Avatar for Gribouillis
0
365
Member Avatar for tzushky

Hello hello, This post is half related to Python because it is about its automatic documentation generation. I have been playing with Doxygen for a while in C, it was adapted to Python in a second evolution stage a while ago. However after reading a lot of small examples, and …

0
82
Member Avatar for tzushky

hello, Here's a simple question I want to clear up. We all know that we can use the name of an array as the pointer to that array, and that a pointer holds the address to the variable named. What I'm doing is this [CODE] //somwhere in the code uint8_t …

Member Avatar for Narue
0
3K
Member Avatar for mahela007

What is a process in computer science? I've tried googling but there were no useful results. I seem to recall that an application may consist of multiple "processes" but that's all I know.

Member Avatar for kizmarbie
0
107
Member Avatar for Bankai Hikari

I am currently designing a DHCPD GUI for my final major project at university but i cant find anything about whats the best language for text file parsing. I am obviously trying to parse the DHCPD.conf file and edit it accordingly. Thanks!

Member Avatar for WaltP
0
972
Member Avatar for tzushky

Hello hello, First of all I was thinking that some of the experts around here could actually start an exhaustive discussion about peripheral driver development for newbies or unexperienced, such as yours truly. I find that theory is in many places, registers of classic peripherals are found also, but never …

Member Avatar for Salem
0
134
Member Avatar for tzushky

Hi and sorry for posting this here, there's no good section for it so if the admin decides to take it out , I get it... My colleagues and I have started a new company and we're looking into getting a teleconference service, line , whatever it's called. We have …

Member Avatar for pritaeas
0
139
Member Avatar for tzushky

Hi, Simple but driving me nuts. I am trying to create a table of pointers to already defined structures. But I can't find correct directions and I'm not used to this so HELP pliz! I managed to do it for functions, for some reason I can't find how to do …

Member Avatar for Narue
0
184
Member Avatar for tzushky

Good morning coders !, I stumbled accross an initialization this morning and even though I get it , it's not 100%. I'll simplify it this way: I have an array declaration: [CODE]uint8_t MyArray[MAX_SIZE][/CODE] I have a linked list structure: [CODE]struct MyLL{ struct MyLL * next; struct MyLL * previous; uint16_t …

Member Avatar for tzushky
0
480
Member Avatar for bhanu1225

Hello All. I created a login form, which has two fields named "USER ID " & "PASSWORD". Here, i took 8 character length for USER ID field. I would like to take "THE" as first three characters as constant in USER ID field. So, is it possible to do it? …

Member Avatar for bhanu1225
0
72
Member Avatar for tzushky

Hello, I' ve been having the following problem: - my OS is Centos - I have python 2.4 installed (and several packages in it too, like yum, ...) - I have installed python 2.6 - I have taken out all python2.4 executable references in usr/lib so that only python 2.6 …

0
83
Member Avatar for tzushky

Hello , I have had a little surprise and maybe because I haven't read the manual well enough or can't understand all the underlying details. Imagine a small class and another file's main using an instance of that class. If I try to modify (not define !) an INEXISTANT attribute …

Member Avatar for Gribouillis
0
214
Member Avatar for tzushky

Hi, Something new from me: I have an application which can act as server and client (launch them on separate PCs). I need the server stdout because it displays some data for evaluating their communication. I start the server through a [B]subprocess.Popen[/B] giving its stdout to [B]PIPE[/B] [CODE=Python] from subprocess …

Member Avatar for Gribouillis
0
13K
Member Avatar for tzushky

Hi again, I am trying to do something really sillya nd it isn't working:( I have a main where I want to start two threads using the same handle function, but the second thread generates the following error: Unhandled exception in thread started by Error in sys.excepthook: Original exception was: …

Member Avatar for tzushky
0
133
Member Avatar for Jadellll

Hi, I'm looking for the module that floor() is located in. I would have assumed it would be loaded from the path, but after trying several times, its not. Also, while I'm at it, is there a way to permanently add things to the path. So I can add my …

Member Avatar for Gribouillis
0
146
Member Avatar for Seagull One

Hello again, everybody. Now that I've just about learned all I can for programming my robot with 'smarts' (I think), I think I'm ready for a bigger challenge: Having my robot program aspects of itself. Right now I'm going to try to implement it into my robot's human socialization program. …

Member Avatar for Seagull One
0
447
Member Avatar for tzushky

Hello, long time no see... I've been getting along fine with Python lately and I just need to ask you a question: Is it possible to just write to, NOT OVER , an Excel file, in a certain area, using a certain python module?. This way results from an application …

Member Avatar for Gribouillis
0
2K
Member Avatar for tzushky

Hello again, I have the following situation: I have a script which allows the commands of several instruments. for some of them, their configuration is easy and simply launching the application with [B]os.system()[/B] or through [B]telnetlib [/B]allows me to do what I need. But I have stumbled across something which …

Member Avatar for tzushky
0
153
Member Avatar for darkMatter2008

Hi all, I'm wondering if it is possible to convert an object reference to a string and vica versa? Thanks

Member Avatar for Gribouillis
0
102
Member Avatar for tzushky

Hello, this type of structures are confusing. I hav been working with C for a while but this subtlety is yet unknown. I have come accross such a structure in a program where suposedly it will be used for FIFO management: [CODE=C] typedef struct FIFO_TAG{ struct FIFO_TAG *NextElement; }FIFO; [/CODE] …

Member Avatar for tzushky
0
270
Member Avatar for tzushky

Hello hello, I am writing to you because I am having trouble obtaining something: I know it should be doable, but can't seem to make an example. I need to be able to run scripts from another central script. And as i' ve been reading, apparently they mustn't be imported …

Member Avatar for woooee
0
85
Member Avatar for tzushky

Hello, Here I go again. I have the simplest of ideas...yet cannot seem to find a solution to implement it: [CODE=Python] from socket import * import time BUFSIZE = 256 IP = 'localhost' PORT = 25000 ADDR =(IP, PORT) tcpCliSock = socket(AF_INET, SOCK_STREAM) tcpCliSock.connect(ADDR) tcpCliSock.send('I want a response from you …

Member Avatar for tzushky
0
141