In an oriented tree, the parent is the previous node before the node of interest. The word parent can then be used in countless abstractions of computer science. The container of contained graphic or logic items can be called a parent. The inherited class in OOP can be called the parent.
Questions tagged [parent]
2914 questions
0
votes
1 answer
Finding parent to element in XML using python
I am really struggeling finding the parent of an element I have searched for using this code, I am searching for "NOTE2"="CU008" in the parent which has the DESCR="RmTmp"
def SetAttribute(tag, rom):
for elm in…

Asgeir Bakke
- 1
- 1
0
votes
0 answers
Is there a way to add styling to a parent class based on number of children?
I'm looking for a way to style the parent "footer-wrapper" based on the number of children it has. Please note that I'm not able to change the html and its classes.
0
votes
0 answers
How to solve a multiple Parent Child dimension table?
After looking in Google for my problem, i want to tried it here:
i have to solve a problem by using SQL:
sample
I have Data with two columns: Parent and Child
A Child can also be a Parent for another Child.
Data:
Parent |Child
Home | Kat1
Home | …

Data_Analytics
- 1
- 1
0
votes
0 answers
Quering with powershell hardware object "parent" is empty while its not in windows device manager?
I'm using a powershell query with gwmi to retrieve some info on usb controllers, i can get most of the infos from the object properties, but the property "Parent" is returning empty, while in windows device manager its not empty.
Does someone knows…

DoomneT
- 1
- 3
0
votes
2 answers
Tkinter Canvas does not fill its Frame parent properly (Python)
I am trying to make a tkinter app with a smaller side menù on the left, this is how it should look like:
from tkinter import *
root = Tk()
root.geometry("700x500")
root.grid_columnconfigure(0, weight = 1)
root.grid_columnconfigure(1, weight =…

xWourFo
- 35
- 4
0
votes
1 answer
Instance an element from a parent class
I have the following structure:
-PARENT
--CHILD
--CHILD
--CHILD
--CHILD
Pretty straight forward. Now, I need the PARENT class to have a function such as createNewChild(id). The PARENT element has the following that each CHILD must override:
Public…

Freesnöw
- 30,619
- 30
- 89
- 138
0
votes
3 answers
how to import a class from a parent directory in actionScript 3
I have seen similar questions, but not this specific problem
I have a folder structure like this:
root
+ com
- classes
- class1.as
- class2.as
- other
- otherClass.as
+ folder1
- file.swf
- index.swf
I want…

foxvor
- 1
- 1
0
votes
1 answer
python what should we do instead of importing module from parent directory?
My folder tree looks like this:
project/
utils/
tools.py
sub_project1/
module1.py
module2.py
sub_project2/
module1.py
module2.py
I want to be able to use tools.py in my different modules in my sub-projects, but…

M.Tailleur
- 101
- 7
0
votes
1 answer
How to pass data from parent window to child in JavaScript?
First of all, I'm a rookie on JavaScript. I'm trying to pass a value taken in an input text from a parent window to its child when you press a button on the parent one. On the parent you have an input where you write a number and a button which…

Beon
- 1
- 1
0
votes
1 answer
React Child Inheritance
Should be simple, but for some reason, I cannot figure out this one. I just want a value defined in the Parent to be usable by the Child, but delivering the variable does not seem to work.
function Parent(props) {
const name='Jimmy';
…
0
votes
1 answer
How to pass asynchronous data to child component? Angular
I have a Parent Component where I make a http request, get Observable in return and subscribe to it :
this.bookingService.getBooking().subscribe((r) => {
this.booking = r['result'];
});
I pass the booking variable to Child Component like…

programmer24
- 31
- 5
0
votes
1 answer
React Native Update Parent Array from Child Component
I am having trouble updating an array that is passed as a prop into my child component. I have searched around but haven't found an answer that can directly solve my problem. My code is as follows:
App.js
import React, { Component } from…

tscott22
- 1
- 1
0
votes
0 answers
How to change/update className of a "nested" grandparent from a button, inside of a child component in react : SOLVED :
As the title says, I have a homepage which uses a map() function to map through an arrayList which holds the information about songs, like title, artist, songURL and img.
When I map() through it I will have many "songs" like you would have with blog…

Stian Larsen
- 23
- 6
0
votes
1 answer
Retrieving Parents and Children - Self Referencing Entity gorm
I have a table that have a hierarchy structure with a parent having many children and a children having many parents.
As an example the following struct:
type User struct {
gorm.Model
Name string
SubUsers []*User…

Manuelarte
- 1,658
- 2
- 28
- 47
0
votes
0 answers
How Do I create a Postgres Recursive Query to calculate averages of parents and decedents progress
This is a bit of a Brain Twister!
Using Postgres, I am trying to recursively calculate the average progress values of all descendants items. Parent Items have a progress calculation of PARENT and children have a progressCalculation of CHILD;…

Rick
- 31
- 3