Functions | |
| int | ADL2_Display_UnderscanSupport_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int *lpSupport) |
| Function to get the value of under scan support. | |
| int | ADL2_Display_UnderscanState_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int *lpCurrent, int *lpDefault) |
| Function to get the value of under scan enabled. | |
| int | ADL2_Display_UnderscanState_Set (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int iUnderscanEnabled) |
| Function to set the value of under scan enabled. | |
| int | ADL2_Display_Underscan_Set (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int iCurrent) |
| Function to set the current value of underscan. | |
| int | ADL_Display_Underscan_Set (int iAdapterIndex, int iDisplayIndex, int iCurrent) |
| Function to set the current value of underscan. | |
| int | ADL2_Display_Underscan_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int *lpCurrent, int *lpDefault, int *lpMin, int *lpMax, int *lpStep) |
| Function to retrieve the detailed information for underscan. | |
| int | ADL_Display_Underscan_Get (int iAdapterIndex, int iDisplayIndex, int *lpCurrent, int *lpDefault, int *lpMin, int *lpMax, int *lpStep) |
| Function to retrieve the detailed information for underscan. | |
| int | ADL2_Display_Overscan_Set (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int iCurrent) |
| Function to set the current value of gamma for each controller. | |
| int | ADL_Display_Overscan_Set (int iAdapterIndex, int iDisplayIndex, int iCurrent) |
| Function to set the current value of gamma for each controller. | |
| int | ADL2_Display_Overscan_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int *lpCurrent, int *lpDefualt, int *lpMin, int *lpMax, int *lpStep) |
| Function to retrieve the current value of gamma for each controller. | |
| int | ADL_Display_Overscan_Get (int iAdapterIndex, int iDisplayIndex, int *lpCurrent, int *lpDefualt, int *lpMin, int *lpMax, int *lpStep) |
| Function to retrieve the current value of gamma for each controller. |
| int ADL2_Display_UnderscanSupport_Get | ( | ADL_CONTEXT_HANDLE | context, | |
| int | iAdapterIndex, | |||
| int | iDisplayIndex, | |||
| int * | lpSupport | |||
| ) |
Function to get the value of under scan support.
This function gets the display under scan support flag for a specified adapter, display.
| [in] | context,: | Client's ADL context handle ADL_CONTEXT_HANDLE obtained from ADL2_Main_Control_Create. |
| [in] | iAdapterIndex | The ADL index handle of the desired adapter. |
| [in] | iDisplayIndex | The desired display index. It can be retrieved from the ADLDisplayInfo data structure. |
| [in] | *lpSupport | pointer to the the under scan support value. |
| int ADL2_Display_UnderscanState_Get | ( | ADL_CONTEXT_HANDLE | context, | |
| int | iAdapterIndex, | |||
| int | iDisplayIndex, | |||
| int * | lpCurrent, | |||
| int * | lpDefault | |||
| ) |
Function to get the value of under scan enabled.
This function gets the display under scan enabled flag for a specified adapter, display.
| [in] | context,: | Client's ADL context handle ADL_CONTEXT_HANDLE obtained from ADL2_Main_Control_Create. |
| [in] | iAdapterIndex | The ADL index handle of the desired adapter. |
| [in] | iDisplayIndex | The desired display index. It can be retrieved from the ADLDisplayInfo data structure. |
| [in] | *lpCurrent | pointer to the the under scan enabled current value. Enabled :1 ; disabled:0 |
| [in] | *lpDefault | pointer to the the under scan enabled default value. Enabled :1 ; disabled:0 |
| int ADL2_Display_UnderscanState_Set | ( | ADL_CONTEXT_HANDLE | context, | |
| int | iAdapterIndex, | |||
| int | iDisplayIndex, | |||
| int | iUnderscanEnabled | |||
| ) |
Function to set the value of under scan enabled.
This function sets the display under scan enabled flag for a specified adapter, display.
| [in] | context,: | Client's ADL context handle ADL_CONTEXT_HANDLE obtained from ADL2_Main_Control_Create. |
| [in] | iAdapterIndex | The ADL index handle of the desired adapter. |
| [in] | iDisplayIndex | The desired display index. It can be retrieved from the ADLDisplayInfo data structure. |
| [in] | iUnderscanEnabled | the the under scan enabled value. Enabled :1 ; disabled:0 |
| int ADL2_Display_Underscan_Set | ( | ADL_CONTEXT_HANDLE | context, | |
| int | iAdapterIndex, | |||
| int | iDisplayIndex, | |||
| int | iCurrent | |||
| ) |
Function to set the current value of underscan.
This function sets the display underscan for a specified adapter, display.
| [in] | context,: | Client's ADL context handle ADL_CONTEXT_HANDLE obtained from ADL2_Main_Control_Create. |
| [in] | iAdapterIndex | The ADL index handle of the desired adapter. |
| [in] | iDisplayIndex | The desired display index. It can be retrieved from the ADLDisplayInfo data structure. |
| [in] | iCurrent | The desired underscan value. |
Clients can use ADL2 version of the API to assure that there is no interference with other ADL clients that are running in the same process . Such clients have to call ADL2_Main_Control_Create first to obtain ADL_CONTEXT_HANDLE instance that has to be passed to each subsequent ADL2 call and finally destroyed using ADL2_Main_Control_Destroy.
| int ADL_Display_Underscan_Set | ( | int | iAdapterIndex, | |
| int | iDisplayIndex, | |||
| int | iCurrent | |||
| ) |
Function to set the current value of underscan.
This function sets the display underscan for a specified adapter, display.
| [in] | iAdapterIndex | The ADL index handle of the desired adapter. |
| [in] | iDisplayIndex | The desired display index. It can be retrieved from the ADLDisplayInfo data structure. |
| [in] | iCurrent | The desired underscan value. |
| int ADL2_Display_Underscan_Get | ( | ADL_CONTEXT_HANDLE | context, | |
| int | iAdapterIndex, | |||
| int | iDisplayIndex, | |||
| int * | lpCurrent, | |||
| int * | lpDefault, | |||
| int * | lpMin, | |||
| int * | lpMax, | |||
| int * | lpStep | |||
| ) |
Function to retrieve the detailed information for underscan.
This function retrieves the detailed information for underscan.
| [in] | context,: | Client's ADL context handle ADL_CONTEXT_HANDLE obtained from ADL2_Main_Control_Create. |
| [in] | iAdapterIndex | The ADL index handle of the desired adapter. |
| [in] | iDisplayIndex | The desired display index. It can be retrieved from the ADLDisplayInfo data structure. |
| [out] | lpCurrent | The pointer to the current underscan value. |
| [out] | lpDefault | The pointer to the default underscan value. |
| [out] | lpMin | The pointer to the minimum underscan value. |
| [out] | lpMax | The pointer to the maximum underscan value. |
| [out] | lpStep | The pointer to the increment of the underscan setting. |
| int ADL_Display_Underscan_Get | ( | int | iAdapterIndex, | |
| int | iDisplayIndex, | |||
| int * | lpCurrent, | |||
| int * | lpDefault, | |||
| int * | lpMin, | |||
| int * | lpMax, | |||
| int * | lpStep | |||
| ) |
Function to retrieve the detailed information for underscan.
This function retrieves the detailed information for underscan.
| [in] | iAdapterIndex | The ADL index handle of the desired adapter. |
| [in] | iDisplayIndex | The desired display index. It can be retrieved from the ADLDisplayInfo data structure. |
| [out] | lpCurrent | The pointer to the current underscan value. |
| [out] | lpDefault | The pointer to the default underscan value. |
| [out] | lpMin | The pointer to the minimum underscan value. |
| [out] | lpMax | The pointer to the maximum underscan value. |
| [out] | lpStep | The pointer to the increment of the underscan setting. |
| int ADL2_Display_Overscan_Set | ( | ADL_CONTEXT_HANDLE | context, | |
| int | iAdapterIndex, | |||
| int | iDisplayIndex, | |||
| int | iCurrent | |||
| ) |
Function to set the current value of gamma for each controller.
This function sets the Overscan value for a specified display.
| [in] | context,: | Client's ADL context handle ADL_CONTEXT_HANDLE obtained from ADL2_Main_Control_Create. |
| [in] | iAdapterIndex | The ADL index handle of the desired adapter. |
| [in] | iDisplayIndex | The desired display index. It can be retrieved from the ADLDisplayInfo data structure. |
| [in] | iCurrent | The desired Overscan value. |
Clients can use ADL2 version of the API to assure that there is no interference with other ADL clients that are running in the same process . Such clients have to call ADL2_Main_Control_Create first to obtain ADL_CONTEXT_HANDLE instance that has to be passed to each subsequent ADL2 call and finally destroyed using ADL2_Main_Control_Destroy.
| int ADL_Display_Overscan_Set | ( | int | iAdapterIndex, | |
| int | iDisplayIndex, | |||
| int | iCurrent | |||
| ) |
Function to set the current value of gamma for each controller.
This function sets the Overscan value for a specified display.
| [in] | iAdapterIndex | The ADL index handle of the desired adapter. |
| [in] | iDisplayIndex | The desired display index. It can be retrieved from the ADLDisplayInfo data structure. |
| [in] | iCurrent | The desired Overscan value. |
| int ADL2_Display_Overscan_Get | ( | ADL_CONTEXT_HANDLE | context, | |
| int | iAdapterIndex, | |||
| int | iDisplayIndex, | |||
| int * | lpCurrent, | |||
| int * | lpDefualt, | |||
| int * | lpMin, | |||
| int * | lpMax, | |||
| int * | lpStep | |||
| ) |
Function to retrieve the current value of gamma for each controller.
This function retrieves the Overscan value for a specified display.
| [in] | context,: | Client's ADL context handle ADL_CONTEXT_HANDLE obtained from ADL2_Main_Control_Create. |
| [in] | iAdapterIndex | The ADL index handle of the desired adapter. |
| [in] | iDisplayIndex | The desired display index. It can be retrieved from the ADLDisplayInfo data structure. |
| [out] | lpCurrent | The pointer to the current Overscan value. |
| [out] | lpDefualt | The pointer to the default Overscan value. |
| [out] | lpMin | The pointer to the minimum Overscan value. |
| [out] | lpMax | The pointer to the maximum Overscan value. |
| [out] | lpStep | The pointer to the increment of the Overscan value. |
| int ADL_Display_Overscan_Get | ( | int | iAdapterIndex, | |
| int | iDisplayIndex, | |||
| int * | lpCurrent, | |||
| int * | lpDefualt, | |||
| int * | lpMin, | |||
| int * | lpMax, | |||
| int * | lpStep | |||
| ) |
Function to retrieve the current value of gamma for each controller.
This function retrieves the Overscan value for a specified display.
| [in] | iAdapterIndex | The ADL index handle of the desired adapter. |
| [in] | iDisplayIndex | The desired display index. It can be retrieved from the ADLDisplayInfo data structure. |
| [out] | lpCurrent | The pointer to the current Overscan value. |
| [out] | lpDefualt | The pointer to the default Overscan value. |
| [out] | lpMin | The pointer to the minimum Overscan value. |
| [out] | lpMax | The pointer to the maximum Overscan value. |
| [out] | lpStep | The pointer to the increment of the Overscan value. |


is a form of sweet dessert that is typically baked. ... Typical cake ingredients are flour, sugar, eggs, butter or oil or margarine, a liquid, and leavening agents, such as baking soda or baking powder.
Our stores are located in 21 cities all over the world. Come and see what we have!
City: Hong Kong City: Salzburg Address: Chocolate 18 Address: ShokoLeiden 73 Phone:<PHONE_NUMBER>1 Phone:<PHONE_NUMBER>7


| cells_grand_summary {gt} | R Documentation |
The cells_grand_summary()
function is used to target the cells in a grand
summary and it is useful when applying a footnote with tab_footnote()
or
adding custom styles with tab_style()
. The function is expressly used in
each of those functions' locations
argument.
cells_grand_summary(columns = everything(), rows = everything())
columns |
The names of the columns that are to be targeted. |
rows |
The names of the rows that are to be targeted. |
A list object with the classes cells_summary
and location_cells
.
Location helper functions can be used to target cells with virtually any
function that has a locations
argument. Here is a listing of all of the
location helper functions, with locations corresponding roughly from top to
bottom of a table:
cells_title()
: targets the table title or the table subtitle depending on
the value given to the groups
argument ("title"
or "subtitle"
).
cells_stubhead()
: targets the stubhead location, a cell of which is only
available when there is a stub; a label in that location can be created by
using the tab_stubhead()
function.
cells_column_spanners()
: targets the spanner column labels with the
spanners
argument; spanner column labels appear above the column labels.
cells_column_labels()
: targets the column labels with its columns
argument.
cells_row_groups()
: targets the row group labels in any available row
groups using the groups
argument.
cells_stub()
: targets row labels in the table stub using the rows
argument.
cells_body()
: targets data cells in the table body using intersections of
columns
and rows
.
cells_summary()
: targets summary cells in the table body using the
groups
argument and intersections of columns
and rows
.
cells_grand_summary()
: targets cells of the table's grand summary using
intersections of columns
and rows
cells_stub_summary()
: targets summary row labels in the table stub using
the groups
and rows
arguments.
cells_stub_grand_summary()
: targets grand summary row labels in the table
stub using the rows
argument.
cells_footnotes()
: targets all footnotes in the table footer (cannot be
used with tab_footnote()
).
cells_source_notes()
: targets all source notes in the table footer
(cannot be used with tab_footnote()
).
When using any of the location helper functions with an appropriate function
that has a locations
argument (e.g., tab_style()
), multiple locations
can be targeted by enclosing several cells_*()
helper functions in a
list()
(e.g., list(cells_body(), cells_grand_summary())
).
7-13
Other Helper Functions:
adjust_luminance()
,
cell_borders()
,
cell_fill()
,
cell_text()
,
cells_body()
,
cells_column_labels()
,
cells_column_spanners()
,
cells_footnotes()
,
cells_row_groups()
,
cells_source_notes()
,
cells_stub_grand_summary()
,
cells_stub_summary()
,
cells_stubhead()
,
cells_stub()
,
cells_summary()
,
cells_title()
,
currency()
,
default_fonts()
,
escape_latex()
,
google_font()
,
gt_latex_dependencies()
,
html()
,
md()
,
pct()
,
px()
,
random_id()
# Use `countrypops` to create a gt table; add # some styling to a grand summary cell with # with `tab_style()` and `cells_grand_summary()` tab_1 <- countrypops %>% dplyr::filter( country_name == "Spain", year < 1970 ) %>% dplyr::select(-contains("country")) %>% gt(rowname_col = "year") %>% fmt_number( columns = population, decimals = 0 ) %>% grand_summary_rows( columns = population, fns = list( change = ~max(.) - min(.) ), formatter = fmt_number, decimals = 0 ) %>% tab_style( style = list( cell_text(style = "italic"), cell_fill(color = "lightblue") ), locations = cells_grand_summary( columns = population, rows = 1) )


@* * Copyright 2020 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *@ @import uk.gov.hmrc.preferencesadminfrontend.config.AppConfig @import uk.gov.hmrc.preferencesadminfrontend.controllers.routes @import uk.gov.hmrc.play.views.html.helpers._ @(search: Form[_])(implicit request: Request[_], messages: Messages, appConfig: AppConfig) @uk.gov.hmrc.preferencesadminfrontend.views.html.main_template(title = "Customer Identification", bodyClasses = None) {


WEEK 13
NETWORKING COMMUNICATION
To complete this assignment I designed this networking system:
As MASTER a control board with an input (the photoresistor shield I realized for the INPUT ASSIGNMENT)
communicates with a SLAVE by wireless (a RGBdriver) and with a pc by serial using a USB-FTDI cable.
To build the wireless connection I used two
PANSTAMP AVR radio transceiver
so I designed and realized two board supporting them.
The first one is a control board, in which you can insert several input board as the photoresistor shield I realized for the INPUT ASSIGNMENT.
The second one is a RGBdriver board, to control a RGB led strip.
The program I realized let the led strips blink using the photoresistor value as delay time, and writes on the serial monitor of my mac this value, as I show in this
video
BOARDS DESIGN AND REALIZATION
I designed those boards using eagle and I realized them using fabmodules on roland srm-20 mill.
To design the control board I focused about what I need on this board:
2 row 12 pins to insert the PANSTAMP
3 row 7 pins to insert input shields using the same FABKIT scheme (5 input pins + gnd + vcc)
1 row 5 pins to FTDI Serial Programming
alimentation system to take power from a 9v battery and convert to 3.3v (PANSTAMP voltage)
To realize the power regulation, I used a LM1117 and two polar capacitor using the FIXED OUTPUT REGOLATOR scheme in the
DATASHEET
The chance to power the board with a 9v battery allows to control the RGBstrip by wireless, walking in the room.
I add a switch to turn on and off the board without removing the battery.
CBholes.png
CBtraces.png
CB.brd
CB.sch
To design the RGBdriver board I focused about:
2 row 12 pins to insert the PANSTAMP
1 row 5 pins to FTDI Serial Programming
all others pins broken out just in the easier way (no really needed)
alimentation system to take power from a 12v transformer and power the LEDstrip directly and the PANSTAMP converting to 3.3v
3 pwm digital pins out each to a transistor to convert pwm line in electric power input to control the 3 components RGB
a 4 I/O screw a the end to join the led strips - Red Green Blue Line12v
The power regulation is the same of the earlier board, without switch.
I used the transistor TIP 31following this scheme
The digital pins I used were 3, 5, 6.
CBholes.png
CBtraces.png
CB.brd
CB.sch
SERIAL COMMUNICATION
I used an
USB-FTDI cable
to connect my Mac to the Panstamp Serial programming 5 pins that I broke out.
To let them comunicate, just connect GROUND and each RX to the respective TX. Because the board is self-powered you don’t need to connect vcc.
Now, just adding to the program, written using arduino ide, the
Serial.begin
to set the baudrate (normally 9600) and the
Serial.println
command to receive the info we want (in this case the photoresistor value) and visualize them to the serial monitor.
WIRELESS COMMUNICATION
TRANSMITTING
In the same
transmitter .ino file
I programmed the wireless communication using the
PANSTAMP libraries.
At beginning of the sketch we need to define this 5 parameters.
#define RFCHANNEL 0
#define SYNCWORD1 0xB5
#define SYNCWORD0 0x47
#define SOURCE_ADDR 5
#define DESTINATION_ADDR 4
The first three can not be changed, the last two instead are very important, they define the address of communication.
PANSTAMP has 12 channels eligible (0-11), if we want that 2 transceiver comunicate each to the other, they need to have same source and destination address parameters.
It means that we can also use more PANSTAMP series in the same room and let them totally ignore, just giving to each series different address.
In the void setup insert this 4 lines:
panstamp.radio.setChannel(RFCHANNEL);
panstamp.radio.setSyncWord(SYNCWORD1, SYNCWORD0);
panstamp.radio.setDevAddress(SOURCE_ADDR);
panstamp.radio.setCCregs();
Then in the void loop prepare the packet to be sent, using the function “txPacket”.
 In this case 2, the destination address and the sensor value.
With “txPacket.data[n] = name;" you insert in each data of your packet the value (from 0 to 255) you want send.
The first one has to be always the destination address you define at beginning of the sketch. Remember that the list starts from [0].
At the end we can send the packet we created using this command "panstamp.radio.sendData(txPacket);”
RECEIVING
As we see in the
receiver .ino file
in initialization and setup we need to add the same code we wrote for the transmitting file.
But before the usual void setup, we need to add the void rfPacketReceived(CCPACKET *packet) in which we open the received packet.
As in the transmitting code, in the receiving code we can use a similar “packet” function using the symbol -> instead the dot.
I add an “if” on the packet length just in case we received a broken packet with less data than we want.
Then just compile “$[n] = int (packet -> data[n]);” to split the data received in the variable you create.
- Maker:
Leonardo Zaccone
- Date:
02/03/2015
- FabLab:
Frosinone, Italy


referenced
by None at 2022-07-14 16:29:59.merged
by None at 2022-07-14 16:29:59.closed
by None at 2022-07-14 16:29:59.deployed
by None at 2022-07-13 22:33:36.referenced
by Jane Sandberg at 2022-07-13 22:35:23.merged
by Jane Sandberg at 2022-07-13 22:35:23.closed
by Jane Sandberg at 2022-07-13 22:35:23.head_ref_deleted
by Jane Sandberg at 2022-07-13 22:35:23.closed
by Kevin Reiss at 2022-07-14 21:12:57.referenced
by Kevin Reiss at 2022-07-14 21:12:56.merged
by Kevin Reiss at 2022-07-14 21:12:56.closed
by Kevin Reiss at 2022-07-14 21:12:57.head_ref_deleted
by Kevin Reiss at 2022-07-14 21:12:57.@minjiec - Is the line below correct? It seems like maybe anything with "Koniagmiut Eskimos" should include the "Indigenous Studies" subject heading?
Koniagmiut Eskimos—Anthropometry y [150] 650 Koniagmiut Eskimos ǂx Anthropometry
@maxkadel Thank you for the sharp eye! Yes, "Koniagmiut Eskimos—Anthropometry" is apparently redundant, because "Koniagmiut Eskimos" is already listed in the spreadsheet. Somehow the string escaped my filter...
mentioned
by M Chen at 2022-07-14 17:18:26.subscribed
by M Chen at 2022-07-14 17:18:26.mentioned
by Max Kadel at 2022-07-14 19:10:42.subscribed
by Max Kadel at 2022-07-14 19:10:43.It's going through this code path because it gets
HTTP GET for https://figgy.princeton.edu/catalog/5b1c290b-2149-4ad1-8104-a85d28e9ef33.jsonld?auth_token=[redacted] failed with 406
at
https://github.com/pulibrary/dpul/blob/29df16583025e5406c49dde5fde3cadf8098ce62/app/values/manifest_metadata.rb#L28
In my browser I don't get this error from Figgy.
and then it goes down this code path that resulted in the error, via https://github.com/pulibrary/dpul/blob/29df16583025e5406c49dde5fde3cadf8098ce62/app/values/manifest_metadata.rb#L119
We should figure out which of these things to try and fix.
labeled
by None at 2022-07-14 17:39:12.referenced
by Trey Pendragon at 2022-07-13 22:19:54.merged
by Trey Pendragon at 2022-07-13 22:19:54.closed
by Trey Pendragon at 2022-07-13 22:19:54.head_ref_deleted
by Trey Pendragon at 2022-07-13 22:19:54.closed
by Trey Pendragon at 2022-07-13 22:20:03.referenced
by None at 2022-07-14 15:05:10.merged
by None at 2022-07-14 15:05:10.closed
by None at 2022-07-14 15:05:10.head_ref_deleted
by None at 2022-07-14 15:05:11.closed
by Trey Pendragon at 2022-07-14 16:03:15.Same issue with
/mnt/hydra_sources/archives_bd/bcadmin/mss/av_backlog/C1436/C1436_2022_06_bag_a
Kelly says the pbcore may have a pbcoreTitle[@titleType="item_title"]
instead.
referenced
by Eliot Jordan at 2022-07-14 17:57:18.merged
by Eliot Jordan at 2022-07-14 17:57:18.closed
by Eliot Jordan at 2022-07-14 17:57:18.head_ref_deleted
by Eliot Jordan at 2022-07-14 17:57:19.closed
by Eliot Jordan at 2022-07-14 19:35:27.referenced
by Eliot Jordan at 2022-07-14 16:19:07.merged
by Eliot Jordan at 2022-07-14 16:19:07.closed
by Eliot Jordan at 2022-07-14 16:19:07.head_ref_deleted
by Eliot Jordan at 2022-07-14 16:19:08.labeled
by None at 2022-07-14 20:07:03.assigned
by Eliot Jordan at 2022-07-14 20:12:13.At least one of these "from inside Blacklight" deprecations is in response to parameters we pass.
https://github.com/projectblacklight/blacklight/blob/v7.28.0/lib/blacklight/parameters.rb#L84-L89
renamed
by None at 2022-07-14 20:08:03.unassigned
by None at 2022-07-14 20:08:07.unassigned
by Trey Pendragon at 2022-07-14 20:08:07.labeled
by Eliot Jordan at 2022-07-14 20:44:43.referenced
by Trey Pendragon at 2022-07-14 21:23:04.merged
by Trey Pendragon at 2022-07-14 21:23:04.closed
by Trey Pendragon at 2022-07-14 21:23:04.head_ref_deleted
by Trey Pendragon at 2022-07-14 21:23:05.also at /home/circleci/figgy/app/views/base/structurenode.html.erb:25)
Note I fixed this deprecation in another location as part of https://github.com/pulibrary/figgy/pull/5244
labeled
by None at 2022-07-14 20:07:10.closed
by Trey Pendragon at 2022-07-14 21:26:46.labeled
by Eliot Jordan at 2022-07-14 21:06:49.referenced
by Trey Pendragon at 2022-07-14 22:34:05.merged
by Trey Pendragon at 2022-07-14 22:34:05.closed
by Trey Pendragon at 2022-07-14 22:34:05.head_ref_deleted
by Trey Pendragon at 2022-07-14 22:34:05.labeled
by None at 2022-07-14 20:06:51.closed
by Trey Pendragon at 2022-07-14 22:34:10.referenced
by Trey Pendragon at 2022-07-14 22:34:23.merged
by Trey Pendragon at 2022-07-14 22:34:23.closed
by Trey Pendragon at 2022-07-14 22:34:23.head_ref_deleted
by Trey Pendragon at 2022-07-14 22:34:24.labeled
by None at 2022-07-14 20:07:05.closed
by Trey Pendragon at 2022-07-14 22:34:28.labeled
by Eliot Jordan at 2022-07-14 20:32:52.referenced
by Trey Pendragon at 2022-07-14 22:34:42.merged
by Trey Pendragon at 2022-07-14 22:34:42.closed
by Trey Pendragon at 2022-07-14 22:34:42.head_ref_deleted
by Trey Pendragon at 2022-07-14 22:34:43.referenced
by Trey Pendragon at 2022-07-14 23:04:08.merged
by Trey Pendragon at 2022-07-14 23:04:08.closed
by Trey Pendragon at 2022-07-14 23:04:08.head_ref_deleted
by Trey Pendragon at 2022-07-14 23:04:09.head_ref_force_pushed
by Trey Pendragon at 2022-07-14 17:00:02.head_ref_force_pushed
by Eliot Jordan at 2022-07-14 20:43:45.head_ref_force_pushed
by Eliot Jordan at 2022-07-14 21:05:59.labeled
by Kevin Reiss at 2022-07-14 04:27:16.Looks like rails-html-sanitizer is up-to-date now, so this is no longer needed.
closed
by None at 2022-07-14 16:41:00.head_ref_deleted
by None at 2022-07-14 16:41:01.labeled
by None at 2022-07-14 16:41:07.Seems to be behaving fine locally:
Yes, we don't have a staging environment for this application. With the test suite in good shape and your local looking good I think we can go ahead to production. If there is an odd issue that comes we can roll back.
ready_for_review
by Max Kadel at 2022-07-14 16:32:26.referenced
by Jane Sandberg at 2022-07-14 16:40:18.merged
by Jane Sandberg at 2022-07-14 16:40:18.closed
by Jane Sandberg at 2022-07-14 16:40:18.head_ref_deleted
by Max Kadel at 2022-07-14 16:40:52.closed by #12
labeled
by Kevin Reiss at 2022-07-14 15:38:28.assigned
by Max Kadel at 2022-07-14 16:23:55.closed
by Jane Sandberg at 2022-07-14 16:42:16.referenced
by Kevin Reiss at 2022-07-14 20:57:16.merged
by Kevin Reiss at 2022-07-14 20:57:16.closed
by Kevin Reiss at 2022-07-14 20:57:16.head_ref_deleted
by Kevin Reiss at 2022-07-14 20:57:17.head_ref_force_pushed
by None at 2022-07-14 20:58:19.referenced
by Kevin Reiss at 2022-07-14 20:56:50.merged
by Kevin Reiss at 2022-07-14 20:56:50.closed
by Kevin Reiss at 2022-07-14 20:56:50.head_ref_deleted
by Kevin Reiss at 2022-07-14 20:56:51.Looks like rails-html-sanitizer is up-to-date now, so this is no longer needed.
closed
by None at 2022-07-14 20:57:27.head_ref_deleted
by None at 2022-07-14 20:57:28.This was due to testing a branch. Closing.
closed
by Max Kadel at 2022-07-14 12:02:04.Coverage remained the same at 94.184% when pulling 3e5de9e4825d5b033d21b18ac0d1eca953332767 on lessonslearnedfrom_upgrade into ae5fbf6c0f1104f99161a40edc3b1b674054a050 on main.
deployed
by None at 2022-07-14 12:23:28.deployed
by None at 2022-07-14 12:37:52.ready_for_review
by Max Kadel at 2022-07-14 12:39:55.The code that last introduced changes in behavior was introduced in this PR https://github.com/pulibrary/orangelight/pull/2766.
Closing, since it is already scheduled.
closed
by Jane Sandberg at 2022-07-14 19:06:05.deployed
by None at 2022-07-14 19:28:20.ready_for_review
by Max Kadel at 2022-07-14 19:55:14.referenced
by Christina Chortaria at 2022-07-14 19:55:50.merged
by Christina Chortaria at 2022-07-14 19:55:50.closed
by Christina Chortaria at 2022-07-14 19:55:50.head_ref_deleted
by Christina Chortaria at 2022-07-14 19:55:51.How about for the last fiscal year or from August 1, 2021 our migration go live date @pmgreen?
Sent via email to @christinach and @kevinreiss
Thanks @pmgreen !
mentioned
by Peter Green at 2022-07-14 18:27:11.subscribed
by Peter Green at 2022-07-14 18:27:11.mentioned
by Kevin Reiss at 2022-07-14 20:38:07.subscribed
by Kevin Reiss at 2022-07-14 20:38:07.mentioned
by Christina Chortaria at 2022-07-14 20:38:07.subscribed
by Christina Chortaria at 2022-07-14 20:38:07.mentioned
by Peter Green at 2022-07-14 20:48:51.subscribed
by Peter Green at 2022-07-14 20:48:51.convert_to_draft
by Bess Sadler at 2022-07-14 19:02:53.Breadcrumb: https://github.com/voxpupuli/json-schema
assigned
by Bess Sadler at 2022-07-14 14:02:18.I can confirm that I am having difficulties with finding these exact metrics as well. Further, the logrotate configuration seems to be valid:
pulsys@pdc-discovery-prod1:/var/log$ cat /etc/logrotate.d/pdc_discovery
# Default logrotate configuration for a Rails App in Ansible managed
/opt/pdc_discovery/current/log/*.log {
minsize 500M
daily
rotate 5
copytruncate
delaycompress
compress
notifempty
missingok
su root root
}
assigned
by Alicia Cozine at 2022-07-14 17:28:49.I am not certain as to whether or not this might be needed. Please see https://github.com/pulibrary/pdc_discovery/issues/312#issuecomment-1184462437
unassigned
by James R. Griffin III at 2022-07-14 13:41:48.referenced
by Alicia Cozine at 2022-07-14 16:23:07.merged
by Alicia Cozine at 2022-07-14 16:23:07.closed
by Alicia Cozine at 2022-07-14 16:23:07.head_ref_deleted
by Alicia Cozine at 2022-07-14 16:23:08.referenced
by Robert-Anthony Lee-Faison at 2022-07-14 20:15:52.merged
by Robert-Anthony Lee-Faison at 2022-07-14 20:15:53.closed
by Robert-Anthony Lee-Faison at 2022-07-14 20:15:53.head_ref_deleted
by Robert-Anthony Lee-Faison at 2022-07-14 20:15:53.referenced
by Trey Pendragon at 2022-07-14 22:32:49.merged
by Trey Pendragon at 2022-07-14 22:32:49.closed
by Trey Pendragon at 2022-07-14 22:32:49.head_ref_deleted
by Trey Pendragon at 2022-07-14 22:32:50.assigned
by Jane Sandberg at 2022-07-14 16:08:23.labeled
by Jane Sandberg at 2022-07-14 17:20:31.assigned
by Jane Sandberg at 2022-07-14 17:24:49.deployed
by None at 2022-07-14 22:46:19.labeled
by None at 2022-07-14 17:28:09.renamed
by None at 2022-07-14 17:46:16.labeled
by None at 2022-07-14 17:47:33.It's happening again on https://findingaids.princeton.edu/catalog/MC001-02-01_c00001.xml
reopened
by None at 2022-07-14 17:59:45.assigned
by Shaun Ellis at 2022-07-14 19:32:03.Possibilities so far -
* https://www.scrumalliance.org/get-certified/product-owner-track/certified-scrum-product-owner
* https://jeffgothelf.com/self-paced-courses/
* https://www.coursera.org/learn/introduction-to-certified-scrum-master
* Pluralsight
* https://www.pluralsight.com/courses/becoming-great-product-owner
* https://www.pluralsight.com/courses/product-owner-fundamentals-foundations
* https://www.pluralsight.com/courses/understanding-your-product
* https://www.pluralsight.com/courses/understanding-lean-value-driven-delivery
* EDUCAUSE Learning Lab series (August 2022) https://events.educause.edu/courses/2022/creative-collaboration-the-power-of-team-based-problem-solving
* https://productmanagerhq.com/product-management-certifications/product-owner-certification-course/
* https://scaledagile.com/training/safe-product-owner-product-manager/


How To Install Dolby Home Theater V4 On Windows 10 8 And 7
How To Install Dolby Home Theater V4 In Windows 7 8 10 Rom Provider
Dolby Home Theater Software Informer Dolby Home Theater Elevates Pc Audio And Delivers A Surround Sound Experience
Download Dolby Advanced Audio Home Theater Drivers Free Download Listph
Dolby Home Theater Download Windows Xp Armyheavy
Dolby Home Theater V4 Only Working With One Program At A Time Page 2 Windows 7 Help Forums
Download And Install Dolby Home Theater V4 Hd Youtube
Dolby Home Theater Driver Download Skyeyanswer
Install Dolby Digital Plus Home Theater On Windows 7 8 8 1 10 Youtube
Dolby Home Theatre V4 Is Not Working Windows 7 Help Forums
Dolby Digital Plus Advanced Audio Free Download For Windows 10
Realtek Dch Modded Audio Driver For Windows 10 Page 3 Techpowerup Forums
How To Install Latest Dolby Audio On Windows 10 Version 1803 Youtube
Download Dolby Home Theater
Dolby Home Theater V4 Notebooks Announced With Premium Audio
Dolby Atmos Conversion Tool Dolby Developer
Alternatives To Replace Dolby Home Theater
How To Get Dolby Atmos Surround Sound On Any Android Android Gadget Hacks
Dolby Pcee Drivers X64 Download Keenbuffalo
Download And Install Dolby Home Theater V4 On Pc Windows 10 8 7 Axeetech Home Theater Home Theater Speakers Home Theater Installation
The Ultimate Realtek Hd Audio Driver Mod For Windows 10 Techpowerup Forums
Your Pc Probably Has Spatial Sound And It S Awesome Cnet
Dolby Access Download
How To Download Dolby Home Theater V4 Free For Pc Latest 2018 Youtube
Dolby Digital Plus Home Theater Download For Windows 10 Dolby Digital Windows 10 Digital
Download The Latest Dolby Version For Windows 10 Quick Guide
Dolby Advanced Audio Home Theater Drivers For Your Built In Hd Audio Page 4 Guru3d Forums
Dolby Digital Vs Dts What S The Difference What Hi Fi
Speaker Cartoon Png Download 976 488 Free Transparent Home Theater Systems Png Download Cleanpng Kisspng


AWWWARDS
Website of the day.
Received: February 2nd 2014Hi My name is John Doe. I'm 28 years old and I'm living in San Francisco. I hold a master degree of Web Design from the St. Patrick University.
I am a multi talented handsome and young guy, always looking for new challenges. If this does not convince you yet then have a look at the rest of this site. I'm sure this helps.
Currently I am working for Black Tie Corp., a small company in the southern area of San Francisco. However I am also available for freelance work.
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat
All the best,
John Doe
Skills I gained over the years. Everything is of course approximately.
I am dedicated to a lot of different fields. So I was able to gain a lot of experiences in various disciplines. If you have any questions regarding my skills, don't hesitate to get in contact with me.
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the one.
Graduation May 2013
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
June 2012
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
June 2012 - Current
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
January 2010 - April 2012
Dummy text is text that is used in the publishing industry or by web designers to occupy the space which will later be filled with 'real' content.
This is required when, for example, the final text is not yet available. Dummy text is also known as 'fill text'. It is said that song composers of the past used dummy texts as lyrics when writing melodies in order to have a 'ready-made' text to sing with the melody. Dummy texts have been in use by typesetters since the 16th century.
August 2011 - June 2012
Dummy text is text that is used in the publishing industry or by web designers to occupy the space which will later be filled with 'real' content.
Dummy text is text that is used in the publishing industry or by web designers to occupy the space which will later be filled with 'real' content.
This is required when, for example, the final text is not yet available. Dummy text is also known as 'fill text'. It is said that song composers of the past used dummy texts as lyrics when writing melodies in order to have a 'ready-made' text to sing with the melody. Dummy texts have been in use by typesetters since the 16th century.
Dummy text is text that is used in the publishing industry or by web designers to occupy the space which will later be filled with 'real' content.
This is required when, for example, the final text is not yet available. Dummy text is also known as 'fill text'. It is said that song composers of the past used dummy texts as lyrics when writing melodies in order to have a 'ready-made' text to sing with the melody. Dummy texts have been in use by typesetters since the 16th century.
Dummy text is text that is used in the publishing industry or by web designers to occupy the space which will later be filled with 'real' content.
This is required when, for example, the final text is not yet available. Dummy text is also known as 'fill text'. It is said that song composers of the past used dummy texts as lyrics when writing melodies in order to have a 'ready-made' text to sing with the melody. Dummy texts have been in use by typesetters since the 16th century.
Dummy text is text that is used in the publishing industry or by web designers to occupy the space which will later be filled with 'real' content.
This is required when, for example, the final text is not yet available. Dummy text is also known as 'fill text'. It is said that song composers of the past used dummy texts as lyrics when writing melodies in order to have a 'ready-made' text to sing with the melody. Dummy texts have been in use by typesetters since the 16th century.
Click an image to view the details
This is just a small collection of pictures. If you want to see more, have a look at my dribbble account
I'm a talented coder as well. If got some things up on Github so why don't you go ahead and fork me?
Have a look at some awards I received in several disciplines.
Website of the day.
Received: February 2nd 2014Best CSS Code website of the month.
Received: September 2013Best usability for disabled persons.
Received: November 22nd 2014Awarded beach photo
Received: NABest idea in a brainstorming for revolutionary navigation.
Received: September 2013Most (per month) likes on a homepage PSD design
Received: November 22nd 2014You can get in touch with me 24 hours, 7 days a week.


Chapter 3 Data Tables
something here
3.1 Rows and columns
Data tables are organized into rows and columns.
- Each row is a unit of observation.
- Each column is a variable.
3.1.1 Unit of observation
The unit of observation is the kind of thing each row corresponds to in the real world. In Figure 2, the unit of observation is a child. Galton recorded heights of 898 children in his notebook so there are 898 rows in the data table.
In a properly arranged data table, every row is about the same sort of observational unit. If you have different types of observational units, they should be in different tables. For instance, you might have a table giving the address of each family. That should not be intermixed with the table where the unit of observation is a child. Instead, it would be in a separate table where the unit of observaton is a family.
3.1.2 Variables
Each column of a data table is a variable. The individual entries in the column are values of the variable. The word “variable” reflects that the values vary from row-to-row.
In the Galton table, there are six different variables:
- An ID for the family.
- The family’s father’s height. (inches)
- The family’s mother’s height. (inches)
- The sex of the child.
- The child’s height. (inches)
- The number of children in the family.
In properly arranged tabular data, the value for any particular variable is the same kind of thing for every observational unit. For instance, the father
variable is the height of the father in inches. Values of the sex
variable are always “F” or “M”.
3.2 Kinds of values
Data tables are composed of two main types of variables:
- Quantitative: a number.
- Categorical: a label, typically written using characters.
In the Galton data table, the sex
variable is categorical and consists of the labels "F"
and "M"
. The other variables are quantitative. But note that the family
variable, although expressed as numbers, is actually a categorical variable: all that matters about the values in family
is that they are distinct. The order is of no particular meaning; we can’t say that family 4 is in between families 2 and 5.
Quantitative variables typically represent some real-world quantity such as height, age, blood pressure, etc. Such real-world quantities often have units, e.g. inches, years, millimeters of mercury (mmHg).
In a properly organized data table, the units of the quantitative variable are not part of the value; they are implicit. A good reason for this is that in properly organized data, the a variable’s unit should be the same in every row. This is part of what it means that all the values are the same kind of thing.
For a categorical variable, the set of possible values of the variables are called the levels of the variable. In the Galton sex
variable, the set consists of "F"
and "M"
.
3.2.1 Missing data
In both quantitative and categorical values are sometimes missing. Historically, such missingness was often denoted with a special numerical value such as -999
or with a special level such as "missing"
. This is a poor practice, since it’s easy to mistakenly treat those values as if they were non-missing. Instead, a special token is used to indicate missing data: NA
.
3.3 The codebook
How are you to know what are the physical units of a quantitative variable or the legitimate levels of a categorical variable? This information is contained in a codebook associated with the data table. Codebook can take the form of an actual book, a text file, a spreadsheet, a PDF document, etc.
Many of the data tables we will be working with have codebooks available through the R help()
system. For instance, the following command chunk will display the codebook for the Galton
data table:
3.4 Tables and files
Data tables are typically stored as computer files. There are many formats for such files in use. One popular file format is called CSV (comma-separated values). The particular file format does not really matter, so long as you can find the appropriate software to read the file. Similarly, the physical location of the file does not really matter, so long as you have access to it.
3.4.1 Loading data
When using statistical software, data tables are “read in” to the software. This is often called loading the data table. The R statistical software has a standard representation of a data table, called a “data frame.” There are several widely used implementations of data frames and so you may see referenced to data.frame
, tibble
, etc.
In general, a first step in using data is to load the data from a file into a data frame. Almost always, the data frame is given a name by which the table can be referred.
The following command chunk has two commands. The first reads in a small data table from a file on the internet, creating a data frame given the name Baseball
. The second causes the data frame to be printed.
## # A tibble: 14 x 3
## Team Wins BattingAvg
## <chr> <int> <dbl>
## 1 New York 97 0.285
## 2 Toronto 87 0.284
## 3 Baltimore 70 0.277
## 4 Boston 86 0.269
## 5 Tampa Bay 61 0.255
## 6 Cleveland 78 0.280
## 7 Detroit 95 0.274
## 8 Chicago 90 0.280
## 9 Kansas City 62 0.271
## 10 Minnesota 96 0.287
## 11 Los Angeles 89 0.274
## 12 Texas 80 0.278
## 13 Seattle 78 0.272
## 14 Oakland 93 0.260
3.4.2 R-package data
Many of the data tables we will use in these notes have already been loaded into R by instructing R to use a library or package containing the data. This is the case with the Galton
example, which comes from the mosaicData
package.
For the present, you don’t need to be concerned with how to load R-package data. It will be done for you. But do remember that somewhere there is a computer file containing the data and that it is being loaded in to R with software appropriate for that format of file.
3.5 Textbook data
Recall the distinction between tabular data and a presentation constructed from the data. Textbooks are oriented to the human reader and, naturally, they tend to use forms indended for the human reader. Thus, much of the “data” in textbooks is in the form of presentations such as the cross-tabulation in Figure 1.
Figure 1: A data presentation from the open source textbook “Intro Stat with Simulation and Randomization” ISRS.
A stickler might argue that the table in Figure 1 can be construed as a data table, but for our purpose here, let’s take a pragmatic approach to defining what constitutes the sorts of data used in data science. In particular, these notes will focus on data that contain many rows and are available in machine-readable form. Or, stated another way, we’ll work with data before they have been aggregated into the sort of presentation seen in Figure 1.
It’s easy to imagine what the disaggregated data table that underlies this presentation might look like: perhaps this one where the unit of observation is a person:
| patient | accupuncture | pain | date | technician |
|---|---|---|---|---|
| A2322 | control | yes | 2014-03-15 | Audrey |
| A2397 | treatment | yes | 2014-03-17 | Audrey |
| A3213 | treatment | no | 2014-03-17 | Bill |
| B8732 | treatment | no | 2014-03-18 | Audrey |
| C6920 | control | yes | 2014-03-18 | Bill |
| \(\vdots\) | \(\vdots\) | \(\vdots\) | \(\vdots\) | \(\vdots\) |
Figure 2: What the underlying data from Figure 1 might have looked like, presented as a data table.
By learning the tools to work with data tables, you can easily create presentations like the cross-tabulation in Figure 1. But you also have the ability to explore other possible explanations for the variation in pain, such as the effectiveness of the technician or the day of the week.
3.6 Example
Figure 3 shows a style of presentation common in intro stats textbooks.
Figure 3: A textbook presentation of data (Source: 2016 GAISE College Report)
The data are almost in tabular form. Does it matter that the variables are arranged as rows rather than columns? Not in any mathematical sense, but it is a violation of the standard format for data, which means that the data will be (slightly) more difficult to work with: you’ll have to transform them to the standard before performing calculations.
The textbook provides a brief description of the data, including an explanation of the meaning of the variables and their units, and an indication of the source. Since data tables are usually stored as a computer file, such descriptive information is stored in an auxilliary file called a “codebook.”
Note that the variable names — Duration (seconds)
and Distance (meters)
— include the units. This is appropriate in a data presentation. But the data table from which this presentation originates should not include the units; that information can be placed in the codebook.
Figure 4 shows two imagined data-table forms for the honeybee data. The left form has included the units — seconds and meters. In the left table, the two variables are actually categorical, not numeric. Look closely at the printed table. Under the variable name, it includes a brief description of the type of variable. chr
stands for “character”, which is to say that the variables in the left table are being stored as character strings. The table on the right properly presents the values as numeric. (The notation dbl
refers to a particular internal format for the numbers, a “double-precision-floating point number”. You will also see, from time to time, int
, which indicates that the number is stored in computer integer format. In your calculations, you don’t need to worry about which type of storage format is used for numerical data.)
| Improper form | Proper form | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Figure 4: Two possible ways of arranging the honeybee data in a data table. The left one is awkward: the variables are categorical even though they represent physical quantities. The right table properly has quantitative variables: their values are numbers. The physical meaning for the number is described in the codebook, which here takes the form of descriptive text in the book.


Frequently Asked Questions¶
What’s with the variable names? That’s not Pythonic…¶
Prior to the 1.0.0 release, all legacy namespaces are preserved as modules and all variable names are preserved with the exception that the function & modules are make to be snake_case according to the PEP8 style guide. The length of variable names will be reviewed during the development of the 2.0.0 release, where modules will be redesigned to take advantage of the Python environment.


pyMez.Code.FrontEnds.MatplotlibWxPanel module
An example of how to use wx or wxagg in an application with a custom toolbar, Modified to work inside of BOA by AWS. Serves as an advanced plot window for pyMez. The custom tool bar is MyNavigationToolBar
Help
#----------------------------------------------------------------------------- # Name: MatplotlibWxPanel.py # Purpose: To be a plugin advanced plot panel for pyMez # Author: Aric Sanders # Created: 3/02/2016 # License: MIT License #----------------------------------------------------------------------------- """ An example of how to use wx or wxagg in an application with a custom toolbar, Modified to work inside of BOA by AWS. Serves as an advanced plot window for pyMez. The custom tool bar is MyNavigationToolBar Help --------------- `pyMez.Code.FrontEnds`
 Documentation Home | API Documentation Home | Examples Home | Index
 """ #------------------------------------------------------------------------------- # Standard Imports import wx import os import sys #------------------------------------------------------------------------------- # Third Party imports # Used to guarantee to use at least Wx2.8 Was removed. sys.path.append(os.path.join(os.path.dirname( __file__ ), '..','..')) try: from numpy import arange, sin, pi import matplotlib import matplotlib.ticker as ticker matplotlib.use('WXAgg') from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg as FigureCanvas from matplotlib.backends.backend_wxagg import NavigationToolbar2WxAgg from matplotlib.backends.backend_wx import _load_bitmap from matplotlib.figure import Figure from numpy.random import rand import numpy as np except: print("Please make sure matplotlib package is installed and in sys.path") try: from Code.DataHandlers.XMLModels import DataTable except: print("import of pyMez.Code.DataHandlers.XMLModels failed") #------------------------------------------------------------------------------- # Constants TESTS_DIRECTORY=os.path.join(os.path.dirname(os.path.realpath(__file__)),'Tests') #------------------------------------------------------------------------------- # Class Definitions # This class was ripped from an example on the matplotlib site class MyNavigationToolbar(NavigationToolbar2WxAgg): """ Extend the default wx toolbar with your own event handlers """ ON_CUSTOM = wx.NewId() def __init__(self, canvas, cankill): NavigationToolbar2WxAgg.__init__(self, canvas) # for simplicity I'm going to reuse a bitmap from wx, you'll # probably want to add your own.wx.ART_FOLDER_OPEN #wx.ArtProvider.GetBitmap(wx.ART_FOLDER_OPEN) is the stock icons command self.AddSimpleTool(self.ON_CUSTOM, wx.ArtProvider.GetBitmap(wx.ART_FOLDER_OPEN), 'Plot measurement', 'Plot an XML data file') wx.EVT_TOOL(self, self.ON_CUSTOM, self._on_custom) # self.AddSimpleTool(self.ON_CUSTOM, wx.ArtProvider.GetBitmap(wx.ART_FOLDER_OPEN), # 'Click me', 'Activate custom contol') #wx.EVT_TOOL(self, self.ON_CUSTOM, self._on_custom) def _on_custom(self, evt): # add some text to the axes in a random location in axes (0,1) # coords) with a random color ## # get the axes ## ax = self.canvas.figure.axes[0] ## ## # generate a random location can color ## x,y = tuple(rand(2)) ## rgb = tuple(rand(3)) ## ## # add the text and draw ## ax.text(x, y, 'You clicked me', ## transform=ax.transAxes, ## color=rgb) ## self.canvas.draw() # This is a stub out for a file chooser to plot. dlg = wx.FileDialog(self, 'Choose a file', TESTS_DIRECTORY, '', '*.*', wx.OPEN) try: if dlg.ShowModal() == wx.ID_OK: filename = dlg.GetPath() try: data_sheet=DataTable(filename) self.canvas.figure.clear() self.axes = self.canvas.figure.add_subplot(111) ax = self.canvas.figure.axes[0] # This needs to be generalized with a chooser so that things with # lots of columns can be plotted #print(data_sheet.get_attribute_names()) if 'Current' in data_sheet.get_attribute_names(): y_name='Current' if 'Voltage' in data_sheet.get_attribute_names(): x_name='Voltage' else: y_name=data_sheet.get_attribute_names()[0] x_name=data_sheet.get_attribute_names()[1] params={'axes.labelsize': 18,"font.size":18, 'legend.fontsize': 18, 'xtick.labelsize': 18, 'ytick.labelsize': 18, } matplotlib.rcParams.update(params) self.axes.xaxis.set_major_formatter(ticker.ScalarFormatter(useOffset=True)) self.axes.yaxis.set_major_formatter(ticker.ScalarFormatter(useOffset=True)) #print(x_name,y_name) self.axes.set_xlabel(x_name,fontsize=20) self.axes.set_ylabel(y_name,fontsize=20) x_data=np.array([float(x) for x in data_sheet.to_list(x_name)]) y_data=np.array([float(x) for x in data_sheet.to_list(y_name)]) ax.plot(x_data,y_data) self.canvas.draw() # Set the Title try: self.Parent.Parent.SetTitle(data_sheet.path) except: pass self.Update() except: raise finally: dlg.Destroy() evt.Skip() # In the original example this was a frame, I have modified it to work with BOA class MatplotlibWxPanel(wx.Panel): """ This is a wx.Panel that shows a plot with a custom toolbar""" def __init__(self, parent, id, pos, size, style, name): wx.Panel.__init__(self, parent, id, pos, size, style, name) self.SetBackgroundColour(wx.NamedColour("WHITE")) self.figure = Figure(figsize=(5,4), dpi=100) self.axes = self.figure.add_subplot(111) t = arange(0.0,3.0,0.01) s = sin(2*pi*t) self.axes.plot(t,s) self.canvas = FigureCanvas(self, -1, self.figure) self.sizer = wx.BoxSizer(wx.VERTICAL) self.sizer.Add(self.canvas, 1, wx.TOP | wx.LEFT | wx.EXPAND) # Capture the paint message wx.EVT_PAINT(self, self.OnPaint) self.toolbar = MyNavigationToolbar(self.canvas, True) self.toolbar.Realize() if wx.Platform == '__WXMAC__': # Mac platform (OSX 10.3, MacPython) does not seem to cope with # having a toolbar in a sizer. This work-around gets the buttons # back, but at the expense of having the toolbar at the top self.SetToolBar(self.toolbar) else: # On Windows platform, default window size is incorrect, so set # toolbar width to figure width. tw, th = self.toolbar.GetSizeTuple() fw, fh = self.canvas.GetSizeTuple() # By adding toolbar in sizer, we are able to put it at the bottom # of the frame - so appearance is closer to GTK version. # As noted above, doesn't work for Mac. self.toolbar.SetSize(wx.Size(fw, th)) self.sizer.Add(self.toolbar, 0, wx.LEFT | wx.EXPAND) # update the axes menu on the toolbar self.toolbar.update() self.SetSizer(self.sizer) self.Fit() def OnPaint(self, event): self.canvas.draw() event.Skip() #------------------------------------------------------------------------------- # Script Definitions if __name__ == '__main__': app = wx.App(False) frame = wx.Frame(None,size=wx.Size(900, 800)) panel=MatplotlibWxPanel(id=1, name='MatplotlibWxPanel', parent=frame, pos=wx.Point(350, 204), size=wx.Size(200, 800), style=wx.TAB_TRAVERSAL) sizer=wx.BoxSizer() sizer.Add(panel,1,wx.EXPAND,2) frame.SetSizerAndFit(sizer) frame.SetSize(wx.Size(1000, 800)) frame.Show() app.MainLoop()
Functions
def rand(
...)
rand(d0, d1, ..., dn)
Random values in a given shape.
Create an array of the given shape and populate it with
random samples from a uniform distribution
over [0, 1)
.
Parameters
d0, d1, ..., dn : int, optional The dimensions of the returned array, should all be positive. If no argument is given a single Python float is returned.
Returns
out : ndarray, shape (d0, d1, ..., dn)
Random values.
See Also
random
Notes
This is a convenience function. If you want an interface that takes a shape-tuple as the first argument, refer to np.random.random_sample .
Examples
np.random.rand(3,2) array([[ 0.14022471, 0.96360618], #random [ 0.37601032, 0.25528411], #random [ 0.49313049, 0.94909878]]) #random
Classes
class MatplotlibWxPanel
This is a wx.Panel that shows a plot with a custom toolbar
class MatplotlibWxPanel(wx.Panel): """ This is a wx.Panel that shows a plot with a custom toolbar""" def __init__(self, parent, id, pos, size, style, name): wx.Panel.__init__(self, parent, id, pos, size, style, name) self.SetBackgroundColour(wx.NamedColour("WHITE")) self.figure = Figure(figsize=(5,4), dpi=100) self.axes = self.figure.add_subplot(111) t = arange(0.0,3.0,0.01) s = sin(2*pi*t) self.axes.plot(t,s) self.canvas = FigureCanvas(self, -1, self.figure) self.sizer = wx.BoxSizer(wx.VERTICAL) self.sizer.Add(self.canvas, 1, wx.TOP | wx.LEFT | wx.EXPAND) # Capture the paint message wx.EVT_PAINT(self, self.OnPaint) self.toolbar = MyNavigationToolbar(self.canvas, True) self.toolbar.Realize() if wx.Platform == '__WXMAC__': # Mac platform (OSX 10.3, MacPython) does not seem to cope with # having a toolbar in a sizer. This work-around gets the buttons # back, but at the expense of having the toolbar at the top self.SetToolBar(self.toolbar) else: # On Windows platform, default window size is incorrect, so set # toolbar width to figure width. tw, th = self.toolbar.GetSizeTuple() fw, fh = self.canvas.GetSizeTuple() # By adding toolbar in sizer, we are able to put it at the bottom # of the frame - so appearance is closer to GTK version. # As noted above, doesn't work for Mac. self.toolbar.SetSize(wx.Size(fw, th)) self.sizer.Add(self.toolbar, 0, wx.LEFT | wx.EXPAND) # update the axes menu on the toolbar self.toolbar.update() self.SetSizer(self.sizer) self.Fit() def OnPaint(self, event): self.canvas.draw() event.Skip()
Ancestors (in MRO)
- MatplotlibWxPanel
- wx._core.Panel
- wx._core.Window
- wx._core.WindowBase
- wx._core.EvtHandler
- wx._core.Object
- wx._core.Trackable
- sip.wrapper
- sip.simplewrapper
- builtins.object
Class variables
var ChildrenRepositioningGuard
Static methods
def __init__(
self, parent, id, pos, size, style, name)
Initialize self. See help(type(self)) for accurate signature.
def __init__(self, parent, id, pos, size, style, name): wx.Panel.__init__(self, parent, id, pos, size, style, name) self.SetBackgroundColour(wx.NamedColour("WHITE")) self.figure = Figure(figsize=(5,4), dpi=100) self.axes = self.figure.add_subplot(111) t = arange(0.0,3.0,0.01) s = sin(2*pi*t) self.axes.plot(t,s) self.canvas = FigureCanvas(self, -1, self.figure) self.sizer = wx.BoxSizer(wx.VERTICAL) self.sizer.Add(self.canvas, 1, wx.TOP | wx.LEFT | wx.EXPAND) # Capture the paint message wx.EVT_PAINT(self, self.OnPaint) self.toolbar = MyNavigationToolbar(self.canvas, True) self.toolbar.Realize() if wx.Platform == '__WXMAC__': # Mac platform (OSX 10.3, MacPython) does not seem to cope with # having a toolbar in a sizer. This work-around gets the buttons # back, but at the expense of having the toolbar at the top self.SetToolBar(self.toolbar) else: # On Windows platform, default window size is incorrect, so set # toolbar width to figure width. tw, th = self.toolbar.GetSizeTuple() fw, fh = self.canvas.GetSizeTuple() # By adding toolbar in sizer, we are able to put it at the bottom # of the frame - so appearance is closer to GTK version. # As noted above, doesn't work for Mac. self.toolbar.SetSize(wx.Size(fw, th)) self.sizer.Add(self.toolbar, 0, wx.LEFT | wx.EXPAND) # update the axes menu on the toolbar self.toolbar.update() self.SetSizer(self.sizer) self.Fit()
def Bind(
self, event, handler, source=None, id=-1, id2=-1)
Bind an event to an event handler.
:param event: One of the EVT_*
event binder objects that
specifies the type of event to bind.
:param handler: A callable object to be invoked when the
event is delivered to self. Pass None
to
disconnect an event handler.
:param source: Sometimes the event originates from a different window than self, but you still want to catch it in self. (For example, a button event delivered to a frame.) By passing the source of the event, the event handling system is able to differentiate between the same event type from different controls.
:param id: Used to spcify the event source by ID instead of instance.
:param id2: Used when it is desirable to bind a handler to a range of IDs, such as with EVT_MENU_RANGE.
def _EvtHandler_Bind(self, event, handler, source=None, id=wx.ID_ANY, id2=wx.ID_ANY): """ Bind an event to an event handler. :param event: One of the ``EVT_*`` event binder objects that specifies the type of event to bind. :param handler: A callable object to be invoked when the event is delivered to self. Pass ``None`` to disconnect an event handler. :param source: Sometimes the event originates from a different window than self, but you still want to catch it in self. (For example, a button event delivered to a frame.) By passing the source of the event, the event handling system is able to differentiate between the same event type from different controls. :param id: Used to spcify the event source by ID instead of instance. :param id2: Used when it is desirable to bind a handler to a range of IDs, such as with EVT_MENU_RANGE. """ assert isinstance(event, wx.PyEventBinder) assert callable(handler) or handler is None assert source is None or hasattr(source, 'GetId') if source is not None: id = source.GetId() event.Bind(self, id, id2, handler)
def ConvertDialogPointToPixels(
*args, **kw)
def deprecated_func(*args, **kw): warnings.warn("Call to deprecated item%s. %s" % (name, msg), wxPyDeprecationWarning, stacklevel=2) if not kw: return item(*args) return item(*args, **kw)
def ConvertDialogSizeToPixels(
*args, **kw)
def deprecated_func(*args, **kw): warnings.warn("Call to deprecated item%s. %s" % (name, msg), wxPyDeprecationWarning, stacklevel=2) if not kw: return item(*args) return item(*args, **kw)
def DLG_UNIT(
self, dlg_unit)
A convenience wrapper for :meth:ConvertDialogToPixels
.
def _Window_DLG_UNIT(self, dlg_unit): """ A convenience wrapper for :meth:`ConvertDialogToPixels`. """ is_wxType = isinstance(dlg_unit, (wx.Size, wx.Point)) pix = self.ConvertDialogToPixels(dlg_unit) if not is_wxType: pix = tuple(pix) return pix
def DestroyLater(
self)
Schedules the window to be destroyed in the near future.
This should be used whenever Destroy could happen too soon, such as when there may still be events for this window or its children waiting in the event queue.
def _Window_DestroyLater(self): """ Schedules the window to be destroyed in the near future. This should be used whenever Destroy could happen too soon, such as when there may still be events for this window or its children waiting in the event queue. """ self.Hide() wx.GetApp().ScheduleForDestruction(self)
def GetPositionTuple(
*args, **kw)
def deprecated_func(*args, **kw): warnings.warn("Call to deprecated item%s. %s" % (name, msg), wxPyDeprecationWarning, stacklevel=2) if not kw: return item(*args) return item(*args, **kw)
def GetSizeTuple(
*args, **kw)
def deprecated_func(*args, **kw): warnings.warn("Call to deprecated item%s. %s" % (name, msg), wxPyDeprecationWarning, stacklevel=2) if not kw: return item(*args) return item(*args, **kw)
def GetVirtualSizeTuple(
*args, **kw)
def deprecated_func(*args, **kw): warnings.warn("Call to deprecated item%s. %s" % (name, msg), wxPyDeprecationWarning, stacklevel=2) if not kw: return item(*args) return item(*args, **kw)
def MoveXY(
*args, **kw)
def deprecated_func(*args, **kw): warnings.warn("Call to deprecated item%s. %s" % (name, msg), wxPyDeprecationWarning, stacklevel=2) if not kw: return item(*args) return item(*args, **kw)
def OnPaint(
self, event)
def OnPaint(self, event): self.canvas.draw() event.Skip()
def PostCreate(
*args, **kw)
def deprecated_func(*args, **kw): warnings.warn("Call to deprecated item%s. %s" % (name, msg), wxPyDeprecationWarning, stacklevel=2) if not kw: return item(*args) return item(*args, **kw)
def SetClientRect(
self, rect)
def _Window_SetClientRect(self, rect): return self.SetClientSize(rect)
def SetDimensions(
*args, **kw)
SetDimensions(x, y, width, height, sizeFlags=SIZE_AUTO)
def deprecated_func(*args, **kw): warnings.warn("Call to deprecated item%s. %s" % (name, msg), wxPyDeprecationWarning, stacklevel=2) if not kw: return item(*args) return item(*args, **kw)
def SetRect(
self, rect)
def _Window_SetRect(self, rect): return self.SetSize(rect)
def SetSizeHintsSz(
*args, **kw)
def deprecated_func(*args, **kw): warnings.warn("Call to deprecated item%s. %s" % (name, msg), wxPyDeprecationWarning, stacklevel=2) if not kw: return item(*args) return item(*args, **kw)
def SetSizeWH(
*args, **kw)
def deprecated_func(*args, **kw): warnings.warn("Call to deprecated item%s. %s" % (name, msg), wxPyDeprecationWarning, stacklevel=2) if not kw: return item(*args) return item(*args, **kw)
def SetToolTipString(
*args, **kw)
def deprecated_func(*args, **kw): warnings.warn("Call to deprecated item%s. %s" % (name, msg), wxPyDeprecationWarning, stacklevel=2) if not kw: return item(*args) return item(*args, **kw)
def SetVirtualSizeWH(
*args, **kw)
def deprecated_func(*args, **kw): warnings.warn("Call to deprecated item%s. %s" % (name, msg), wxPyDeprecationWarning, stacklevel=2) if not kw: return item(*args) return item(*args, **kw)
def Unbind(
self, event, source=None, id=-1, id2=-1, handler=None)
Disconnects the event handler binding for event from self
.
Returns True
if successful.
def _EvtHandler_Unbind(self, event, source=None, id=wx.ID_ANY, id2=wx.ID_ANY, handler=None): """ Disconnects the event handler binding for event from `self`. Returns ``True`` if successful. """ if source is not None: id = source.GetId() return event.Unbind(self, id, id2, handler)
Instance variables
var AcceleratorTable
GetAcceleratorTable() -> AcceleratorTable
Gets the accelerator table for this window.
var AutoLayout
GetAutoLayout() -> bool
Returns the sizer of which this window is a member, if any, otherwise NULL.
var BackgroundColour
GetBackgroundColour() -> Colour
Returns the background colour of the window.
var BackgroundStyle
GetBackgroundStyle() -> BackgroundStyle
Returns the background style of the window.
var BestSize
GetBestSize() -> Size
This functions returns the best acceptable minimal size for the window.
var BestVirtualSize
GetBestVirtualSize() -> Size
Return the largest of ClientSize and BestSize (as determined by a sizer, interior children, or other means)
var Border
GetBorder(flags) -> Border GetBorder() -> Border
Get the window border style from the given flags: this is different from simply doing flags & wxBORDER_MASK because it uses GetDefaultBorder() to translate wxBORDER_DEFAULT to something reasonable.
var Caret
GetCaret() -> Caret
Returns the caret() associated with the window.
var CharHeight
GetCharHeight() -> int
Returns the character height for this window.
var CharWidth
GetCharWidth() -> int
Returns the average character width for this window.
var Children
GetChildren() -> WindowList
Returns a reference to the list of the window's children.
var ClassInfo
GetClassInfo() -> ClassInfo
This virtual function is redefined for every class that requires run- time type information, when using the wxDECLARE_CLASS macro (or similar).
var ClassName
GetClassName() -> Char
Returns the class name of the C++ class using wxRTTI.
var ClientAreaOrigin
GetClientAreaOrigin() -> Point
Get the origin of the client area of the window relative to the window top left corner (the client area may be shifted because of the borders, scrollbars, other decorations...)
var ClientRect
GetClientRect() -> Rect
Get the client rectangle in window (i.e. client) coordinates.
var ClientSize
GetClientSize() -> Size
Returns the size of the window 'client area' in pixels.
var Constraints
GetConstraints() -> LayoutConstraints
Returns a pointer to the window's layout constraints, or NULL if there are none.
var ContainingSizer
GetContainingSizer() -> Sizer
Returns the sizer of which this window is a member, if any, otherwise NULL.
var Cursor
GetCursor() -> Cursor
Return the cursor associated with this window.
var DefaultAttributes
GetDefaultAttributes() -> VisualAttributes
Currently this is the same as calling wxWindow::GetClassDefaultAttributes(wxWindow::GetWindowVariant()).
var DropTarget
GetDropTarget() -> DropTarget
Returns the associated drop target, which may be NULL.
var EffectiveMinSize
GetEffectiveMinSize() -> Size
Merges the window's best size into the min size and returns the result.
var Enabled
IsEnabled() -> bool
Returns true if the window is enabled, i.e. if it accepts user input, false otherwise.
var EventHandler
GetEventHandler() -> EvtHandler
Returns the event handler for this window.
var EvtHandlerEnabled
GetEvtHandlerEnabled() -> bool
Returns true if the event handler is enabled, false otherwise.
var ExtraStyle
GetExtraStyle() -> long
Returns the extra style bits for the window.
var Font
GetFont() -> Font
Returns the font for this window.
var ForegroundColour
GetForegroundColour() -> Colour
Returns the foreground colour of the window.
var GrandParent
GetGrandParent() -> Window
Returns the grandparent of a window, or NULL if there isn't one.
var Handle
GetHandle() -> UIntPtr
Returns the platform-specific handle of the physical window.
var HelpText
GetHelpText() -> String
Gets the help text to be used as context-sensitive help for this window.
var Id
GetId() -> WindowID
Returns the identifier of the window.
var Label
GetLabel() -> String
Generic way of getting a label from any window, for identification purposes.
var LayoutDirection
GetLayoutDirection() -> LayoutDirection
Returns the layout direction for this window, Note that wxLayout_Default is returned if layout direction is not supported.
var MaxClientSize
GetMaxClientSize() -> Size
Returns the maximum size of window's client area.
var MaxHeight
GetMaxHeight() -> int
Returns the vertical component of window maximal size.
var MaxSize
GetMaxSize() -> Size
Returns the maximum size of the window.
var MaxWidth
GetMaxWidth() -> int
Returns the horizontal component of window maximal size.
var MinClientSize
GetMinClientSize() -> Size
Returns the minimum size of window's client area, an indication to the sizer layout mechanism that this is the minimum required size of its client area.
var MinHeight
GetMinHeight() -> int
Returns the vertical component of window minimal size.
var MinSize
GetMinSize() -> Size
Returns the minimum size of the window, an indication to the sizer layout mechanism that this is the minimum required size.
var MinWidth
GetMinWidth() -> int
Returns the horizontal component of window minimal size.
var Name
GetName() -> String
Returns the window's name.
var NextHandler
GetNextHandler() -> EvtHandler
Returns the pointer to the next handler in the chain.
var Parent
GetParent() -> Window
Returns the parent of the window, or NULL if there is no parent.
var Position
GetPosition() -> Point
This gets the position of the window in pixels, relative to the parent window for the child windows or relative to the display origin for the top level windows.
var PreviousHandler
GetPreviousHandler() -> EvtHandler
Returns the pointer to the previous handler in the chain.
var Rect
GetRect() -> Rect
Returns the position and size of the window as a wxRect object.
var RefData
GetRefData() -> ObjectRefData
Returns the wxObject::m_refData pointer, i.e. the data referenced by this object.
var ScreenPosition
GetScreenPosition() -> Point
Returns the window position in screen coordinates, whether the window is a child window or a top level one.
var ScreenRect
GetScreenRect() -> Rect
Returns the position and size of the window on the screen as a wxRect object.
var Shown
IsShown() -> bool
Returns true if the window is shown, false if it has been hidden.
var Size
GetSize() -> Size
Returns the size of the entire window in pixels, including title bar, border, scrollbars, etc.
var Sizer
GetSizer() -> Sizer
Returns the sizer associated with the window by a previous call to SetSizer(), or NULL.
var ThemeEnabled
GetThemeEnabled() -> bool
Clears the window by filling it with the current background colour.
var ToolTip
GetToolTip() -> ToolTip
Get the associated tooltip or NULL if none.
var TopLevel
IsTopLevel() -> bool
Returns true if the given window is a top-level one.
var TopLevelParent
GetTopLevelParent() -> Window
Returns the first ancestor of this window which is a top-level window.
var UpdateClientRect
GetUpdateClientRect() -> Rect
Get the update rectangle bounding box in client coords.
var UpdateRegion
GetUpdateRegion() -> Region
Returns the region specifying which parts of the window have been damaged.
var Validator
GetValidator() -> Validator
Validator functions.
var VirtualSize
GetVirtualSize() -> Size
This gets the virtual size of the window in pixels.
var WindowStyle
GetWindowStyle() -> long
See GetWindowStyleFlag() for more info.
var WindowStyleFlag
GetWindowStyleFlag() -> long
Gets the window style that was passed to the constructor or Create() method.
var WindowVariant
GetWindowVariant() -> WindowVariant
Returns the value previously passed to SetWindowVariant().
var axes
var canvas
var figure
var sizer
var toolbar
Extend the default wx toolbar with your own event handlers
Ancestors (in MRO)
- MyNavigationToolbar
- matplotlib.backends.backend_wx.NavigationToolbar2Wx
- matplotlib.backend_bases.NavigationToolbar2
- wx._core.ToolBar
- wx._core.Control
- wx._core.Window
- wx._core.WindowBase
- wx._core.EvtHandler
- wx._core.Object
- wx._core.Trackable
- sip.wrapper
- sip.simplewrapper
- builtins.object
Class variables
Static methods
Initialize self. See help(type(self)) for accurate signature.
Old style method to add a tool in the toolbar.
Old style method to add a tool to the toolbar.
Bind an event to an event handler.
:param event: One of the EVT_*
event binder objects that
specifies the type of event to bind.
:param handler: A callable object to be invoked when the
event is delivered to self. Pass None
to
disconnect an event handler.
:param source: Sometimes the event originates from a different window than self, but you still want to catch it in self. (For example, a button event delivered to a frame.) By passing the source of the event, the event handling system is able to differentiate between the same event type from different controls.
:param id: Used to spcify the event source by ID instead of instance.
:param id2: Used when it is desirable to bind a handler to a range of IDs, such as with EVT_MENU_RANGE.
A convenience wrapper for :meth:ConvertDialogToPixels
.
Schedules the window to be destroyed in the near future.
This should be used whenever Destroy could happen too soon, such as when there may still be events for this window or its children waiting in the event queue.
Old style method to insert a tool in the toolbar.
Old style method to insert a tool in the toolbar.
SetDimensions(x, y, width, height, sizeFlags=SIZE_AUTO)
Disconnects the event handler binding for event from self
.
Returns True
if successful.
move back up the view lim stack
Callback for dragging in pan/zoom mode.
Callback for dragging in zoom mode.
Redraw the canvases, update the locators.
Draw a rectangle rubberband to indicate zoom limits.
Note that it is not guaranteed that x0 <= x1
and y0 <= y1
.
.. deprecated:: 2.1 The dynamic_update function was deprecated in version 2.1. Use canvas.draw_idle instead.
\
Move forward in the view lim stack.
Restore the original view.
Activate the pan/zoom tool. pan with left button, zoom with right
Called whenever a mouse button is pressed.
Callback for mouse button press in pan/zoom mode.
Callback for mouse button press in zoom to rect mode.
Push the current view limits and position onto the stack.
Callback for mouse button release.
Callback for mouse button release in pan/zoom mode.
Callback for mouse button release in zoom to rect mode.
Remove the rubberband.
Save the current figure.
Set the current cursor to one of the :class:Cursors
enums values.
If required by the backend, this method should trigger an update in the backend event loop after the cursor is set, as this method may be called e.g. before a long-running task during which the GUI is not updated.
Enable or disable the back/forward button.
Display a message on toolbar or in status bar.
Reset the axes stack.
Activate zoom to rect mode.
Instance variables
GetAcceleratorTable() -> AcceleratorTable
Gets the accelerator table for this window.
GetAutoLayout() -> bool
Returns the sizer of which this window is a member, if any, otherwise NULL.
GetBackgroundColour() -> Colour
Returns the background colour of the window.
GetBackgroundStyle() -> BackgroundStyle
Returns the background style of the window.
GetBestSize() -> Size
This functions returns the best acceptable minimal size for the window.
GetBestVirtualSize() -> Size
Return the largest of ClientSize and BestSize (as determined by a sizer, interior children, or other means)
GetBorder(flags) -> Border GetBorder() -> Border
Get the window border style from the given flags: this is different from simply doing flags & wxBORDER_MASK because it uses GetDefaultBorder() to translate wxBORDER_DEFAULT to something reasonable.
GetCaret() -> Caret
Returns the caret() associated with the window.
GetCharHeight() -> int
Returns the character height for this window.
GetCharWidth() -> int
Returns the average character width for this window.
GetChildren() -> WindowList
Returns a reference to the list of the window's children.
GetClassInfo() -> ClassInfo
This virtual function is redefined for every class that requires run- time type information, when using the wxDECLARE_CLASS macro (or similar).
GetClassName() -> Char
Returns the class name of the C++ class using wxRTTI.
GetClientAreaOrigin() -> Point
Get the origin of the client area of the window relative to the window top left corner (the client area may be shifted because of the borders, scrollbars, other decorations...)
GetClientRect() -> Rect
Get the client rectangle in window (i.e. client) coordinates.
GetClientSize() -> Size
Returns the size of the window 'client area' in pixels.
GetConstraints() -> LayoutConstraints
Returns a pointer to the window's layout constraints, or NULL if there are none.
GetContainingSizer() -> Sizer
Returns the sizer of which this window is a member, if any, otherwise NULL.
GetCursor() -> Cursor
Return the cursor associated with this window.
GetDefaultAttributes() -> VisualAttributes
Currently this is the same as calling wxWindow::GetClassDefaultAttributes(wxWindow::GetWindowVariant()).
GetDropTarget() -> DropTarget
Returns the associated drop target, which may be NULL.
GetEffectiveMinSize() -> Size
Merges the window's best size into the min size and returns the result.
IsEnabled() -> bool
Returns true if the window is enabled, i.e. if it accepts user input, false otherwise.
GetEventHandler() -> EvtHandler
Returns the event handler for this window.
GetEvtHandlerEnabled() -> bool
Returns true if the event handler is enabled, false otherwise.
GetExtraStyle() -> long
Returns the extra style bits for the window.
GetFont() -> Font
Returns the font for this window.
GetForegroundColour() -> Colour
Returns the foreground colour of the window.
GetGrandParent() -> Window
Returns the grandparent of a window, or NULL if there isn't one.
GetHandle() -> UIntPtr
Returns the platform-specific handle of the physical window.
GetHelpText() -> String
Gets the help text to be used as context-sensitive help for this window.
GetId() -> WindowID
Returns the identifier of the window.
GetLabel() -> String
Returns the control's label, as it was passed to SetLabel().
GetLabelText() -> String GetLabelText(label) -> String
Returns the control's label without mnemonics.
GetLayoutDirection() -> LayoutDirection
Returns the layout direction for this window, Note that wxLayout_Default is returned if layout direction is not supported.
GetMargins() -> Size
Returns the left/right and top/bottom margins, which are also used for inter-toolspacing.
GetMaxClientSize() -> Size
Returns the maximum size of window's client area.
GetMaxHeight() -> int
Returns the vertical component of window maximal size.
GetMaxSize() -> Size
Returns the maximum size of the window.
GetMaxWidth() -> int
Returns the horizontal component of window maximal size.
GetMinClientSize() -> Size
Returns the minimum size of window's client area, an indication to the sizer layout mechanism that this is the minimum required size of its client area.
GetMinHeight() -> int
Returns the vertical component of window minimal size.
GetMinSize() -> Size
Returns the minimum size of the window, an indication to the sizer layout mechanism that this is the minimum required size.
GetMinWidth() -> int
Returns the horizontal component of window minimal size.
GetName() -> String
Returns the window's name.
GetNextHandler() -> EvtHandler
Returns the pointer to the next handler in the chain.
GetParent() -> Window
Returns the parent of the window, or NULL if there is no parent.
GetPosition() -> Point
This gets the position of the window in pixels, relative to the parent window for the child windows or relative to the display origin for the top level windows.
GetPreviousHandler() -> EvtHandler
Returns the pointer to the previous handler in the chain.
GetRect() -> Rect
Returns the position and size of the window as a wxRect object.
GetRefData() -> ObjectRefData
Returns the wxObject::m_refData pointer, i.e. the data referenced by this object.
GetScreenPosition() -> Point
Returns the window position in screen coordinates, whether the window is a child window or a top level one.
GetScreenRect() -> Rect
Returns the position and size of the window on the screen as a wxRect object.
IsShown() -> bool
Returns true if the window is shown, false if it has been hidden.
GetSize() -> Size
Returns the size of the entire window in pixels, including title bar, border, scrollbars, etc.
GetSizer() -> Sizer
Returns the sizer associated with the window by a previous call to SetSizer(), or NULL.
GetThemeEnabled() -> bool
Clears the window by filling it with the current background colour.
GetToolBitmapSize() -> Size
Returns the size of bitmap that the toolbar expects to have.
GetToolPacking() -> int
Returns the value used for packing tools.
GetToolSeparation() -> int
Returns the default separator size.
GetToolSize() -> Size
Returns the size of a whole button, which is usually larger than a tool bitmap because of added 3D effects.
GetToolTip() -> ToolTip
Get the associated tooltip or NULL if none.
GetToolsCount() -> size_t
Returns the number of tools in the toolbar.
IsTopLevel() -> bool
Returns true if the given window is a top-level one.
GetTopLevelParent() -> Window
Returns the first ancestor of this window which is a top-level window.
GetUpdateClientRect() -> Rect
Get the update rectangle bounding box in client coords.
GetUpdateRegion() -> Region
Returns the region specifying which parts of the window have been damaged.
GetValidator() -> Validator
Validator functions.
GetVirtualSize() -> Size
This gets the virtual size of the window in pixels.
GetWindowStyle() -> long
See GetWindowStyleFlag() for more info.
GetWindowStyleFlag() -> long
Gets the window style that was passed to the constructor or Create() method.
GetWindowVariant() -> WindowVariant
Returns the value previously passed to SetWindowVariant().
Module variables
var TESTS_DIRECTORY
var pi
var sin