python – Tkinter error :( Attribute error: ‘Entry’ has no attribute ‘set’, ‘get’

estoy practicando tkinter, y estoy haciendo un programa que descargue videos, necesito poner si es un audio o un video en el ENTRY pero no me deja usar el metodo get y set:

import pytube
from tkinter import *

def ola():
    #no me sirven el get y el set :(

ventana = Tk()

ventana.title("Video Downloader")
ventana.resizable(False, False)
ventana.config(background = "blue")

opciones_label = Label(ventana, bg = "blue", fg = "white", text = "Escribe en que formato vas a descargar el archivo (audio, video): ", font = ("",10,"bold")).place(x=0,y=0)

opciones_texto = Entry(ventana, state = "normal", font = ("",10)),y=0)

examinar_boton = Button(ventana, width = 10, font = ("",13), command = ola, text = "Examinar").place(x=250,y=30)


Este es el error que me da COMPLETO:

Exception in Tkinter callback
Traceback (most recent call last):
  File "C:UsersMi usuario", line 1885, in __call__
    return self.func(*args)
  File "C:/Users/Mi usuario :v/OneDrive/Bibliotecas/Python/", line 6, in ola
AttributeError: 'Entry' object has no attribute 'set'

Me dice exactamente lo mismo cuando pongo get pero obviamente cambia el ‘set’ por ‘get’

AttributeError: ‘pygame.Surface’ object has no attribute ‘move’ [closed]

import pygame

def main():
    tela = pygame.display.set_mode((700,700))
    cor_branca = (255,255,255)
    cor_vermelha = (255,0,0)
    superficie1 = pygame.Surface((200,30))
    superficie2 = pygame.Surface((30,200))
    superficie3 = pygame.Surface((200,30))
    superficie4 = pygame.Surface((200,30))
    pacman = pygame.Surface((30,30))

    sair = False

    while sair == False:
        tela.blit(superficie1, (20,20))
        tela.blit(superficie2, (100,100))
        tela.blit(superficie3, (200,200))
        tela.blit(superficie4, (300,300))
        tela.blit(pacman, (400,400))

        for event in pygame.event.get():
            if event.type == pygame.QUIT: sys.exit()
            if event.type == pygame.KEYDOWN:
                if event.key == pygame.K_LEFT:
                if event.key == pygame.K_RIGHT:
                if event.key == pygame.K_DOWN:
                if event.key == pygame.K_UP:


unity – How can I use the gap range attribute slider to add/remove gaps between the units?

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class GenerateStairsUnits : MonoBehaviour
    (Header("Stairs Units Prefab"))
    public GameObject stairsUnitsPrefab;
    (Range(1, 2000))
    public int numberOfUnits = 1;
    (Range(10, 100))
    public int gap = 10;
    private int oldNumberOfUnits = 0;
    private int oldGapValue = 0;
    private List<GameObject> units = new List<GameObject>();
    private GameObject unitsParent;
    private GameObject Unit;

    // Use this for initialization
    void Start ()
        oldNumberOfUnits = numberOfUnits;

        unitsParent = GameObject.Find("Stairs Units");
        for (int i = 0; i < numberOfUnits; i++)
            Unit = Instantiate(stairsUnitsPrefab, unitsParent.transform);
            Unit.transform.localPosition = (i + 1f) * new Vector3(gap, 0, 0);
   = "Stairs " + i.ToString();
            Unit.tag = "Unit";

    private void Update()
        if(gap > oldGapValue)
            for(int i = 0; i < numberOfUnits; i++)
                units(i).transform.position = (i + 1f) * new Vector3(gap, 0, 0);

            oldGapValue = gap;

        if (numberOfUnits < oldNumberOfUnits)
            var res = oldNumberOfUnits - numberOfUnits;
            for (int i = 0; i < res; i++)
                Destroy(units(units.Count - 1));
                units.RemoveAt(units.Count - 1);

            oldNumberOfUnits = numberOfUnits;
            for (int i = oldNumberOfUnits; i < numberOfUnits; i++)
                Unit = Instantiate(stairsUnitsPrefab, unitsParent.transform);
       = "Stairs " + i.ToString();
                Unit.transform.localPosition = (i + 1f) * new Vector3(gap, 0, 0);

            oldNumberOfUnits = numberOfUnits;

I tried inside the Update this :

I want that if I move the gap slider range to the right that it will add more gaps between the existing units and new units if adding new units.

if(gap > oldGapValue)
                for(int i = 0; i < numberOfUnits; i++)
                    units(i).transform.position = (i + 1f) * new Vector3(gap, 0, 0);
                oldGapValue = gap;

but this part of code does nothing it’s not adding any gaps and I’m not sure also how to remove gaps if moving the rang slider to the left for example if the gap value is 50 and I removed it to the left and now the gap value is 23 then the gaps should be now 23 between the existing units and if adding new units then add 23 gap between each new unit.

how to filter configurab;e product by using child product attribute for REST API in searchcriteria

How to filter parent product by its child product attribute in REST API
v1/products/- endpoint

How can I add a custom search endpoint in this endpoint (v1/products)

Please guide me. Thanks

adminhtml – Email template get category content tab form select drop down attribute in Magento 2.3.1

All Email template get category content tab form select drop down attribute in Magento 2.3.1


$eavSetup->addAttribute(MagentoCatalogModelCategory::ENTITY, 'form_select', (
        'type'         => 'int',
        'label'        => 'Form Select',
        'input'        => 'select',
        'sort_order'   => 130,
        'source'       => Template::class,
        'global'       => ScopedAttributeInterface::SCOPE_STORE,
        'visible'      => true,
        'required'     => false,
        'user_defined' => false,
        'default'      => '1',
        'group'        => 'Content',


<field name="form_select">
        <argument name="data" xsi:type="array">
            <item name="options" xsi:type="object">VendorModuleModelSourceTemplate</item>
            <item name="config" xsi:type="array">
                <item name="required" xsi:type="boolean">false</item>
                <item name="validation" xsi:type="array">
                    <item name="required-entry" xsi:type="boolean">false</item>
                <item name="sortOrder" xsi:type="number">90</item>
                <item name="dataType" xsi:type="string">string</item>
                <item name="formElement" xsi:type="string">select</item>
                <item name="label" translate="true" xsi:type="string">Form Select</item>

enter image description here

can i use one product collection for multiple attribute filtering?

I have a product collection based on category.
Can I use addFieldToFilter (color) for both equal and not equal.
Color with given value as one set of collection and color which is not equal to given value as another set of collection.(both values are same)

Please guide me.

routing – Attribute a static public ip to a pod for outband traffic

In my datacenter , i implemented a kubernetes infrastrastructure with 3 workers and one master node . Actually i’m looking to build 5 pods running postfix mail server , but because of risking to be blacklisted i’m looking to assign a specific public ip to each pod for the outband traffic I don’t know if it’s possible to do that and is there any solution to nat the pod addresses ??

8 – Get the value of the “src” attribute

I am having hard time with getting the value of YouTube video thumbnail URL, in order to use it as background image in a template file.

I created a video content type and added a remote video field (field_url_vid2). The output format is thumbnail.

{{content.field_url_vid2}} gives the full HTML markup, but I just want the value of the src attribute.

terminology – Specifying resources through dynamic attribute access: Term for this technique?

In languages like Python where it’s possible for an instance to resolve by applying a function to the string "foo", some libraries take advantage of this feature to let the programmer specify a multi-level resource through chained attribute access, without defining the attributes ahead of time.

Some examples:

  • The xmlrpc.client.ServerProxy class in Python’s standard library lets one call an XML-RPC method on a client instance by writing The attribute is not hardcoded into the client; rather, it is created “on demand” when it is accessed, and likewise for

  • The agithub and slumber Python HTTP libraries both provide an API in which the URL path and HTTP method for a request are specified via chained attributes. For example, to make a POST request to /foo/bar, one writes The client object has no knowledge of the valid URL routes.

Is there a name for this technique or feature?

Getting ‘The XML in file "module-inventory-sales/etc/communication.xml" is invalid: Element ‘topic’, attribute ‘is_synchronous’:

i had upgraded my magento from 2.2 to 2.3 , but after doing that i m getting given below error.
please let me know whats wrong

enter image description here