| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
Comments:
<0> well I trying to creat GUI element with python <1> even that is exactly the same as on other systems, unless you want to use something that only works on Windows (like MFC) <1> PyQT, wxPython, Tkinter and PyGTK all work the same on Windows as on other systms. <0> ahum well I dont have that much experience with python yet <2> hmm, i can compare directly a caracter with a number directly ? like char >= 48 where 48 is caracter ascii code? <1> holo: ord(char) >= 48 or char >= chr(48) <0> Yhg1s :: what is best used for windows scripting with python I downloaded pyWin or some kind of lib <1> DaRamirez: for windows *scripting*, why do you need a GUI? <3> hi. im new to OO scripting. to be a bit more percise (please excuse my bad enligsh), i have a text file with a lot of elements, each elements have sevral atributes. i want to create a cl*** where i can have a list of elements, and have a subcl*** where i can store and process the atributs of each element. can you give me a quick example or point me to some easy to read docs (english is not my first language). i have no idea of how to attack this pr <0> I created a data merging script and like to create a little window that let you set advanced options <1> DaRamirez: 'pywin' is a library of Windows-specific API calls (mostly). it's useful for extracting Windows-specific information, and doing windows-specific tasks, but it won't help you make a GUI (well, not much.) <1> DaRamirez: just pick a windowing toolkit and read a tutorial on it. <2> the english doesn't seem that bad <0> wich one would you recommand ? <4> DaRamirez: we cant recommend any <4> DaRamirez: we DO NOT know which one is the best for you
<0> kbrooks :: mean ? <1> DaRamirez: I'm the wrong person to ask, I don't do GUI's. For Windows, PyQT and wxPython are popular (because of their 'native look and feel', whatever that means.) <4> DaRamirez: only you know <5> Can modules also be called libraries? <5> Or are libraries only a C/C++ thing? <0> Well I dont know if ya know pspad ? but I creating couple off extension for it and nead to be enable to create GUI element <1> pianoboy3333: they are sometimes called libraries, yes. <0> need* = nead <1> never heard of pspad. is it an existing Python application? <4> pianoboy3333: modules are modular, therefore they are libraries <5> But are libraries modules? <0> Ahum na is a delphi application but can be extended using python <1> pianoboy3333: depends on the library. <4> pianoboy3333: depends <3> guys.. any tips for my problem above? <0> like an internal scriptin language for manipulating en creating self defined functions <1> DaRamirez: then it could be that pspad wants Python code to use a specific gui library, or even a pspad-specific API. <1> DaRamirez: or it could be that pspad doesn't like the Python code it embeds to be a GUI (it could disrupt the operation of pspad.) <0> well pspad has a couple of specifiek functions of its own to be called true python but for creating GUI elements there is no real support <2> DaRamirez, pyQT uses QT, and QT in windows is paid if you want the program for commercial purpposes ( the licence costs over 250$ for each programmer and and last 1 year i think) <6> how can i have methods in cl***es i can call without first instantiating the cl***?? <1> Loady: I'm not sure I understand the design, but it seems to me that you've planned to far ahead. Start smaller, by first making your cl*** hold everything, then split it up into subcl***es. <0> holo : no not really I just want some kinde lib / api that enables me to create window en form elements easly with out creating 100 lines of code <6> sqlobject.SQLObject.createTable() does it... <4> squirrelpimp: cl*** method <1> squirrelpimp: depends. if they aren't really methods (they don't do anything with the cl*** or instances of the cl***), a solution would be not to put it in the cl***. <1> squirrelpimp: if it's a method that operates on the cl***, make it a cl***method. <6> yeah... it doesn't operate on the cl***... <6> but somehow belongs to it... <2> DaRamirez, grom what i heard, not personal experience, pyQT is the most native for python and it integrates nicely in the system touch & feel <1> squirrelpimp: no, sqlobject.SQLObject.createTable is a cl***method. <2> s/grom/from <6> Yhg1s: but it works without an instance of my derived cl***... <1> squirrelpimp: yes. it's a *cl**** method. not a regular method. <2> DaRamirez, i meant look & feel, but whatever :s <1> squirrelpimp: a cl***method is a method that doesn't take an instance as first argument, but the cl***. It can be called on both an instance of the cl*** (as usual), and on the cl*** directly. <0> holo thnx but you said it is a paid lib and i'm kinde lookig for a free one <2> DaRamirez, its paid for commercial uses only <0> Okee could you give me an url to it ? <7> no, it's not. it's paid for _proprietary_ use <8> squirrelpimp: there is also the staticmethod decorator <7> if your app isn't under GPL compatible license, you can't use Qt without paying <2> Juhaz, ha ok <0> okee mmm, well any alternitives <2> well, it's a nicer licencce <2> *licence <3> Yhg1s: ok. this is what it is. im creating a helper app for apt-get and all information for the installed apt packages is in a file. its a flat file. where each package has a segment, witch contains a few atributes as version, description etc. i need to make a cl*** for each package. so far so good. then i need to have a cl*** for the entire database. this is where im stuck. how do i do this? <7> haven't looked it, but pspad license itself could restrict how the plugins can be restricted <0> Ahum well pspad is a free application <1> DaRamirez: that doesn't mean it doesn't have a restricted license <0> it is an editor that you can use for nearly any programming language and scripting <0> I never really understood that licence part :S <4> DaRamirez: link to pspad <0> www.pspad.com <1> Loady: I'm not sure I understand the dilemma. You create the cl*** to hold the entire database the same way as you create any other cl***. There's nothing magical about a cl*** that holds refereces to other cl***es -- that's what all cl***es do. <0> http://www.pspad.com <4> DaRamirez: freeware == free as in beer, not free as in speech <0> but wich one do you recommand then, since I dont really understand that licence part <9> hello all! <9> plz, someone can tellme how i can use audio on python? <9> note: the most latency-less way
<1> leleobhz: depends on what you want. <9> Yhg1s: i want to sounds noises <10> pygame <1> leleobhz: pygame has an audio layer, but it's somewhat limited. if you want more control, there are platform-specific modules (ossaudio, winsound) that you could use. <9> (!) <1> leleobhz: if you just want to sound noises, 'print "\x07"' will do it on most systems. <9> Yhg1s: yeap, but on a specified frequency <1> so you don't want to 'sound noises', you want specific things. So the possible solutions are restricted by your specific needs ;) <3> Yhg1s: could you be so kind to have a look at this. http://deadbeefbabe.org/paste/621 <9> hmmmm <1> Loady: what do you want package_db to hold? just a list of packages? no need for a cl*** then. Or a dictionary mapping package name to 'package' instance? just use a dict. <3> Yhg1s: ok, i need to create sevral databases. as im going to use it agaist available packages. i thought it would be better to have a cl*** for the db or list as well. so that i can use it more than once. or do you think that is a bad idea? am i over complicating things? <3> Yhg1s: as this is my first cl*** and OO expirence, i might be overdoing things. im realy trying to get in the OO mindset. <11> hi, i'm new to python though not to programming. i'm looking for a good language to write some computer-aided music composition software that runs on windows. can this be done with python, library-wise &c? pointers to audio-related libraries would be appreciated. <12> modulus: I cant help you with that really, but do you mean you want to place out sounds on a/several timelines or how? or do you want more "do stuff with sound waves"? <11> well, initially i want to use the OS's midi capabilities, later i'll be wanting to do some realtime synthesis although that's secondary at this time. <11> so, more to do with talking to the OS midi interface than playing wave files or so <13> mmm <13> if in __init__ of cl*** 'MyCl***' I state : self.variable = value <13> can I retrieve it in any way in MyCl***:otherFunction() ? <13> I tried print self.variable but it didn't work <12> modulus: alrite.. sounds fun, dont know it tho. I've only played wave-files via win32api's PlaySound() :/ <11> hmm, i see. seems there's not much demand for this kind of thing on languages... <12> Jojosan: should work, but you have to declade otherFunction with argument 'self' first <13> Suszer, ok <12> modulus: maybe this is something: http://www.mxm.dk/products/public/pythonmidi/ <13> great ! <13> My first python server works :) <12> :D nice <13> (or seems to) <13> hehe, yep :) <13> now the PHP interface to it <13> another story :) <12> Jojosan: what kind of server is it? <13> a kind of playlist server, for my radio. <12> alrite.. that's cool <13> it's designed to control remotely my playlist :) <8> Jojosan: you are cruel :) giving your python server a php interface <14> hi, does anyone know a Python Soap library that supports DIME attachments? <11> hmm, thanks, checking. <13> so that my listeners can have what they want <13> ChrisLong, never used python for websites <13> I could heh :) <1> Loady: it seems to me that you are overcomplicating things, yes. I'd use a dict to map package-names to their 'package' instances. If that isn't adequate, you can later change it from a dict to a special cl***. <13> I would keep using twisted <13> (btw, it's also my first server) <13> (and my first time in object oriented programming) <5> Can anyone here help me with optparse? <1> pianoboy3333: not unless you ask a question. <12> Jojosan: sounds like a brave thing to do as a first project! wishing you all luck <13> Suszer, seems to work :) <13> (I'm used to programming, just new to these concepts) <12> Jojosan: do you actually _play_ the music in the program too? or does your program use a daemon or something <13> it plays the sound in it. <13> Through some code from pymad and pyogg <13> (just the play part) <13> still not tested, for the sound output. <12> haha ;) what OS? <5> Yhg1s: ahhh, i forgot... <13> Debian GNU/Linux <13> I stream my alsa output to an icecast2 server through ices2 <5> Yhg1s: ah, ok my rss reader takes --cli as an argument, but then also after that the name of the site to parse, how does that work out? <12> ok, I actually got a thunder storm here, cya later people <5> Yhg1s: here's what I'm working on: http://python.pastebin.com/743016 <11> hmm, unfortunately: Currently it cannot read and write to midi ports. So no real time event handling is possible. <1> pianoboy3333: --cli is an option, and the site to parse is an argument. optparse only parses the options, and leaves the rest of the arguments alone. <2> why is here a syntax error? : if ord(file_char = 48 and ord(file_char) <= 57: <2> it points to ":" <2> LOL <2> i saw now <2> vim has colors and i didn't see it.... i don't understand <2> grr python forces atribution before test structures right? <1> holo: it wut wah huh? <5> Yhg1s: there's no way to say that in `muirss --cli http://piano.juicemedia.tv/rss/pastebin.php' that it can parse that site into someting? but I also need it to return that it's using --cli...
Return to
#python or Go to some related
logs:
#linux #centos povaddict debian -site:boincstats.com ssjs gentoo chown hidden files #css BBL PCMCIA.drivers disable-pcmcia debian vmware cc1: internal compiler error: Segmentation fault username password ubuntu 6.10*
|
|