4,305 Posted Topics

Member Avatar for joustwilliams
Member Avatar for Reverend Jim
Member Avatar for vegaseat

Just the very basics on how to draw a rotated text using the Python GUI toolkit PySide (public PyQt). Please experiment and embellish.

Member Avatar for vegaseat
2
2K
Member Avatar for mattster

It depends which forum you were hanging out, "nahhhh-roooo" was my favorite. This user could be as scolding as my granny.

Member Avatar for vegaseat
2
198
Member Avatar for silverdust
Member Avatar for Ravi_exact
Member Avatar for samuel1991
Member Avatar for PrimePackster
Member Avatar for Chtaylor5201
Member Avatar for vegaseat
0
426
Member Avatar for sneekula

Here is one way that I use frequently ... """ tk_setup.py Using cx_Freeze with Python33 to package a Tkinter GUI toolkit program to an executable file (.exe in Windows OS). Module cx_Freeze also is available for Unix systems. Put this setup program and your Tkinter program file into the same …

Member Avatar for vegaseat
0
2K
Member Avatar for fonzali

Did you install it? http://www.pyzo.org/downloads.html#installation-instructions After installation click on the pyzo icon to start up their nicely made IDE.

Member Avatar for fonzali
0
344
Member Avatar for dternity

Take a look at ... https://www.youtube.com/watch?v=ujOTNg17LjI and https://www.youtube.com/watch?v=mTmJfWdZzbo

Member Avatar for vegaseat
0
295
Member Avatar for grinnygrindel

You might want to post that under Hardware & Software Microsoft Windows

Member Avatar for vegaseat
0
118
Member Avatar for psichoman5

One of the ways would be to use slicing ... ''' matrix_slice101.py slice a 5x5 matrix out of a 10x10 matrix ''' # matrix 10x10 matrix10x10 = \ [[10, 11, 12, 13, 14, 15, 16, 17, 18, 19], [20, 21, 22, 23, 24, 25, 26, 27, 28, 29], [30, 31, …

Member Avatar for vegaseat
0
259
Member Avatar for fatalaccidents

You might want to take a look at: https://docs.python.org/dev/library/concurrent.futures.html

Member Avatar for vegaseat
0
492
Member Avatar for Jack_9

Try something like this ... import subprocess # use the full path you have scriptfile = r"C:\PortablePython3.2.5.1\Scripts\sqlmap.py" python3 = r"C:\PortablePython3.2.5.1\Python-Portable.exe" cmd = '-u "url.com" --batch' subprocess.call([python3, scriptfile, cmd])

Member Avatar for HiHe
0
3K
Member Avatar for humorousone

Microsoft has bought up games in the past and simply stopped development. "Age of Empires" sticks out in my lame brain. I always though that game had quite a potential.

Member Avatar for DeanMSands3
0
371
Member Avatar for Anon19950393

If you have a stuffy audience then humor, particularly forced humor, might go over like a lead balloon. Otherwise simply google for the category of jokes and pick some that fit.

Member Avatar for vegaseat
0
393
Member Avatar for castajiz_2

I am not a programmer, but I have used programming as a tool for many years to solve science problems, cost analysis, processing of large medical data sets, image processing, plotting and graphing and so on. My advice is to get involved in a meaningful project and apply your programming …

Member Avatar for vegaseat
0
267
Member Avatar for Tcll
Member Avatar for oussama_1
Member Avatar for Warrens80
1
367
Member Avatar for Subin raj
Member Avatar for valestrom
Member Avatar for rebekah.stacy1

Finding the lowest, highest, total, and average of the numbers in a list is easy as slate already mentioned. To develop a user friendly way to enter 20 numbers into a list is your challenge.

Member Avatar for vegaseat
0
528
Member Avatar for ryannnnn

Using Python3 you are dealing with byte strings. So username has to be a byte string and **'\n'** has to be changed to **b'\n'**

Member Avatar for vegaseat
0
303
Member Avatar for msanzya

"Men won't read any email from a woman that's over 200 words long." ... Douglas Coupland

Member Avatar for gabrielcastillo
0
116
Member Avatar for Dawnbox

Printing i should not give you a string ... mystr = "str is a function in Python and should not be used as a variable name" for i in range(len(mystr)): print(i) Also explore the string functions isalpha(), islower() and isupper().

Member Avatar for Dawnbox
0
346
Member Avatar for vegaseat

With the advent of Python33 the module time has received a high resolution timer/counter. Here we use time.perf_counter() in a decorator to conveniently time two test functions.

3
2K
Member Avatar for krishna bharath
Member Avatar for Lardmeister

# another way ... # make string input work with Python2 or Python3 try: input = raw_input except: pass Now just use input() in your Python2 or Python3 code.

Member Avatar for vegaseat
2
222
Member Avatar for rk1993
Member Avatar for Avladimir

Organize your program this way ... input_data process_data output_results

Member Avatar for vegaseat
0
156
Member Avatar for expertmagician
Member Avatar for webecedarian
Member Avatar for Xantipius
Member Avatar for Lardmeister

I live in the Southwest of the USA, but really don't like Southwest food, it's just too spicy for my taste. My mother was Swiss, so I am used to meat and noodle dishes, probably with a French accent.

Member Avatar for vegaseat
1
298
Member Avatar for Wandaga1
Member Avatar for shaziya

Much more cumbersome, but an option is to use reverse, pop then extend ... mylist = [0,1,2,3,4,5,6,7,8,9] ix = 3 t1 = [] revlist = list(reversed(mylist)) for k in range(ix+1): t1.append(revlist.pop()) # pop element in position ix and discard t1.pop() # reverse again then extend revlist.reverse() revlist.extend(t1) print(revlist) # [4, …

Member Avatar for vegaseat
0
163
Member Avatar for tarmer

Python has an easy syntax, the trick is to get to know and use its many modules. A number of these modules are already written in higher speed C. Concentrate on your algorithms, you can always optimize for speed later.

Member Avatar for vegaseat
0
195
Member Avatar for OnEaglesWingsjf
Member Avatar for HiHe
0
127
Member Avatar for iConqueror
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

Another option, insert one element at a time. Do it in reverse order if you want to keep the insert position constant ... mylist1 = [1,2,3] mylist2 = ['a','b','c'] for e in reversed(mylist2): # insert each element e at index 2 of mylist1 mylist1.insert(2, e) print(mylist1) # [1, 2, 'a', …

Member Avatar for snippsat
0
176
Member Avatar for Jack_9

I assume all your modules have been properly stressed and tested using Python's unittest module. There was quite a nice article in Dr.Dobb's ... http://www.drdobbs.com/testing/unit-testing-with-python/240165163

Member Avatar for vegaseat
0
335
Member Avatar for sheelap
Member Avatar for ddanbe
Member Avatar for Lardmeister
Member Avatar for bumsfeld
0
296
Member Avatar for mcroni
Member Avatar for Myronz
Member Avatar for isla.rose.3
0
285
Member Avatar for bumsfeld
Member Avatar for bumsfeld
0
3K

The End.