Questions tagged [objectname]

49 questions
1
vote
1 answer

How to access python objects with a dynamic object name?

I have a question to one of my python scripts. I'm using the library untangle (https://github.com/stchris/untangle) to import and convert xml config files into the main script. The problem: I have user informations in the config file for more than…
1
vote
2 answers

How do I get specific object's attributes after a related event?

I'm not sure my title is clear, but let's take a look. I have 2 li elements in a ul list, and I want that when I click a li, to get the text of the li and then create an object based on the phones variable. Example : when I click NEXUS, get a Phone…
ricko zoe
  • 496
  • 1
  • 6
  • 19
1
vote
1 answer

MBean Registration with same(Single) object name for multiple objects of same class

Is there a way for MBean Registration with same(Single) object name for multiple objects of same class ? What is the simpler way ?
1
vote
1 answer

How to call ImageView by objectName in QML

I am dynamically creating images in my QML. This is the code I am using: for (var n = 0; n < 3 * numberOfTiles; n ++) { var image = imageDefinition.createObject(); image.translationX = getX(n); image.translationY…
Bojan Kogoj
  • 5,321
  • 3
  • 35
  • 57
1
vote
1 answer

R: How to use "data"-argument of lm-formula as character?

I have a problem and after spending my weekend on it, I would like to ask for help. To explain the problem, I would like to directly jump into an example: df <- data.frame(x=rnorm(100), z=rnorm(100), y=rnorm(100), f=rep(1:5,length.out=100 )) mod…
coffeinjunky
  • 11,254
  • 39
  • 57
1
vote
1 answer

Is it possible to generate random object variable names and return them from python method ? How?

I am working on a python GTK project and was wondering if it is possible to generate random variable names for naming widget objects and returning them so that it could be used in other parts of program like : #Class AppGUI: def createButton(self,…
avimehenwal
  • 1,502
  • 3
  • 21
  • 30
0
votes
0 answers

Rename Object with Variable - Rename csv column with Variable

I am importing and exporting csv files with powershell. I am trying to rename a csv column to include the name of the current week. I am recording the current week in a variable ReportWeek. When the new csv is created, it is adding the text verbatim…
0
votes
2 answers

Assigning plot object names dynamically (by index) when creating multiple plots by looping ggplot

I'd like to create several plots by looping ggplot. I created a small df (plothelp_df) for deriving the plot object names and variable names during the loop. But I am struggling with naming the plot objects dynamically when trying to derive the…
jaysigg
  • 201
  • 1
  • 7
0
votes
1 answer

ASP.NET C# How to I can call object in the collection for change is' property?

I found these instructions here in the stack overflow somewhere ... I only added the last loop to find the only objects that interest me i.e. textbox and dropdownlist ... For found objects I need to change the ReadOnly property from true to false or…
0
votes
1 answer

How can I name objects in R according to a for loop?

I'd like to name objects in a loop depending on i. I've got datasets from 1996 to 2020, all called Natalidad i_p.csv where i is the year. Each of them have the variables ano and mes. I want to create a matrix for each year with those two variables…
0
votes
1 answer

QT dynamic object name for stylesheet

I have a Card widget class, Card.h and Card.cpp my code is; mainWindow.cpp for(int i=0;i<12;i++){ // sembolList[i] is pixmap , i is cardNumber, wCardArea is parent widget Card *card = new Card(sembolList[i],i,ui->wCardArea); } and I wanna…
blackmamba
  • 99
  • 3
  • 11
0
votes
1 answer

PyQt5: How to assign ObjectName to all Objects with setObjectName

How can I assign ObjectNames for all QWidgets, QLayouts, QFrames etc in my gui class? Code like this only work in PyQt4: for w in gui.widgets(): w.setObjectName(str(w) How does this work in PyQt5? Also how can I iterate over all objects and not…
0
votes
1 answer

using Object name in if statement both true and false?

I try to use my object name for an if statement.. but both come up as true, why? var moduleInfo = new Object("moduleInfo"); moduleInfo ["name"] = "Module: Export" if (moduleInfo !== "moduleInfo"){ console.log("window is NOT modulInfo") …
Hensbergen
  • 41
  • 3
0
votes
2 answers

Are periods in object names bad practice?

For example, a constraint for a default value of 0 could be named DF__tablename.columnname. Although my search for this being bad practice doesn't yield results, in the numerous constraints examples I've seen on SO and many other sites, I never…
George Menoutis
  • 6,894
  • 3
  • 19
  • 43
0
votes
1 answer

Enumerate handles

Im trying to enumerate everyprocess handles and willing to get their name some of them retrives unnamed. How can I fix this? When I check it with process hacker or process explorer they can take that unnamed handles name. int wmain(int argc, WCHAR…
ismet JM
  • 21
  • 1
  • 9