Questions tagged as 'python'

2
answers

Set width and height in text box

To expand knowledge, I decided to start a new programming language, Python, and I caught the following situation, I have a screen with some elements and a textbox of type Entry . To set the text box, I used the following code: s...
asked by 11.09.2016 / 21:52
1
answer

Problems importing cx_oracle in python 3.4 64 bits

I have a problem with cx_oracle in python 64 bit. I installed this version of cx_oracle: cx_Oracle-5.2.1-11g.win-amd64-py3.4. But when importing in python import cx_Oracle , the following error occurs: Traceback (most recent call last):...
asked by 24.05.2016 / 20:03
1
answer

Calling python script through a php script accessed by the browser

I have a php script that will get uploaded videos and I would like to convert these videos using ffmpeg. I created a python script that receives php parameters and calls ffmpeg to do the conversion. index.php <?php $data = array('fil...
asked by 16.11.2014 / 02:29
2
answers

Decoding of file in Python

I have a file that is completely written so after my crawler also written in Python I have saved the data in it: b'N\xc3\xa3o n\xc3\xa3o n\xc3\xa3o, n\xc3\xb3s iremos sim!' I wonder if there is any way I can get the encoding out of th...
asked by 21.04.2016 / 00:00
1
answer

Calculating the minimum, maximum, median and median in python

Error calculating minimum: File "C:/Users/Administrador/Desktop/chicago_bikeshare_pt.py", line 273, in <module> assert round(min_trip) == 60, "TAREFA 9: min_trip com resultado errado!" Code: # TAREFA 9 # TODO: Ache a duração...
asked by 14.06.2018 / 21:36
1
answer

Do not let user have access to data of a script

I have a script that was generated in python and calls functions in R . At first it was developed for internal use, but now they are planning on releasing it for customer use. But they do not want users to have access to the calc...
asked by 17.11.2015 / 17:14
2
answers

Problem connecting MySQL in Python 3.4

I just installed my virtual environment, I installed PyMysql and created a project, but when trying to start a python manage.py startapp nome APP, the following problem occurred: Error loading MySQLdb module: No module named 'MySQLdb'...
asked by 29.09.2015 / 04:37
1
answer

How to copy the path of a selected file in Window Explorer?

How to copy the full path containing the file name to the clipboard using shortcut
asked by 28.08.2015 / 18:05
1
answer

How to create multiple homepages in a single portal in Plone?

In a Plone portal, as in any CMS, the content is inserted as images, files, folders, pages, news, etc. All of this is accessed through a "HOME" home page with menus and content that directs the user through the portal ... Is it possible to cr...
asked by 19.08.2015 / 18:08
1
answer

How to delete components of an image using python?

I am a beginner in python and would like to know how to remove components (red, blue or green) from an image using python, I downloaded some image processing libraries (like opencv). I would like to know if there is any function that does this i...
asked by 03.12.2017 / 13:56