Skip to main content

All Questions

Tagged with
0 votes
0 answers
27 views

How to populate a matrix assigning values based on placeholders?

I have a matrix populated with letters as placeholders. I need these letters to be substituted with integers ranging from 0 to 9. Each of these integers will correspond to one digit of a number formed ...
marty's user avatar
  • 1
0 votes
1 answer
116 views

How to get the input of a placeholder in Flask

This is part of my code in flask, written in Python ...output += '''<div class = recsettings> Recording <div class = recduration> change recording ...
Kevin Keller's user avatar
-1 votes
2 answers
57 views

What is the problem in this code? I am getting a problem in this piece of code

a = float(input("Enter first number: ")) b = float(input("Enter second number: ")) print('The product of {first} and {sec} is: ',a*b).format(first = a, sec = b) print('The sum of {...
Rudransh Joshi's user avatar
0 votes
1 answer
200 views

Multiple placeholder SQL in Python script not working [duplicate]

I'm trying to insert two dates to an SQL query, but the script gives me the following error: There is an error in the Oracle database: ORA-01036: illegal variable name/number starting_date='01/01/2023'...
Denise Lavezzari's user avatar
1 vote
0 answers
170 views

TF1 to TF2 migration

Hello I am new to tensorflow and I am working on a code that I would like to migrate from tensorflow 1 to 2. I have this line of code: x1 = tf.compat.v1.placeholder(tf.float32, [], name="x1")...
TOP1's user avatar
  • 143
0 votes
0 answers
34 views

How to preformat a string with placeholders depending on the number of input

I have 2 lists of 3 values (c_0, c_1, c_2) and (b, t_pen, d). I take the minimum of the multiplication between the values of these lists such as: c_0 * b, c_1 * t_pen or c_2 * d neglecting 0 ...
Slytherizz's user avatar
2 votes
2 answers
5k views

Selenium - How to find an element by part of the placeholder value?

Is there any way to find an element by a part of the placeholder value? And ideally, case insensitive. <input id="id-9" placeholder="some TEXT"> Search by the following ...
Mike's user avatar
  • 477
1 vote
1 answer
107 views

What is causing this strange focus behavior with my PlaceholderEntry class?

I've put together a simple class that inherits from ttk.Entry in order to toggle some placeholder text on focus events (based on this answer). The odd thing is that my placeholder text is only cleared ...
JRiggles's user avatar
  • 6,881
0 votes
0 answers
27 views

How to use placeholder inside a function? [duplicate]

I've made a function that looks like this: def sok_funk(self, lagnr, skivenr, dato, x): self.lagnr = lagnr self.skivenr = skivenr self.dato = dato self.x = x ...
Tor Harry's user avatar
3 votes
0 answers
916 views

How to load yaml string placeholders for python?

I have a configuration file as config.yaml, that look like this misc.application_title: "ATT" data_dir: "${APP_DIR}/aux_data" I have a function in app.py where it loads the ...
iamniki's user avatar
  • 561
0 votes
1 answer
289 views

Python relative path or placeholder

I coded simple code to import merge filter calculate dataframe, but I can use only on my computer. How can I make it usable on any computer, via relative path or a placeholder? Code for import ...
Adi Šehić's user avatar
0 votes
1 answer
541 views

Python- PPTX Add_Chart 'Slideplaceholder" object as no attribute 'insert_chart

I am trying to insert a chart into a placeholder on a slide. I have tried everything and every variation of code ... any guidance would be much appreciated! from pptx.chart.data import ChartData from ...
dinolover56's user avatar
0 votes
1 answer
72 views

I want to know how to add placeholder to Django Modelforms?

I want to know how to add placeholder to Django modelform fields I have pasted here code from my models.py file and forms.py file enter image description here enter image description here
Aditya Dalvi's user avatar
5 votes
0 answers
583 views

In Python, can I specify a range of string indices in a return statement placeholder?

I'm practising using Python's .format method. The first block of code below can print first_name and the first letter of last_name. In the second block of code I was experimenting with the index in ...
Gospel77's user avatar
  • 153
0 votes
0 answers
124 views

Keep the QLineEdit's Placeholder even if the user types

How can I keep my QLineEdit's placeholder shown even if the user types? To extend this, I am creating a text box. I want to add an autocomplete feature to the input box. Now, the question is how to do ...
BladeOfLightX's user avatar

15 30 50 per page
1
2 3 4 5
7