- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 3
- Posts with Downvotes
- 2
- Downvoting Members
- 3
hi.I want play linux shells command with python.for example i did it: [CODE] def add(userName, pasword): import os os.system("useradd -d /home/%s -m -p %s %s"%(userName, pasword, userName)) [/CODE] but some where i have problem. for example when you want change the users password you have to send the command for … |
|
Re:
This 'sticky' thread is for working examples of Python GUI code. Note that most wxPython examples have their own thread. Please use comments in your code to help the reader. The example code should be usable as a template, so folks get a feel for the toolkit and can use … |
|
Hello dears. I need to play a music in my projects background. I did such below but it does not work. what is problem please? [CODE] class PlayMusic { private string cmd; private bool isOpen; [DllImport("winmm.dll")] private static extern long mciSendString(string strCommand,StringBuilder strReturn,int iReturnLength, IntPtr hwndCallback); public void Close() { … |
|
I am trying to convert a 2d image to 3d one in python. please introduse me some good source or if there is an open source program. Thanks alot. |
|
Hi every body. I want to make a topographical image from a 2d Aerial photograph. how can I do it in python? Thanks if help me. |
|
Hi dears. I wrote a program in C# with visual studio 2010 an now need to ensure that my program will work on any system with XP or seven or vista windows version. I used from .net & directX in my project. How can i compact it with an installer … |
|
Hello dears. I am using python 2.6 in Ubuntu 10.10. I need an interface that make me able to trace my project. for example portable python ver 1.1 has this ability. please intruduse me an interface that be compatible with my os. Thanks. |
|
Re:
You can download the matplotlib free from: [url]http://matplotlib.sourceforge.net/[/url] It has, amongst many other things, the module pylab that allows for high quality plotting of data. All you have to do is to feed it a list of x values and the corresponding list of y values calculated from the x … |
|
Hello friends. I need a good article or book that compare storage engins _such as MyISAM, InnoDB, Falcon and etc_. if any one know a good source please introduce me. Tanks if help me. |
|
Hello friends. In my project I need to know if some one is online or offline. and other problem is that some one are online but are invisible. At all how I can find the users state? for example users of yahoo or google. I realy know nothing about this … |
|
Hi Friends. I have an project with vs2005 and sqlserver2005.There is a page contain a combobox , a text box and two button.The combox items are my cost list that maybe thems count increase by user.how can I manage it? more about it: if person clicks the add button we … |
|
hi dears. I have an unicode data in a file.it is a persian text. I want to read it and after some change write it in another file. but when I read it, I face to some hexadecimal characters. what I have to do with them? Thanks. |
|
Re:
Hey, i need to make app that should take 10 chars from list. I tried it with range command but it's not working. [CODE] list = 'abcdefghijklmnopqrstuvxyzo' for list in range(10): print list [/CODE] And this code just prints numbers 0 to 10. So, is there some other command that … |
|
Hi dears. I want make relation with gsm modem. my first goal and main one is sending and receiving sms. _then I want go front.for example for mms sending and ..._ I want to do it on a linux server. please introduce me a suitable modula with it's tutorial or … |
|
Hi dears. I want to send a string as sms in gsm modem witch mixed from english and unicode word. for example: "hello in persian is 'سلام' in arabic is 'السلام'." now, how I can make a pdu format from this string and what change I have to make in … |
|
Hi dears. I am playing windows commands with python scripts. for example I did: [CODE] import os print os.system("ipconfig -a") [/CODE] but there is a problem with some commands.for example see this: [CODE] >netsh netsh>dhcp netsh>dhcp>scope 192.168.100.10 [/CODE] after playing the first one script, I have to come back to … |
|
hi dears. I am using Emu8086. I need to generating an array of random numbers. Are there any ready procedure or intrupt? if there are not, how can I do it? thanks. |
|
Hi dears. I am searching around a reporter for python. some thing such as crystal_report or stimul_report witch used for C# and some languages other. thanks. |
|
I found that in python we have no realy private attributes.we just can use _ or __.but these are not deny access to my attributes.some thing such as private variables in c++. Is it TRUE? Realy python is week in these? |
|
I have a code that plays fast _it's order is log(n)_.I have to meter it's play's elapsed time.I used from time.time() and time.clock() but they returned 0.I need a timer witch meter nano second. How can I do it? |
|
I wrote below code for my database connection but every time its catch part play.what is the problem? [CODE] public myDb() { canConnect = true; sqlString = "Connection Timeout=5;Server=127.0.0.1;Database=ghanat;"; dbConnect = new SqlConnection(sqlString); dbCmd = new SqlCommand(); dbCmd.Connection = dbConnect; dbAdapter = new SqlDataAdapter(dbCmd); try { dbConnect.Open(); MessageBox.Show("You connected", "Connection", … |
|
Hi dears.I want start making a web with python but I know nothing a bout web.and so don't know from where a have to start. I need a point to start and a few knowledge about webs programing foundation.please introduce me a suitable source for beginning. Thanks. |
|
I wrote a gui with qt and converted it into python.it came below. know I want to use the information witch user entered.for example the text boxes text or want decide around the buttons clicked or any thing else.at all how can i manage my qt forms data in my … |
|
Sorry I am asking a beginners problem between professional discussion.But I realy confused witch one is better.qt, gtk, wx, opengl or one else.please guide me with a clear comparison. Thanks dears. Editor ... moved from Re: Python GUI Programming (rule is: ask question in regular forum) |
|
Re:
I have a worker thread, and when the worker is done I want it to show a popup dialog. The sample application below demonstrates this. There are two buttons: a "Show dialog" button which immediately displays a dialog, and a "Do work" button which launches a worker thread. The worker … |
|
i have a datagrid .its name is dg and a button its name is btn. I want print my datagrids information by clicking on the btn. I need it urgent. |
|
I am sorry if it is simple or repetitive but I have problem with this. I make a play : I have python 2.6 or 3.0 a program in my c partition its name is test.py I want to compile it and it have to works in linux and windows. … |
|
Re:
[code=python] def prints(value, ..., seps='', ends='\n', files=sys.stdout): print(value, sep=seps, end=ends, file=files) print = prints [/code] Would this permently overwrite print or just overwrite it while my program is running? |
|
hello all. I have python 3 and want use mysql but i dont find mysqls modouls please say me a link. |